files_lock icon indicating copy to clipboard operation
files_lock copied to clipboard

Unlock all locked files

Open JohanBoshoffWebAware opened this issue 1 year ago • 8 comments

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.

JohanBoshoffWebAware avatar Feb 22 '24 12:02 JohanBoshoffWebAware

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

Mika-6-9 avatar Feb 22 '24 15:02 Mika-6-9

Same issue here and it's pretty frustrating.

AT-StephenDetomasi avatar Apr 01 '24 04:04 AT-StephenDetomasi

Hello, we have too a lot of unlocked files.

bonnegent avatar Apr 16 '24 08:04 bonnegent

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

oleua avatar May 19 '24 16:05 oleua

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

Mika-6-9 avatar May 19 '24 20:05 Mika-6-9

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

rakurtz avatar May 21 '24 06:05 rakurtz

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?

AT-StephenDetomasi avatar Jun 07 '24 01:06 AT-StephenDetomasi

I am still dealing with this issue unfortunately.

AT-StephenDetomasi avatar Aug 24 '24 04:08 AT-StephenDetomasi