floccus icon indicating copy to clipboard operation
floccus copied to clipboard

After changing the structure of my bookmark folders, cannot sync due to "E002: Bookmark to update doesn't exist anymore"

Open wadjj opened this issue 2 months ago • 6 comments

Which version of floccus are you using?

5.6.0

How many bookmarks do you have, roughly?

about 100-200

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

No

Sync method

Google Drive

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

Dia Browser 1.0.2

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 was using bookmark management to change the folder structure and moves things around with my bookmarks, and I found the error in floccuss addon

log as follow

floccus-5.6.0-2025-10-13-full.log

Expected Behavior

it used to periodically sync, suddenly it stops with a weird error

To Reproduce

Image

Debug log provided

  • [x] I have provided a debug log file

wadjj avatar Oct 13 '25 08:10 wadjj

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 Oct 13 '25 08:10 github-actions[bot]

Sorry the log seems to be empty, but I don't know why

wadjj avatar Oct 13 '25 08:10 wadjj

I tried pressing the up button (upload manually?) , and it seems fine for now. I tried hitting the sync button to no avail before.

wadjj avatar Oct 13 '25 08:10 wadjj

Same problem, different storage (GIT):

Image

I renamed a few bookmarks. The sync fails because for one occasion instead of using the existing ID of the "old" version in the git repository (#170 in this case) to update with the new version (#18622 in this case), the old version is declared as undefined.

Other renames would work according to the log file (but are not commited to the repo because the sync fails).

The only difference I can see is that the failing bookmark is the last that was added to this specific bookmark file. <!--- highestId :170: for Floccus bookmark sync browser extension -->

2025-10-22T12:48:32.232Z Calculating diff for
***SNIP***
        - #170[old name](http://192.168.20.5/) parentId: 79
***SNIP***
2025-10-22T12:48:32.232Z { localScanResult: 
***SNIP***
     UPDATE: 
***SNIP***
      Action: UPDATE
      Payload: #18622[new name](http://192.168.20.5/) parentId: 18581 ,
***SNIP***
      Action: REORDER
      Payload: #18581[192.168.20.0] parentId: 18577 Order: [
***SNIP***
      	{
      		"type": "bookmark",
      		"id": "18622"
      	}
***SNIP***
  serverPlan: 
   { CREATE: 
***SNIP***
     UPDATE: 
      Diff
      
      Action: UPDATE
      Payload: #140***SNIP***
      
      Action: UPDATE
      Payload: #undefined[new name](http://192.168.20.5/) parentId: 79 ,
***SNIP***
     REORDER: 
      Diff
      ***SNIP***
      	{
      		"type": "bookmark",
      		"id": "18622"
      	}
***SNIP***
2025-10-22T12:48:32.234Z Executing action  { type: 'UPDATE',
  payload:   - #undefined[new name](http://192.168.20.5/) parentId: 79,
  oldItem:   - #18622[new name](http://192.168.20.5/) parentId: 18581 }
2025-10-22T12:48:32.234Z UPDATE     - #undefined[new name](http://192.168.20.5/) parentId: 79
2025-10-22T12:48:32.234Z Executed 4 actions from 12 actions
2025-10-22T12:48:32.234Z Executed 5 actions from 12 actions
2025-10-22T12:48:32.235Z Syncing failed with E002: Bookmark to update doesn't exist anymore
2025-10-22T12:48:32.237Z onSyncFail
2025-10-22T12:48:32.237Z (git) push: delete tag floccus-lock-1761137311763

codeshell avatar Oct 22 '25 13:10 codeshell

@codeshell Thank you for the log snippets! It appears that for some reason floccus cannot map the bookmark's ID from local to server ID space. This is unusual but not unheard of. Mapping errors are notoriously hard to find :/ I've tried to reproduce this with some simple rename and moves but can't. It could be that this is simply fixed already, as you are running v5.6.0 and the latest is v5.8.1. The way to get sync running again is the same for all mapping errors: Reset the cache and let floccus build a new cache and mappings on the next run.

marcelklehr avatar Nov 28 '25 16:11 marcelklehr

Please try updating floccus and comment here when it happens again, in the meantime I will try to coax out the error using fuzzy tests.

marcelklehr avatar Nov 28 '25 16:11 marcelklehr