-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
"Resource is locked, trying again soon". How to fix this? #1693
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software I look forward to working with you on this issue |
Yes it does :) |
@marcelklehr What explains the lock, though? Just curious to understand what happened. |
The reason for the lock is that we can't have multiple clients sync at the same time without getting into trouble. So, in order to only ever have one client sync bookmarks, the client that came first sets a lock. All other clients then see the lock and wait until it's gone again and it's their turn. Sometimes, it can happen that while a client is syncing, the computer is put to sleep or the browser is closed or some other event interrupts the sync run without the client being able to release the lock, this then causes the other clients to wait indefinitely, in theory. However, I've built in a timeout after which they assume something is wrong, give up waiting and just sync anyway. |
How long is the timeout? Can we force the lock to expire? I'm trying to debug some problems when Floccus is syncing with Nextcloud Bookmarks, & I keep having to wait for the lock to expire to continue debugging. Edit: It's 30 minutes (in the Nextcloud Bookmarks code), & I figured out how to delete the lock through an API call ( |
For the git sync method, the way to release the lock is to manually delete the |
Which version of floccus are you using?
5.2.5
How many bookmarks do you have, roughly?
274
Are you using other means to sync bookmarks in parallel to floccus?
Yes, Chrome sync
Sync method
Git
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Chrome 127.0.6533.99
Which version of Nextcloud Bookmarks are you using? (if relevant)
No response
Which version of Nextcloud? (if relevant)
No response
What kind of WebDAV server are you using? (if relevant)
No response
Describe the Bug
I noticed today that the sync is locked. It seems to be in this state for a few days. The button to manually sync is in a read-only state, so I can't force it to sync. I don't know what to do to fix the problem.
Logs:
Expected Behavior
Sync should happen.
To Reproduce
Sorry, I don't know how to reproduce it.
Debug log provided
The text was updated successfully, but these errors were encountered: