Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock all locked files #240

Open
JohanBoshoffWebAware opened this issue Feb 22, 2024 · 8 comments
Open

Unlock all locked files #240

JohanBoshoffWebAware opened this issue Feb 22, 2024 · 8 comments

Comments

@JohanBoshoffWebAware
Copy link

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
Copy link

#198

@AT-StephenDetomasi
Copy link

Same issue here and it's pretty frustrating.

@bonnegent
Copy link

Hello, we have too a lot of unlocked files.

@ostasevych
Copy link

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

@Mika-6-9
Copy link

nextcloud/desktop#6401

@rakurtz
Copy link

rakurtz commented May 21, 2024

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
Copy link

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
Copy link

I am still dealing with this issue unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants