File is locked - how to unlock

Some remarks to the initial post at the top of this thread:

  1. The SQL statement overthere is not completely correct.
    a. In my Nextcloud the table was just named file_locks
    b. The where clause should be something like: WHERE file_locks.lock=1
  2. The SQL command I used is:
    DELETE FROM owncloud.file_locks WHERE file_locks.lock=1;
  3. There can be other lock values then 0 and 1 as well, like -1, 25, 26, and 27. I had to delete the ones with value -1 as well.

See my above posts for more details.

2 Likes