nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Unlock all locked files #240

Open JohanBoshoffWebAware opened 4 months ago

JohanBoshoffWebAware commented 4 months ago

Hi.

As you are all aware, there is a huge unlocking problem since Nextcloud 3.11.1. We have thousands of locked files. I want to know if there is any command that shows all the locked files that were locked by the app Temporary Files Lock, and how to unlock them all after hours.

Here is a link on how to remove locks from the database in oc_file_locks, but my database has an empty set for that table: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883?page=2

I need to get a way just to unlock all the files that are currently locked by this app. we cannot keep up with our support to our users as everyone has problems and they are complaining about not being able to be productive cause they need to search files and unlock all day. Even files they have not worked on for years are now all of a sudden locked.

Mika-6-9 commented 4 months ago

https://github.com/nextcloud/files_lock/issues/198

AT-StephenDetomasi commented 3 months ago

Same issue here and it's pretty frustrating.

bonnegent commented 2 months ago

Hello, we have too a lot of unlocked files.

ostasevych commented 1 month ago

Probably DELETE FROM oc_files_lock in mysql may be a dirty workaround...

Mika-6-9 commented 1 month ago

https://github.com/nextcloud/desktop/issues/6401

rakurtz commented 1 month ago

I wrote a small cronjob script that deletes the lock files entries older than 24 hours. You can find the source here: https://github.com/rakurtz/cleanup_oc_files_lock

AT-StephenDetomasi commented 1 month ago

I wrote a small cronjob script that deletes the lock files entries older than 24 hours. You can find the source here: https://github.com/rakurtz/cleanup_oc_files_lock

This looks like a good idea but having a pretty hard time getting this to work with Nextcloud AIO in a docker environment. Has anyone figured out a way to do this in docker?