[GH-ISSUE #2046] Importing profiles can lead to errors when forgetting to reconfigure the desired local folder to sync #1367

Open
opened 2026-02-25 22:39:48 +03:00 by kerem · 5 comments
Owner

Originally created by @RokeJulianLockhart on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/2046

Which version of floccus are you using?

floccus-5.7.0.xpi

How many bookmarks do you have, roughly?

⪆ 425

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

"identity.fxaccounts.enabled": true

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.

Created in firefox-142.0.1-1.fc42.x86_64.rpm. Imported into chromium-139.0.7258.138-1.fc42.x86_64.rpm (with chromium-common-139.0.7258.138-1.fc42.x86_64.rpm).

Describe the Bug

When my new floccus.export.json is imported into floccus-build-v5.7.0.crx, I see: 1

Image

The exported log states:

2025-09-01T18:11:16.252Z Starting sync process for account Google Drive: bookmarks.xbel
2025-09-01T18:11:16.259Z onSyncStart: begin
2025-09-01T18:11:18.319Z onSyncStart: completed
2025-09-01T18:11:18.320Z Using "merge default" strategy (no cache available)
2025-09-01T18:11:18.320Z using the following HashSettings: {"preserveOrder":true,"hashFn":"xxhash3"}
2025-09-01T18:11:18.320Z Retrieving local tree
2025-09-01T18:11:18.321Z Syncing failed with E038: Could not find local folder
2025-09-01T18:11:18.321Z onSyncFail

For comparison, floccus-5.7.0.xpi has produced the logs that are available at gist.github.com/RokeJulianLockhart/0c189a3e58d48ccf5deb9ef9f4385fcc. This is without importation, which succeeds.

However, when imported (as gitlab.com/-/snippets/4884753 2 hopefully demonstrates, but which the undermentioned undoubtedly does), automatic synchronisation is impossible to enable:

https://github.com/user-attachments/assets/d330c4d3-f883-43fa-b4df-c0cad9d9565f

I don't know whether its cause is separate, but the symptom appears related. I can file another issue.

Expected Behavior

A new profile shouldn't be unusably broken.

To Reproduce

Successful Creation in Firefox

  1. #!/usr/bin/env sh
    sudo dnf5 install firefox-142.0.1-1.fc42.x86_64 && \
    firefox 'https://addons.mozilla.org/firefox/downloads/file/4565831/floccus-5.7.0.xpi' && \
    firefox "moz-extension://$internal_uuid/dist/html/options.html#/options/17567562041690.49589520217880956:~:text=Auto%2Dsync"
    
  2. At dist/html/options.html#/:~:text=No%20profiles%20yet, create a new profile.

  3. At dist/html/options.html#/new:~:text=Google%20Drive, choose Google Drive.

  4. Successfully authenticate, via OAuth2.

  5. Choose no name for the profile.

  6. Select "Untitled Directory" (the root, /). To demonstrate, if this were a filesystem directory, tree -L 1 . would return:

    /
    ├── Bookmarks Menu
    ├── Bookmarks Toolbar
    ├── Mobile Bookmarks
    └── Other Bookmarks
    
    5 directories, 0 files
    
  7. Export the profile to floccus.export.json.

Unsuccessful Importation In Chromium

  1. #!/usr/bin/env sh
    sudo dnf5 install chromium-139.0.7258.138-1.fc42.x86_64 && \
    chromium-browser 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=139.0.7258.138&acceptformat=crx2,crx3&x=id%3Dfnaicdffflnofjppbagibeoednhnbjhg%26uc'
    
  2. Import floccus.export.json.

  3. #!/usr/bin/env sh
    chromium-browser 'chrome-extension://fnaicdffflnofjppbagibeoednhnbjhg/dist/html/options.html#/'
    

    This reports the aforementioned: that the directory is impossible to locate.

Unsuccessful Reimportation in Firefox

  1. Import floccus.export.json.

  2. Synchronise.

Debug log provided

  • I have provided a debug log file
Originally created by @RokeJulianLockhart on GitHub (Sep 1, 2025). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/2046 ### Which version of floccus are you using? `floccus-5.7.0.xpi` ### How many bookmarks do you have, roughly? ⪆ 425 ### Are you using other means to sync bookmarks in parallel to floccus? ~~~JSON "identity.fxaccounts.enabled": true ~~~ ### 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. Created in `firefox-142.0.1-1.fc42.x86_64.rpm`. Imported into `chromium-139.0.7258.138-1.fc42.x86_64.rpm` (with `chromium-common-139.0.7258.138-1.fc42.x86_64.rpm`). <!-- ### Which version of Nextcloud Bookmarks are you using? (if relevant) Inapplicable ### Which version of Nextcloud? (if relevant) 〃 ### What kind of WebDAV server are you using? (if relevant) 〃 --> ### Describe the Bug When [my <em>new</em> `floccus.export.json`][2] is imported into [`floccus-build-v5.7.0.crx`][4], I see: [^2] [^2]: [`stackoverflow.com/revisions/14099762/4`][6] [6]: https://stackoverflow.com/revisions/14099762/4#:~:text=https://clients2.google.com/service/update2/crx?response=redirect%26prodversion=%5BPRODVERSION%5D%26acceptformat=crx2%2Ccrx3%26x=id%253D%5BEXTENSIONID%5D%2526uc,the%20ID%20of%20the%20extension [4]: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=139.0.7258.138&acceptformat=crx2,crx3&x=id%3Dfnaicdffflnofjppbagibeoednhnbjhg%26uc [2]: https://gist.github.com/RokeJulianLockhart/e6e9891a351b68ca744875a48b932b65#file-floccus-export-json <p></p><img width="1277" height="797" alt="Image" src="https://github.com/user-attachments/assets/5513e0d1-c3fc-430e-9d16-da570f646797" /><p></p> The exported log states: <blockquote> ~~~B 2025-09-01T18:11:16.252Z Starting sync process for account Google Drive: bookmarks.xbel 2025-09-01T18:11:16.259Z onSyncStart: begin 2025-09-01T18:11:18.319Z onSyncStart: completed 2025-09-01T18:11:18.320Z Using "merge default" strategy (no cache available) 2025-09-01T18:11:18.320Z using the following HashSettings: {"preserveOrder":true,"hashFn":"xxhash3"} 2025-09-01T18:11:18.320Z Retrieving local tree 2025-09-01T18:11:18.321Z Syncing failed with E038: Could not find local folder 2025-09-01T18:11:18.321Z onSyncFail ~~~ </blockquote> For comparison, [`floccus-5.7.0.xpi`][3] has produced the logs that are available at [`gist.github.com/RokeJulianLockhart/0c189a3e58d48ccf5deb9ef9f4385fcc`][1]. This is without importation, which succeeds. However, when imported (as [`gitlab.com/-/snippets/4884753`][5] [^1] hopefully demonstrates, but which the undermentioned undoubtedly does), automatic synchronisation is impossible to enable: https://github.com/user-attachments/assets/d330c4d3-f883-43fa-b4df-c0cad9d9565f [5]: https://gitlab.com/-/snippets/4884753 [^1]: [`github.com/orgs/community/discussions/171958`][6] [6]: https://github.com/orgs/community/discussions/171958#discussion-8829316 I don't know whether its cause is separate, but the symptom appears related. I can file another issue. [3]: https://addons.mozilla.org/firefox/downloads/file/4565831/floccus-5.7.0.xpi [1]: https://gist.github.com/RokeJulianLockhart/0c189a3e58d48ccf5deb9ef9f4385fcc#file-floccus-5-7-0-2025-09-01-full-log ### Expected Behavior A new profile shouldn't be unusably broken. ### To Reproduce #### Successful Creation in Firefox 1. ~~~sh #!/usr/bin/env sh sudo dnf5 install firefox-142.0.1-1.fc42.x86_64 && \ firefox 'https://addons.mozilla.org/firefox/downloads/file/4565831/floccus-5.7.0.xpi' && \ firefox "moz-extension://$internal_uuid/dist/html/options.html#/options/17567562041690.49589520217880956:~:text=Auto%2Dsync" ~~~ 1. At `dist/html/options.html#/:~:text=No%20profiles%20yet`, create a new profile. 1. At `dist/html/options.html#/new:~:text=Google%20Drive`, choose Google Drive. 1. Successfully authenticate, via OAuth2. 1. Choose no name for the profile. 1. Select "Untitled Directory" (the root, `/`). To demonstrate, if this were a filesystem directory, `tree -L 1 .` would return: ~~~MA / ├── Bookmarks Menu ├── Bookmarks Toolbar ├── Mobile Bookmarks └── Other Bookmarks 5 directories, 0 files ~~~ 1. Export the profile to `floccus.export.json`. #### Unsuccessful Importation In Chromium 1. ~~~sh #!/usr/bin/env sh sudo dnf5 install chromium-139.0.7258.138-1.fc42.x86_64 && \ chromium-browser 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=139.0.7258.138&acceptformat=crx2,crx3&x=id%3Dfnaicdffflnofjppbagibeoednhnbjhg%26uc' ~~~ 1. Import `floccus.export.json`. 1. ~~~sh #!/usr/bin/env sh chromium-browser 'chrome-extension://fnaicdffflnofjppbagibeoednhnbjhg/dist/html/options.html#/' ~~~ This reports the aforementioned: that the directory is impossible to locate. #### Unsuccessful Reimportation in Firefox 1. Import `floccus.export.json`. 1. Synchronise. ### Debug log provided - [x] I have provided a debug log file
Author
Owner

@github-actions[bot] commented on GitHub (Sep 1, 2025):

Hello 👋

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 💙

<!-- gh-comment-id:3243227155 --> @github-actions[bot] commented on GitHub (Sep 1, 2025): 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:
Author
Owner

@RokeJulianLockhart commented on GitHub (Sep 1, 2025):

https://github.com/floccusaddon/floccus/issues/2046#issuecomment-3243227155

Whoever wrote that added 80-character line breaks that render it nigh unreadable:

Image
<!-- gh-comment-id:3243229826 --> @RokeJulianLockhart commented on GitHub (Sep 1, 2025): > https://github.com/floccusaddon/floccus/issues/2046#issuecomment-3243227155 Whoever wrote that added 80-character line breaks that render it nigh unreadable: <img width="1712" height="1916" alt="Image" src="https://github.com/user-attachments/assets/2c61e658-3af4-473b-aa34-e264cb8b1d7e" />
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2025):

Hi @RokeJulianLockhart
This is currently expected, you may have to set the folder to sync again after importing a profile, there is also a hint on the import export page for this.

<!-- gh-comment-id:3244045801 --> @marcelklehr commented on GitHub (Sep 2, 2025): Hi @RokeJulianLockhart This is currently expected, you may have to set the folder to sync again after importing a profile, there is also a hint on the import export page for this.
Author
Owner

@RokeJulianLockhart commented on GitHub (Sep 2, 2025):

@marcelklehr, so both symptoms are due to the same cause: because I didn't manually reconfigure the directory after importation?

<!-- gh-comment-id:3244774590 --> @RokeJulianLockhart commented on GitHub (Sep 2, 2025): @marcelklehr, so both symptoms are due to the same cause: because I didn't manually reconfigure the directory after importation?
Author
Owner

@marcelklehr commented on GitHub (Sep 5, 2025):

Yes :)

<!-- gh-comment-id:3257971746 --> @marcelklehr commented on GitHub (Sep 5, 2025): Yes :)
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#1367
No description provided.