floccus
floccus copied to clipboard
E022: Folder #1097[Saved Tabs] supposedly contains non-existent bookmark 0
Describe the bug Syncing fails with the following error message: E022: Folder #1097[Saved Tabs] supposedly contains non-existent bookmark 0
To Reproduce Steps to reproduce the behavior:
Start browser with add-on installed OR Install add-on in browser and add account OR Manually start sync process See error Expected behavior Successfully syncing bookmarks with Nextcloud account.
Desktop (please complete the following information):
OS: Ubuntu 18.04 Browser: Google Chrome, Brave Browser Version: Brave Version 1.12.114 Chromium: 84.0.4147.135 (Official Build) (64-bit); Chrome Version 85.0.4183.83 (Official Build) (64-bit) Floccus version: 4.3.0 Floccus sync method: nextcloud folders
Server (please complete the following information): Bookmarks Version: 3.3.4 NextCloud: 19.0.2
Debug log It is often useful to provide a debug log file along with the issue. You can obtain a debug log of the most recent sync runs by clicking 'Debug log' in the bottom right corner of the floccus panel in your browser.
Note: As your debug log usually contains large parts of your bookmark data, instead of attaching it publicly to the issue here, I recommend uploading it privately at the following URL https://klehranlage.net/index.php/s/7nn82NSBsfQKdsJ
[x ] Debug log provided floccus-4.3.0-2020-08-27.log
2020-08-27T13:31:44.034Z { [Error: 1 errors] list: [ { [Error: 1 errors] list: [Object] } ] } 2020-08-27T13:31:44.035Z { [Error: 1 errors] list: [ { [Error: 1 errors] list: [Object] } ] } 2020-08-27T13:31:44.035Z { [Error: 1 errors] list: [ [Error: E022: Folder #1097[Saved Tabs] supposedly contains non-existent bookmark 0] ] } 2020-08-27T13:31:44.035Z [Error: E022: Folder #1097[Saved Tabs] supposedly contains non-existent bookmark 0] 2020-08-27T13:31:44.036Z Syncing failed with E022: Folder #1097[Saved Tabs] supposedly contains non-existent bookmark 0
[x ] Debug log provided Additional context
Sync has been tried with "Merge..." as well as "Always overwrite... local changes" and "Always overwrite... remote changes"
floccus gives me the same error, but it's for an old bookmark which was totally fine until the latest version of the chrome extension. I tried everything but
- Deleting the bookmark both locally and in the remote (nextcloud) doesn't work
- Uninstalling floccus, clearing data etc doesn't work
- Recreating the bookmark in the remote doesn't work
floccus now refuses to sync completely so pretty much all functionality is lost. What can I do?
floccus gives me the same error, but it's for an old bookmark which was totally fine until the latest version of the chrome extension. I tried everything but
- Deleting the bookmark both locally and in the remote (nextcloud) doesn't work
- Uninstalling floccus, clearing data etc doesn't work
- Recreating the bookmark in the remote doesn't work
floccus now refuses to sync completely so pretty much all functionality is lost. What can I do?
Ya I tried a lot of different things myself. Deleted the offending folder on NextCloud Bookmarks (Floccus just error'd out on the next one), tried to "Always overwrite... remote changes" and it broke 1/2 way through so now NextCloud is missing half my bookmarks. I just turned off sync for now until this is resolved. My clients are all in a state of disrepair and don't want to make matter worse than it already is.
This seems to be related to https://github.com/nextcloud/bookmarks/issues/1107
I am still trying to reproduce this. :/
@marcelklehr this particular bug seems to happen at random. My setup is Chromium on Manjaro + Kiwi browser on LineageOS 16.0 if that helps
@Baldomo Can you confirm whether this is an instance of the bug at nextcloud/bookmarks#1107 ? i.e. you cannot delete certain bookmarks even with the web UI? If so, would you be willing to provide a db dump of the bookmarks tables along with the bookmark id(s) that fails to get deleted?
@marcelklehr indeed, nextcloud refused to delete one of the folders at first but using "Delete all bookmarks" fixed everything. I then proceeded to sync normaly and now everything works (although I lost all bookmarks I added in the last week or so). Sadly I don't have access to all the internal logs because I use a managed instance
@marcelklehr indeed, nextcloud refused to delete one of the folders at first but using "Delete all bookmarks" fixed everything. I then proceeded to sync normaly and now everything works (although I lost all bookmarks I added in the last week or so). Sadly I don't have access to all the internal logs because I use a managed instance
I tried the "Delete all bookmarks" tip and it sync's about 100 bookmarks and then I am flooded with errors:
Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"} Nextcloud API error: {"status":"error","data":"Not found"}
I was able to sync again after doing the following steps on the computer holding a copy of my master bookmark list:
-
Disabled the Floccus extension by the slider after clicking the Icon in my Extensions bar. Since it was still stuck trying to sync for over 24 hours, I also went into Options and disabled and re-enabled the Floccus extension in the browser to get it to stop.
-
Went into NextCloud and selected the Bookmarks tab. Clicked the gear with the word "Settings" in the bottom left corner and selected "Delete all Bookmarks". Took about 15 minutes for all 1000+ bookmarks to delete until only a "1" showed
-
Went back into the Floccus extension and selected the following:
- Always overwrite and revert remote changes (so my bookmarks will sync back up to NextCloud)
- Dangerous Actions → Trigger Sync From Scratch (without doing this, I got all the errors listed above)
-
I re-enabled Sync in the Extension and clicked the "Sync Now" button. All bookmarks sync'd up to NextCloud and I finally got sync without errors.
-
I went back and changed my sync options to "Merge local and remote changes (recommended)" and did another sync. No issues
I also followed roughly the same procedure @Xtropy74 listed and can confirm both the errors it gave before and that it eventually worked, now floccus is back to normal on all my devices (although I also deleted and recreated all accounts on all copies of the extension I have installed)
I had the same issue and done the "Delete all bookmarks" maneuver once but after a week or two, I got the same error with a different folder.
2020-09-18T07:34:27.678Z { [Error: 1 errors]
list: [ [Error: E022: Folder #948[self-hosted] supposedly contains non-existent bookmark 2155] ] }
2020-09-18T07:34:27.678Z [Error: E022: Folder #948[self-hosted] supposedly contains non-existent bookmark 2155]
2020-09-18T07:34:27.679Z Syncing failed with E022: Folder #948[self-hosted] supposedly contains non-existent bookmark 2155
It's weird because I didn't touch this folder for a long time and my Firefox and Nextcloud are having the same 3 bookmarks there.
BTW logging a bookmark ID doesn't help as this ID doesn't appear anywhere else in the log so I still don't know which bookmark is causing the problem.
Floccus v4.3.0 (Firefox) Bookmarks v3.3.4
Thanks for all your feedback, folks! I'm currently working on a new iteration of the sync algorithm that should fix this: https://github.com/marcelklehr/floccus/pull/651
I've since rewritten the sync algorithm to avoid this kind of problems. Head over to https://github.com/marcelklehr/floccus/issues/666 if you'd like to help test the new version.
If you experience this issue, try to run occ maintenance:repair
on your server and use the upcoming v4.4.0 release (see #666)
I got around to testing this after the error showed up again (I added 1 bookmark to the sync folder). Exact same error on 4.4.2
Tried a "sync from scratch" and didn't help occ maintenance:repair
didn't help either
Funny thing is, I never touched this folder, I added the bookmark into a totally different area
2020-10-23T12:12:42.119Z { [Error: 1 errors] list: [ { [Error: 1 errors] list: [Object] } ] }
2020-10-23T12:12:42.120Z { [Error: 1 errors] list: [ [Error: E022: Folder #1589[Saved Tabs] supposedly contains non-existent bookmark 0] ] }
2020-10-23T12:12:42.120Z [Error: E022: Folder #1589[Saved Tabs] supposedly contains non-existent bookmark 0]
2020-10-23T12:12:42.121Z Syncing failed with E022: Folder #1589[Saved Tabs] supposedly contains non-existent bookmark 0
2020-10-23T12:12:42.434Z onSyncFail
This is back for me with 4.4.0-4.4.2 as well. (Things were great until the rewrite.)
I am getting this sort of error: E022: Folder #248[Pinebook Pro] supposedly contains non-existent bookmark 2015
.
The error seems to happen when there are folders with duplicate names.
occ maintenance:repair
did not solve anything.
Update: I noticed that repeated runs of occ maintenance:repair
found problems in the bookmark folders, but couldn't fix them. That is, I saw this:
- Remove orphaned bookmark tree items
- Removed 19 orphaned bookmarks
- Removed 2063 orphaned bookmark folders
every time I ran occ maintenance:repair
, over and over again.
I had to fully delete all bookmarks in NextCloud and force a resync to resolve the problem.
You may want to report this to the author/maintainer of the Nextcloud Bookmarks application, as I believe floccus caused the problem in the first plcae.
OK, that even didn't fix things. As soon as I brought back another browser for syncing, the bad bookmarks / folders come back, occ maintenance:repair
is unable to fix them, and now I am getting the The bookmark root cannot be modified
error as in #707.
I have to disable Floccus everywhere now because it is corrupting my Nextcloud Bookmarks.
You may want to report this to the author/maintainer of the Nextcloud Bookmarks application, as I believe floccus caused the problem in the first plcae.
This is a problem with the app. As it happens I am the maintainer of the Bookmarks app too :see_no_evil: :sweat_smile: I'll do a new release shortly with fixes to the repair step (among others).