[GH-ISSUE #862] Launching browser results in Sync Fail; "waking up" the NextCloud Server solves the issue #557

Closed
opened 2026-02-25 22:37:29 +03:00 by kerem · 2 comments
Owner

Originally created by @sproggit on GitHub (Apr 5, 2021).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/862

Describe the bug

Launching my (FireFox) web browser, I see that I get the little red square with a sync failure being reported. Nothing I try browser-side makes a difference. However, if I then navigate - using the same browser - to my local NextCloud instance where I have the NextCloud "Bookmarks" app installed... I can then return to the browser, click on the "Sync Now" button and everything works perfectly. It is like the server "goes to sleep" and this somehow throws the Floccus plug-in.

To Reproduce

Steps to reproduce the behavior:

  1. Launch Browser
  2. Wait for Floccus to attempt initial replication
  3. Observe replication failure
  4. Navigate to NextCloud instance where Bookmark Back End is located
  5. Go back to Floccus in the browser and click "Sync Now" Observe that replication works.

Expected behavior

Ideally, it would be nice if the browser could find a way to "wake up" the server if it really is an idle server that causes the problem. If it isn't that, then maybe allow for the Floccus client to re-try every 5 minutes or so, maybe throwing up an error if there is no change after 3 attempts.

Screenshots

Happy to provide if needed, but doubt it will be necessary...

Desktop

(please complete the following information)

  • OS: GNU/Linux Mint, 20.1; also seen on Windows 10 and earlier versions of Linux Mint
  • Firefox
  • Browser Version: 87.0, 64-bit
  • Floccus version: v4.6.1
  • Floccus sync method: NextCloud... not sure what the difference is between NextCloud Legacy and NextCloud Folders

Server

(please complete the following information)

  • Raspbian (Raspberry Pi 4B with 4Gb RAM): Linux 4.19.75-v7l+armv7l Kernel
  • Nextcloud version: 19.0.9
  • PHP Version 7.3.27
  • MySQL Version 10.3.23
  • Bookmarks app version: 3.4.9

Note: Please write down the actual version numbers instead of writing 'latest'.

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://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw

  • [Yes ] Debug log provided - floccus-4.6.1-2021-04-05.log - Uploaded April 5th @ 15:44 British Summer Time

Additional context

Tried all the usual... I upgraded all software components... The single weirdest thing is that this fails out-of-the-box, but if you navigate to the NextCloud instance and re-try, it works. It is like it is getting a timeout of some kind and the client just goes to a soft fail.

Originally created by @sproggit on GitHub (Apr 5, 2021). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/862 ### Describe the bug Launching my (FireFox) web browser, I see that I get the little red square with a sync failure being reported. Nothing I try browser-side makes a difference. However, if I then navigate - using the same browser - to my local NextCloud instance where I have the NextCloud "Bookmarks" app installed... I can then return to the browser, click on the "Sync Now" button and everything works perfectly. It is like the server "goes to sleep" and this somehow throws the Floccus plug-in. ### To Reproduce Steps to reproduce the behavior: 1. Launch Browser 2. Wait for Floccus to attempt initial replication 3. Observe replication failure 4. Navigate to NextCloud instance where Bookmark Back End is located 5. Go back to Floccus in the browser and click "Sync Now" Observe that replication works. ### Expected behavior Ideally, it would be nice if the browser could find a way to "wake up" the server if it really is an idle server that causes the problem. If it isn't that, then maybe allow for the Floccus client to re-try every 5 minutes or so, maybe throwing up an error if there is no change after 3 attempts. ### Screenshots Happy to provide if needed, but doubt it will be necessary... ### Desktop (please complete the following information) - OS: GNU/Linux Mint, 20.1; also seen on Windows 10 and earlier versions of Linux Mint - Firefox - Browser Version: 87.0, 64-bit - Floccus version: v4.6.1 - Floccus sync method: NextCloud... not sure what the difference is between NextCloud Legacy and NextCloud Folders ### Server (please complete the following information) - Raspbian (Raspberry Pi 4B with 4Gb RAM): Linux 4.19.75-v7l+armv7l Kernel - Nextcloud version: 19.0.9 - PHP Version 7.3.27 - MySQL Version 10.3.23 - Bookmarks app version: 3.4.9 Note: Please write down the actual version numbers instead of writing 'latest'. ### 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://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw - [Yes ] Debug log provided - floccus-4.6.1-2021-04-05.log - Uploaded April 5th @ 15:44 British Summer Time - [ ] ### Additional context Tried all the usual... I upgraded all software components... The single weirdest thing is that this fails out-of-the-box, but if you navigate to the NextCloud instance and re-try, it works. It is like it is getting a timeout of some kind and the client just goes to a soft fail.
kerem 2026-02-25 22:37:29 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sproggit commented on GitHub (Apr 6, 2021):

Rather embarrassingly, I think I just spotted the issue...
The certificate for the site hosting my NextCloud instance had expired... By accessing the site with my browser and "accepting" the expired certificate, I was allowing the browser to trust it. The reason that Floccus was reporting an error was that it was unable to get a safe handshake with the server. New cert resolved the issue.

<!-- gh-comment-id:814131988 --> @sproggit commented on GitHub (Apr 6, 2021): Rather embarrassingly, I think I just spotted the issue... The certificate for the site hosting my NextCloud instance had expired... By accessing the site with my browser and "accepting" the expired certificate, I was allowing the browser to trust it. The reason that Floccus was reporting an error was that it was unable to get a safe handshake with the server. New cert resolved the issue.
Author
Owner

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