floccus: Nextcloud Syncing stuck
Which version of floccus are you using?
4.17.1
Sync method
Nextcloud Bookmarks
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Firefox (different versions; different platforms (Mac & Windows))
Which version of Nextcloud Bookmarks are you using? (if relevant)
11.0.4 (and earlier)
Which version of Nextcloud? (if relevant)
25.0.1 (and earlier)
What kind of WebDAV server are you using? (if relevant)
No response
Describe the Bug
This case is a variant of #1252, but with Nextcloud-Bookmarks being the sync endpoint.
From my post in #1252:
Now, for quite some time, I also experience this “lock” on multiple devices (all Firefox). From my recent observations I encounter this situation regularly (if not always?), when the particular Windows or Mac host is woke from hibernation, I notice that Floccus shows a current sync operation, but without anything happening. In fact, it stays in that state basically permanently. How long this state persisted can be seen on the others share “Last synchronized” message, which not seldom shows “x days ago” - with a configured sync interval of 1h!
Since this situation does not recover automatically as I would conclude from your FAQ message about stale locks and the 30min lock override, I assume that this is not related to a lock file present on the server.
Expected Behavior
No sync deadlock.
To Reproduce
I’m not sure how the initial deadlock happens. As it appears, one of the participating floccus clients eventually sets a lock, but doesn’t clear that afterwards.
One thing that can be reproduced quite easily is the dysfunction of the automatic lock-removal (after 30min):
- create a manual lock on the particular bookmark folder by setting a current timestamp via SQL:
UPDATE bookmarks_root_folders SET locked_time = NOW() WHERE bookmarks_root_folders.user_id = 'myusername'
- after this no syncing is performed anymore (All HTTP requests for
POST /index.php/apps/bookmarks/public/rest/v2/lock
are returned with code 423). - This state remains stable for hours. No client tries to break the lock with a
DELETE
request.
Debug log provided
- I have provided a debug log file
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 16 (5 by maintainers)
Looks like I’m having the same issue on a fresh NextCloud 27+ and Floccus in Firefox installed, all up to date.
I’m having the same issue here.
Just to elaborate, this is what I see in Nextcloud log files:
And it actually never finished the first sync. On another computer, I had this issue at first, but after restarting Firefox a few times it actually went through and completed the synchronization.
So, what I observed in the log files, floccus first posts a lock and it’s successful (status 200), then it GETs a bunch of url (e.g.
"GET /index.php/apps/bookmarks/public/rest/v2/bookmark?url=https%3A%2F%2Fez.analog.com%2Fc...
), followed by aAnd finally an indefinite amount of of POST locks with status 423.
If I force restart the sync, I can actually see how it DELETES the lock, and the cycle starts once again.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bot, please don’t close 😉