[GH-ISSUE #82] Bug deleting entry on server that already didn't exist #80

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

Originally created by @Lantizia on GitHub (Apr 10, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/82

Software versions

  • Browser: Chrome 65
  • Nextcloud: 12.0.5
  • Nextcloud Bookmarks app: 0.11.0
  • Floccus: 2.0.6

Steps to reproduce

  1. Donate, whether it works entirely or not yet - this is damned fine software (in theory) and needs supporting.
  2. On my home PC I copied all my bookmarks (about 2500 of them) into the bookmark folder that floccus uses for syncronisation.
  3. Went onto my work PC (with a new install/profile of Chrome) and tried to sync them down.

Expected outcome

It to sync up properly and down properly?

Actual outcome

For some reason when it was syncing up it randomly stopped and said it had difficulty deleting entry with id 68 on the server. I had to go into the SQL of the Nextcloud database into the bookmarks table and make a fake entry 68 just so it could then delete it. Not sure why, I can provide extra information if I am able to (as I'll likely re-attempt uploading these all up again in the future when all the bugs I'm listing are ironed out).

Originally created by @Lantizia on GitHub (Apr 10, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/82 ### Software versions * Browser: Chrome 65 * Nextcloud: 12.0.5 * Nextcloud Bookmarks app: 0.11.0 * Floccus: 2.0.6 ### Steps to reproduce 1. Donate, whether it works entirely or not yet - this is damned fine software (in theory) and needs supporting. 2. On my home PC I copied all my bookmarks (about 2500 of them) into the bookmark folder that floccus uses for syncronisation. 3. Went onto my work PC (with a new install/profile of Chrome) and tried to sync them down. ### Expected outcome It to sync up properly and down properly? ### Actual outcome For some reason when it was syncing up it randomly stopped and said it had difficulty deleting entry with id 68 on the server. I had to go into the SQL of the Nextcloud database into the bookmarks table and make a fake entry 68 just so it could then delete it. Not sure why, I can provide extra information if I am able to (as I'll likely re-attempt uploading these all up again in the future when all the bugs I'm listing are ironed out).
Author
Owner

@marcelklehr commented on GitHub (Apr 10, 2018):

I've fixed this on the server-side already, it should be ok with the next release of nextcloud bookmarks.

<!-- gh-comment-id:380032280 --> @marcelklehr commented on GitHub (Apr 10, 2018): I've fixed this on the server-side already, it should be ok with the next release of nextcloud bookmarks.
Author
Owner

@Lantizia commented on GitHub (Apr 10, 2018):

Brill I'll keep an eye out for the next release of that. I need a rebuild of my Nextcloud server anyway, 12.0.5 is getting oooold.

<!-- gh-comment-id:380035191 --> @Lantizia commented on GitHub (Apr 10, 2018): Brill I'll keep an eye out for the next release of that. I need a rebuild of my Nextcloud server anyway, 12.0.5 is getting oooold.
Author
Owner

@1stone commented on GitHub (May 16, 2018):

Hi Marcel,

could you give some background why this is a server-side bug?
With the uncertainty when a new bookmark app will be available, do you see a chance to mitigate this problem in floccus?
I'm currently hitting this problem over and over again (syncing with multiple browsers, Chrome & Firefox). Using the suggested workaround becomes quite annoying...

Cheers

<!-- gh-comment-id:389614765 --> @1stone commented on GitHub (May 16, 2018): Hi Marcel, could you give some background why this is a server-side bug? With the uncertainty when a new bookmark app will be available, do you see a chance to mitigate this problem in floccus? I'm currently hitting this problem over and over again (syncing with multiple browsers, Chrome & Firefox). Using the suggested workaround becomes quite annoying... Cheers
Author
Owner

@marcelklehr commented on GitHub (May 21, 2018):

Hey @1stone
Sorry for the delay!
There have been multiple bugs that caused this failure, apparently. In the end the server should be able to handle deletions of items that have already been deleted, which is why I labelled this as an upstream issue. But then, why does the client delete the item in the first place? Initially, I thought this only happens when the same item is deleted concurrently on two clients. But the latest patch release fixes a bug that could lead to all sorts of undesirable behavior. Let me know if v2.2.3 makes your life easier :)

<!-- gh-comment-id:390676484 --> @marcelklehr commented on GitHub (May 21, 2018): Hey @1stone Sorry for the delay! There have been multiple bugs that caused this failure, apparently. In the end the server should be able to handle deletions of items that have already been deleted, which is why I labelled this as an upstream issue. But then, why does the client delete the item in the first place? Initially, I thought this only happens when the same item is deleted concurrently on two clients. But the latest patch release fixes a bug that could lead to all sorts of undesirable behavior. Let me know if v2.2.3 makes your life easier :)
Author
Owner

@e-alfred commented on GitHub (May 28, 2018):

I have the same problem. I added a few bookmarks in folders I didn't want to and I deleted them on one Floccus client. They were removed from the server without a problem. But then they were synced back from another client. If I delete them on the other client and try "sync now" I get multiple errors complaining "Removing a bookmark on the server failed. remoteId=111".

<!-- gh-comment-id:392542962 --> @e-alfred commented on GitHub (May 28, 2018): I have the same problem. I added a few bookmarks in folders I didn't want to and I deleted them on one Floccus client. They were removed from the server without a problem. But then they were synced back from another client. If I delete them on the other client and try "sync now" I get multiple errors complaining "Removing a bookmark on the server failed. remoteId=111".
Author
Owner

@marcelklehr commented on GitHub (May 31, 2018):

It turns out I hadn't completely fixed the issue I mentioned earlier, so... give v2.2.6 a try :)

<!-- gh-comment-id:393695584 --> @marcelklehr commented on GitHub (May 31, 2018): It turns out I hadn't completely fixed the issue I mentioned earlier, so... give v2.2.6 a try :)
Author
Owner

@marcelklehr commented on GitHub (Jun 6, 2018):

Did the error come up again in the meantime?

<!-- gh-comment-id:395223923 --> @marcelklehr commented on GitHub (Jun 6, 2018): Did the error come up again in the meantime?
Author
Owner

@e-alfred commented on GitHub (Jun 7, 2018):

Yes, it works now. Thanks for the awesome work!

<!-- gh-comment-id:395387912 --> @e-alfred commented on GitHub (Jun 7, 2018): Yes, it works now. Thanks for the awesome work!
Author
Owner

@1stone commented on GitHub (Jun 7, 2018):

Hmm...
after not seeing this problem for several days, I just encountered it again with 2.2.7 on Chrome.
This is the message copy&pasted from the settings window:

Removing a bookmark on the server failed. remoteId=1016 Removing a bookmark on the server failed. remoteId=1017 Removing a bookmark on the server failed. remoteId=1014 Removing a bookmark on the server failed. remoteId=1015 Removing a bookmark on the server failed. remoteId=1018 Removing a bookmark on the server failed. remoteId=1019 Removing a bookmark on the server failed. remoteId=1006 Removing a bookmark on the server failed. remoteId=1005 Removing a bookmark on the server failed. remoteId=1003 Removing a bookmark on the server failed. remoteId=1004
<!-- gh-comment-id:395535654 --> @1stone commented on GitHub (Jun 7, 2018): Hmm... after not seeing this problem for several days, I just encountered it again with 2.2.7 on Chrome. This is the message copy&pasted from the settings window: ``` Removing a bookmark on the server failed. remoteId=1016 Removing a bookmark on the server failed. remoteId=1017 Removing a bookmark on the server failed. remoteId=1014 Removing a bookmark on the server failed. remoteId=1015 Removing a bookmark on the server failed. remoteId=1018 Removing a bookmark on the server failed. remoteId=1019 Removing a bookmark on the server failed. remoteId=1006 Removing a bookmark on the server failed. remoteId=1005 Removing a bookmark on the server failed. remoteId=1003 Removing a bookmark on the server failed. remoteId=1004 ```
Author
Owner

@marcelklehr commented on GitHub (Jun 7, 2018):

@1stone I realize that those ids are kind of awkward. Any specific actions that you undertook before this happened?

<!-- gh-comment-id:395582413 --> @marcelklehr commented on GitHub (Jun 7, 2018): @1stone I realize that those ids are kind of awkward. Any specific actions that you undertook before this happened?
Author
Owner

@1stone commented on GitHub (Jun 8, 2018):

@marcelklehr: Nothing particular. In fact, I've only revived my workstation from hibernation and noticed that the floccus icon showed an "!" annotation. (It probably was there before. I don't see a relation to hibernation here.)
Clicking on it and saw that error message pasted above.

