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

[Bug]: File Locking - When a User Opens a Office file loses the connection the file gets locked indefinitely #6078

Closed
5 of 8 tasks
vagner-dias opened this issue Sep 20, 2023 · 3 comments

Comments

@vagner-dias
Copy link

⚠️ Before submitting, please verify the following: ⚠️

Bug description

If a User Opens a Office file loses the connection the file gets locked indefinitely

Steps to reproduce

User A opened an Office file, effectively locking it. However, the same user abruptly shut down the computer. Several hours later, the file remains locked.

Expected behavior

A mechanism should be in place to detect when the user is no longer online and automatically unlock the file.

Which files are affected by this bug

Any office file

Operating system

Windows

Which version of the operating system you are running.

Windows 10

Package

Appimage

Nextcloud Server version

26.0.5

Nextcloud Desktop Client version

3.10.0

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@vagner-dias
Copy link
Author

@mgallien - I've recently come across this scenario involving file locking.

Regards

@jospoortvliet
Copy link
Member

This is what the time-out for file locks is for, it's not something the desktop client can fix. A 30 min or 60 min time-out is wise.

https://github.com/nextcloud/files_lock#settings for how to set it.

It might make sense to set this as default, but either way - as the desktop isn't running, it can't fix this.

@robertofabrizi
Copy link

robertofabrizi commented Oct 4, 2023

This is what the time-out for file locks is for, it's not something the desktop client can fix. A 30 min or 60 min time-out is wise.

https://github.com/nextcloud/files_lock#settings for how to set it.

It might make sense to set this as default, but either way - as the desktop isn't running, it can't fix this.

Is there a way to set this via docker-compose?
More importantly, after having set a new timeout (which is being applied to new locks as seen in oc_files_lock) how do I "unlock" files in groupfolders? Deleting the oc_files_lock and firing a occ groupfolders:scan 20 didn't remove the pre-existing locks.
Thank you!

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

No branches or pull requests

3 participants