floccus icon indicating copy to clipboard operation
floccus copied to clipboard

Floccus creates additional lockfile on every sync and doesn't clean them up

Open fanginoort opened this issue 3 months ago • 2 comments

Which version of floccus are you using?

v5.10.2

How many bookmarks do you have, roughly?

600

Are you using other means to sync bookmarks in parallel to floccus?

No

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 154.0 and Android 17 on Pixel 8 with GrapheneOS

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)

Drive functionality offered by mailbox.org (which is based on Open-Xchange I believe)

Describe the Bug

Floccus creates a new lock file on every sync and doesn't delete it after the sync completes successfully. Over the time these files accumulate. The naming scheme is bookmarks.xbel (n).lock where n increments on each sync.

This behavior exists for more than a year, I just happen to notice it now (I had thousands of lockfile remnants in my webdav storage). Also this issue exists in bot the android app and the firefox desktop browser extension

Expected Behavior

Only a single lockfile shall be created which is also supposed to disappear after the sync completed successfully

To Reproduce

  • Use mailbox webdav storage
  • sync

floccus-5.10.2-2026-08-22-redacted.log

Image

Debug log provided

  • [x] I have provided a debug log file

fanginoort avatar Aug 22 '26 20:08 fanginoort

Hello! :wave:

Thank you for taking the time to open this issue with floccus. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. Let me give you a short introduction on what to expect from this issue tracker to avoid misunderstandings. I'm Marcel. I created floccus a few years ago, and have been maintaining it since. I currently work for Nextcloud which leaves me with less time for side projects like this one than I used to have. I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. It helps when you stick around to answer follow up questions I may have, as very few bugs can be fixed directly from the first bug report, without any interaction. If information is missing in your bug report and the issue cannot be solved without it, I will have to close the issue after a while. Note also that GitHub in general is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! If you cannot lend a helping hand, to continue the development and maintenance of this project in a sustainable way, I ask that you donate to the project when opening an issue (or at least once your issue is solved), if you're not a donor already. You can find donation options at https://floccus.org/donate/. Thank you!

One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the Nextcloud forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself.

Thank you for reading through this primer. I look forward to working with you on this issue! Cheers! :blue_heart:

github-actions[bot] avatar Aug 22 '26 20:08 github-actions[bot]

Hi @fanginoort Thank you for taking the time to give feedback by opening this issue! I think this may have to do with mailbox.org somehow. Floccus doesn't create files called bookmarks.xbel (n).lock. Does this still happen if you delete all bookmarks.xbel (n).lock and the original bookmarks.xbel.lock?

I imagine this might be some kind of race condition where multiple floccus instances check whether bookmarks.xbel.lock exists and then after they all see that it doesn't , all try to create it :/

marcelklehr avatar Aug 30 '26 08:08 marcelklehr