While two other accounts (one of that on the same server, but with different path) reported ok, I was not able to change the situation for the failed one. Neither clicking sync or reset had any obvious effect.

Finally, I deleted the account completely and recreated it again with the same settings. A full sync started, and everything was fine again after that.

I'll keep a close eye on this and report back with eventually more infos.
Thanks for your support.

<!-- gh-comment-id:395864815 --> @1stone commented on GitHub (Jun 8, 2018): @marcelklehr: Nothing particular. In fact, I've only revived my workstation from hibernation and noticed that the floccus icon showed an "!" annotation. (It probably was there before. I don't see a relation to hibernation here.) Clicking on it and saw that error message pasted above. While two other accounts (one of that on the same server, but with different path) reported ok, I was not able to change the situation for the failed one. Neither clicking sync or reset had any obvious effect. Finally, I deleted the account completely and recreated it again with the same settings. A full sync started, and everything was fine again after that. I'll keep a close eye on this and report back with eventually more infos. Thanks for your support.
Author
Owner

@marcelklehr commented on GitHub (Jun 21, 2018):

I'll close this in the meantime. @1stone Feel free to open a new issue for follow-ups. :)

<!-- gh-comment-id:399232671 --> @marcelklehr commented on GitHub (Jun 21, 2018): I'll close this in the meantime. @1stone Feel free to open a new issue for follow-ups. :)
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 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:1478009090 --> @github-actions[bot] commented on GitHub (Mar 21, 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#80
No description provided.