Synchronization problems due to locked files

Hi everyone,

I have a synchronization problem and would be grateful for any advice.

Using Nextcloud Desktop-Client Version 3.16.4 (Windows) and Nextcloud shows that a few files are locked.

Error message:
“xxx(file path)” is locked

Via the cloud several users can access and modify these files, which is why these conflicts occur from time to time.
In the past there was a folder in the database “nc_file_locks” which I could empty and everything was fine but that folder does not seem to exist anymore since a few months.

There is also a new error message which I´ve never received before:
server has “423 locked” on "delete https://www.example.eu/nextcloud/remote.php/dav/files/xxx

Does anybody have an idea how I can release these locked files now?
Nextcloud tries to synchronize the locked files over and over again with no success which causes a enormous data traffic and I can never be sure if a file is up to date :frowning:

Thank you very much & Kind Regards
Diana

As far as I can remember, this has already been discussed here in the forum several times.

Hello Sanook,

yes this has already been discussed but any answer I found unfortunately couldn´t solve my problem. They solved it in the past but the methods described are not working anymore.

Can you show me the link what you have tried?

are you running the files_lock app ? That should prevent stuff like this.

Utilize occ info:file (and possibly occ files:delete) to gather more information.

Failing that, fill out the support template since there are various locking related deployment combinations/configurations.

Here are a few more details - sorry I have little knowledge in this field :frowning:

We run the Nextcloud installation on a web hosting package with manitu.

Since we use shared hosting at manitu, we don’t have access to Redis, APCu or Memcached, and we don’t have SSH access with sudo rights. The files_lock app does not seem to be useful in this environment either.

What we have tried so far:

  • Deleted contents in the data/tmp/ directory via FTP

  • File scan via php occ files:scan --all (as far as possible via cronjob)

Hope somebody has an idea how to remove or avoid such “stuck” locks in this hosting environment?

Thanks & regards

Diana

that’s not a problem :grinning_face: you’ll be fine… I know from personal experience that the folks at Manitu have fantastic support and will certainly help you sort out your issue. give them a shout, they won’t bite.

the best option is to log in to your Manitu account under https://mein.manitu.de and request support from there.

otherwise you can get your SSH here; Einrichtung SSH-Benutzer – manitu Wiki

see here for Nextcloud maintenance wiki; Wartungsaufgaben bei Nextcloud – manitu Wiki

most probably their suggestion would be to install the OCC Web app to enable occ commands from the web interface… but that’s guessing on my part.

Faced with this problem, I make sure no user is logged in anymore and I connect to phpMyAdmin and empty the oc_file_locks table.
In one case where this problem occurs more frequently, I created a php script with cron task executed every night that emptys this oc_file_locks table.