Sorry i forgot to mention that i did a restart of redis and apache already:
service redis restart
service apache2 restart
But this did not unlock the files.
Sorry i forgot to mention that i did a restart of redis and apache already:
service redis restart
service apache2 restart
But this did not unlock the files.
Bounce the server. Could it be theyâre locked by something else? Another process on the server accessing the file for some reason or somethingâŚ
I donât think so because iâm the only user of the server. Itâs hosted on localhost in a virtual machine.
Meanwhile i could remove the file lock by setting
'filelocking.enabled' => false,
temporarely, with the success that the Windows desktop sync client canât sync the folder in question anymore.
Strange!
Provide full screenshot to see the ending of the file then we might help you more
Itâs a directory with 2 PDF files inside.
It is the directory which was locked before.
The ignored file list of the desktop sync client does not contain any pdf files and i did not alter it.
Did you try to delete the keys in the redis database ?
On Centos with a socket connection :
sudo redis-cli -s /var/run/redis/redis.sock flushall
Itâs quite radical, but works for me.
Thank you! This worked for me. By the way, Iâm running Nextcloud in an iocage jail on FreeNAS, so I changed www-data to www
By the way, your config.php file has to be in ordinary mode (not maintenance mode).
For anyone having issues with files getting lock while using redis on nextcloud pi. Specially while syncing nodejs appsâŚ
This error/bug has been driving me crazy. Because there was so much variety in the user posts, I created a more standardized testing environment and replicated the bug with a standardized dataset on clean new installs using both postgres & mysql. In the process I created a one-run install script that requires minimal configuration/expertise to use. Doing the file/redis maintenance options are not actually solutions if the bug is evident on clean installs (they merely temporize the issue). Any recommendations on where to look (e.g. in nextcloud codebase) to get this bug fixed would be appreciated!
I want to see nextcloud succeed, and for it to do so this issue needs fixing!
Install script/writeup: https://gitlab.com/deepthought/nextcloud-docker/tree/latest
For freenas users (script not as good, worse deadlock errors): https://github.com/ak1n/freenas-iocage-nextcloud
I had the same problem and I solved this by updating values on table oc_file_locks. I found some values diferent from 0 like 1 and -1. Alter this and be happy.
That part for me didnât work. I closed my nextcloud docker to avoid any changes. Then manually deleted the files I needed and yes. The container changed the permissions for the files creating that situation. After I moved everything manually then the problem disappeared of course.
I followed the above post and it worked perfectly.
Thanks
I had to set up a new nextcloud and had the same error.
I donât use redis but memcached.
I commented out the entry for memcached in
/var/www/nextcloud/config/config.php:
#âmemcache.localâ => â\OC\Memcache\APCuâ,
Now the sync works properly
solved the issue for me, thanks.
But there was no password in redis? Is this right?
Thanks for pedropt laying this out so clearly. Fixed me up good!
It works for me, thanks a lot!
Just had to do this for a folder on my install. Thanks, tflidd!
add âfilelocking.enabledâ => false, in config/config.php:
thanks