Skip to content

WebDAV Sync Fails with E019: HTTP 404 on PUT Request, Strangely Resolved by an Unrelated WebDAV Operation #2079

@MCQSJ

Description

@MCQSJ

Which version of floccus are you using?

5.6.0

How many bookmarks do you have, roughly?

Approximately 200

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

No

Sync method

WebDAV

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

Microsoft Edge (140.0.3485.94) Mozilla Firefox (144.0) (Both on the same Windows PC)

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

No response

Which version of Nextcloud? (if relevant)

No response

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

I am using the WebDAV service provided by a Chinese cloud storage provider called "123pan" (webdav.123pan.cn).

Describe the Bug

I have floccus installed on both Edge and Firefox on the same computer, configured to sync with the same WebDAV account from 123pan.cn. Initially, syncing works correctly on both browsers. However, after some period of time, both browsers simultaneously start failing to sync.

The error message is: Syncing failed with E019: HTTP status 404. Failed PUT request. Check your server configuration and log.

Here is a relevant snippet from the error log:
2025-10-18T02:40:07.038Z Starting sync process for account dav-sys
2025-10-18T02:40:07.039Z onSyncStart: begin
2025-10-18T02:40:07.040Z https://webdav.123pan.cn/webdav/bookmarks.xbel.lock
2025-10-18T02:40:07.330Z Setting lock: https://webdav.123pan.cn/webdav/bookmarks.xbel.lock
2025-10-18T02:40:07.721Z Syncing failed with E019: HTTP status 404. Failed PUT request. Check your server configuration and log.
2025-10-18T02:40:07.722Z onSyncFail

The most peculiar part is the temporary fix. I also have the Tampermonkey extension installed, which has a script that can perform WebDAV backups. If I use this Tampermonkey script to perform a backup to the same WebDAV server (webdav.123pan.cn), but using a different account and password (which points to a different directory), the floccus sync immediately starts working again on both browsers without any changes to the floccus configuration.

floccus-5.6.0-2025-10-18-full.log

Expected Behavior

I expect the WebDAV sync to work consistently without failing with a 404 error. I should not need to perform an unrelated WebDAV action with another tool to temporarily fix the sync functionality.

To Reproduce

Set up floccus on two different browsers (e.g., Edge and Firefox) on the same machine.
Configure both to sync with the same WebDAV account provided by webdav.123pan.cn.
Perform a successful sync on both.
Wait for an indeterminate period (from a few hours to a day).
Attempt to sync again and observe the E019: HTTP status 404 error on both browsers.
Workaround Verification: Use a separate tool or script (like a Tampermonkey script) to access the same WebDAV server host (webdav.123pan.cn), even with a different account.
Immediately try syncing with floccus again. Observe that the sync now succeeds.

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions