I can not delete a file - always got an error when try to delete a file. I enabled debugging “‘filelocking.debug’ => true,” and i saw in the logs:
OCP\Lock\LockedException: “xxx/yyy/zzz/rrr/filename.mp4” is locked
*tried to rescan all the files with
sudo -u www-data php occ files:scan --all
-> got error starting
Exception during scan: “files/6bb7e116ce9cdf5c660effe82899eb66” is locked
#0 /var/www/xxx/lib/private/Files/Storage/Common.php(749): OC\Lock\DBLockingProvider->acquireLock(‘files/6bb7e116c…’, 1)
*then i tried according to this “File is locked - how to unlock”
DELETE FROM oc_file_locks WHERE 1
and got this error message from the database:
Failed to execute SQL : SQL DELETE FROM oc_file_locks WHERE 1 failed : ERROR: argument of WHERE must be type boolean, not type integer LINE 1: DELETE FROM oc_file_locks WHERE 1 ^
What can i do?
Nextcloud 18.0.9
Ubuntu LTS 1804…
postresql 10.14