Skip to content

Migrating Existing (Good) NextCloud to new Web Server has triggered Brute-Force Protections against Floccus #2241

@sproggit

Description

@sproggit

Which version of floccus are you using?

V5.9.1

How many bookmarks do you have, roughly?

4,419

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

No

Sync method

Nextcloud Bookmarks

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

Firefox 150.0.0

Which version of Nextcloud Bookmarks are you using? (if relevant)

v16.1.4

Which version of Nextcloud? (if relevant)

Hub 26 Winter (33.0.2)

What kind of WebDAV server are you using? (if relevant)

NextCloud Defaults

Describe the Bug

Attempts by Floccus to synchronise with the NextCloud Bookmark app result in my client IP being "brute-force blocked" by the integrated/internal NextCloud controls.

This is a particularly unusual scenario...

I have just migrated my NextCloud instance between two Raspberry Pi computers.
Both Pi's were running Raspbian "Trixie" as their OS.

To minimise risks of dependency issues, I first confirmed that I was running the latest edition of NextCloud, then used the Web Installer script to perform a fresh install of Nextcloud on my destination host [different URL, obviously], then installed the same set of Apps and eliminated the handful of "Security & Setup warnings" issued by NextCloud.

When I had a good, clean installation, I followed NextCloud's own "how to move" instructions - which basically consists of creating a compressed tar file of the entire contents of the NextCloud webroot, moving it to the destination server and unpacking, then porting across the Apache2 site file and porting the IP address [I'm using Virtual IP-based virtual hosts in this setup].

NextCloud started first attempt and has run clean with no issues being reported, except for the fact that Floccus is now triggering the NextCloud Brute Force protections, which in my case it has never done before.

The only other oddity is that when I first connected my browser to the ported instance of Floccus, the sync entries in Floccus all immediately failed. [I have 3 - "Bookmarks Toolbar", "Bookmarks Menu" and "Other Bookmarks", as these are the 3 "TLDs" of my bookmark library... ]

However, I simply opened Floccus and selected the "Options" for each instance, re-typed my password and hit "Start".

I now have a work-around in place - I have used the Administration>>Security tab in the NextCloud Admin panels to add the IP address of my workstation to the "Brute-force allow list"... and this has definitely suspended the repeat of the issue. However, this is only a temporary fix, since I'm going to want to access this NextCoud instance when I'm travelling - and in that use case my IP address will be changing regularly.

The "odd thing" here is that to the best of my knowledge/ability, I have performed a like-for-like port of this NextCloud instance between two servers both running the same release of OS. I used "dpkg --list" on both Pi machines and piped the output to text files to compare and confirm packages aligned. I used "sudo apachectl -M" and compared the active Apache modules. I have made minimal edits to e.g. my local php.ini files - all guided by NextCloud's Admin/Setup warning messages.

I have ported NextCloud between servers before - several times - without issue. This is the first time I've hit this specific challenge and I'm 99% sure it's something I've done/failed to do, but I'm struggling to triage...

IMPORTANT NOTE
One of the few things I "got wrong" in my initial configuration was that I failed to "a2enmod" the "Rewrite" module. This appears to be needed by each of the WebDAV/CalDAV/CardDAV components of NextCloud, because that triggered a weird error that reported an issue for CalDAV but only CalDAV - but which on testing showed that all 3 DAV implementations were broken. I worked backwards, realised the module was not enabled and enabled it. This resolved the NextCloud Error message, but by that time of course Floccus had attempted and failed to Synchronise.

Is it possible that the initial absence of the Apache2 rewrite module has put the "Bookmark" app in to a fragile state that is causing this issue?

Expected Behavior

I would expect Floccus to interact with NextCloud's API in a way that does not trigger the brute-force protections on the server.

The implication here is that the activity that is repeating "again and again" is part of the authentication process, using the credentials stored in the Floccus instance on my browser [neither of which have changed within this migration]. As noted, when Floccus first failed to connect after starting the ported instance of NextCloud for the first time, I did re-submit my credentials for each of the 3 configured replication entries. That seems to work - I can click the "run now" button and each will run through to conclusion without issue... but the next time I start my browser, not only does it fail, it brute-force locks my NextCloud ID [requiring me to use the occ command to unlock my client IP address].

To Reproduce

Issue appears with 100% frequency each time I re-launch my Firefox browser... at least it did - right up to the point where I allow-listed my client's IP address in NextCloud's configuration settings.

floccus-5.9.1-2026-04-25-full_obfuscated.log

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions