[GH-ISSUE #1249] Updating addon during sync leaves lock file in place #829

Closed
opened 2026-02-25 22:38:13 +03:00 by kerem · 4 comments
Owner

Originally created by @SlaveOfCats on GitHub (Sep 7, 2022).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1249

Which version of floccus are you using?

4.17.0, 4.17.1

Sync method

WebDAV

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Firefox 101.0.1

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

23.0.8

What kind of WebDAV server are you using? (if relevant)

Nextcloud as a WebDAV server

Describe the Bug

I started Firefox and manually checked for Add-on updates. There was a new version of floccus, so I clicked the Update button, but failed to notice that floccus was syncing my bookmarks at the same time. Afterward, the sync itself seemed fine, but the lock file was not deleted from the WebDAV server. When I opened one of my other Firefox installations, it started but never completed syncing.

In the end, I closed all instances of Firefox, manually deleted the lock file, and then restarted Firefox instances. All instances of Firefox were able to sync.

Expected Behavior

When updating the add-on during a sync, I'd expect one of the following:

  • delaying the update until after the sync is complete (maybe with a warning to the user)
  • aborting the sync (including deleting the lock file) and restarting after the update

To Reproduce

I can't reproduce this myself due to the dependence on having a new update to the add-on.

Debug log provided

  • I have provided a debug log file
Originally created by @SlaveOfCats on GitHub (Sep 7, 2022). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1249 ### Which version of floccus are you using? 4.17.0, 4.17.1 ### Sync method WebDAV ### Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please. Firefox 101.0.1 ### Which version of Nextcloud Bookmarks are you using? (if relevant) _No response_ ### Which version of Nextcloud? (if relevant) 23.0.8 ### What kind of WebDAV server are you using? (if relevant) Nextcloud as a WebDAV server ### Describe the Bug I started Firefox and manually checked for Add-on updates. There was a new version of floccus, so I clicked the Update button, but failed to notice that floccus was syncing my bookmarks at the same time. Afterward, the sync itself seemed fine, but the lock file was not deleted from the WebDAV server. When I opened one of my other Firefox installations, it started but never completed syncing. In the end, I closed all instances of Firefox, manually deleted the lock file, and then restarted Firefox instances. All instances of Firefox were able to sync. ### Expected Behavior When updating the add-on during a sync, I'd expect one of the following: - delaying the update until after the sync is complete (maybe with a warning to the user) - aborting the sync (including deleting the lock file) and restarting after the update ### To Reproduce I can't reproduce this myself due to the dependence on having a new update to the add-on. ### Debug log provided - [ ] I have provided a debug log file
kerem 2026-02-25 22:38:13 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Sep 17, 2022):

Yeah, interrupting sync runs often leaves a remnant lock file. In case of an update it may indeed possible to gracefully abort the sync run.

<!-- gh-comment-id:1250125224 --> @marcelklehr commented on GitHub (Sep 17, 2022): Yeah, interrupting sync runs often leaves a remnant lock file. In case of an update it may indeed possible to gracefully abort the sync run.
Author
Owner

@SlaveOfCats commented on GitHub (Sep 29, 2022):

Just to add a similar case that recently happened: I shut down Firefox while floccus was syncing and the lockfile was left behind. I deleted the lockfile when I noticed it (the next time I started FF), and all was well after that.

<!-- gh-comment-id:1262538353 --> @SlaveOfCats commented on GitHub (Sep 29, 2022): Just to add a similar case that recently happened: I shut down Firefox while floccus was syncing and the lockfile was left behind. I deleted the lockfile when I noticed it (the next time I started FF), and all was well after that.
Author
Owner

@marcelklehr commented on GitHub (Oct 5, 2022):

Floccus should recover and ignore the lock file after a certain time, but avoiding remnant lock files altogether is near to impossible.

<!-- gh-comment-id:1268153000 --> @marcelklehr commented on GitHub (Oct 5, 2022): Floccus should recover and ignore the lock file after a certain time, but avoiding remnant lock files altogether is near to impossible.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1751883399 --> @github-actions[bot] commented on GitHub (Oct 8, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#829
No description provided.