[GH-ISSUE #699] Failed PUT Request #447

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

Originally created by @GrahamH68 on GitHub (Oct 20, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/699

Describe the bug
Since v4.4.0 (also with v4.4.1) on Firefox (Win10) I am receiving the error "E019: HTTP status 403. Failed PUT request. Check your server configuration and log." and am unable to sync with Nextcloud Bookmarks. Sync is still working on another maching that is using v4.3.x on Firefox (Win 10).

To Reproduce
Steps to reproduce the behavior:
Manual or Auto-Sync causes the error. No sync occurs.

Expected behavior
A clear and concise description of what you expected to happen.
Expected sync to take place.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Browser Version: 81.0.2 (64-bit)
  • Floccus version: v4.4.0 & v4.4.1
  • Floccus sync method: nextcloud folders, using nextcloud 19

Server (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Nextcloud version: 19.0.3
  • Bookmarks app version: 3.4.4

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

Debug log

2020-10-20T23:08:58.075Z Starting sync process for account @
2020-10-20T23:08:58.075Z Starting sync process for account @
2020-10-20T23:08:58.190Z onSyncStart: begin
2020-10-20T23:08:58.192Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:58.075Z Starting sync process for account @
2020-10-20T23:08:58.190Z onSyncStart: begin
2020-10-20T23:08:58.192Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:59.734Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:58.075Z Starting sync process for account @
2020-10-20T23:08:58.190Z onSyncStart: begin
2020-10-20T23:08:58.192Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:59.734Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:59.805Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log.
2020-10-20T23:08:59.812Z onSyncFail
2020-10-20T23:08:58.075Z Starting sync process for account @
2020-10-20T23:08:58.190Z onSyncStart: begin
2020-10-20T23:08:58.192Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:59.734Z https:///remote.php/webdav/.floccus-L1BlcnNvbmFs.lock
2020-10-20T23:08:59.805Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log.
2020-10-20T23:08:59.812Z onSyncFail

  • [ Y] Debug log provided

Additional context
Add any other context about the problem here.
This has been working flawlessly for over a year until the Firefox plugin updated to v4.4.0 from v4.3.x and the issue continues with v4.4.1.

Originally created by @GrahamH68 on GitHub (Oct 20, 2020). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/699 **Describe the bug** Since v4.4.0 (also with v4.4.1) on Firefox (Win10) I am receiving the error "E019: HTTP status 403. Failed PUT request. Check your server configuration and log." and am unable to sync with Nextcloud Bookmarks. Sync is still working on another maching that is using v4.3.x on Firefox (Win 10). **To Reproduce** Steps to reproduce the behavior: Manual or Auto-Sync causes the error. No sync occurs. **Expected behavior** A clear and concise description of what you expected to happen. Expected sync to take place. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: Windows 10 - Browser: Firefox - Browser Version: 81.0.2 (64-bit) - Floccus version: v4.4.0 & v4.4.1 - Floccus sync method: nextcloud folders, using nextcloud 19 **Server (please complete the following information):** - OS: Ubuntu 20.04.1 LTS - Nextcloud version: 19.0.3 - Bookmarks app version: 3.4.4 Note: Please write down the actual version numbers instead of writing 'latest'. **Debug log** 2020-10-20T23:08:58.075Z Starting sync process for account <MYUSER>@<MYSERVER> 2020-10-20T23:08:58.075Z Starting sync process for account <MYUSER>@<MYSERVER> 2020-10-20T23:08:58.190Z onSyncStart: begin 2020-10-20T23:08:58.192Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:58.075Z Starting sync process for account <MYUSER>@<MYSERVER> 2020-10-20T23:08:58.190Z onSyncStart: begin 2020-10-20T23:08:58.192Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:59.734Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:58.075Z Starting sync process for account <MYUSER>@<MYSERVER> 2020-10-20T23:08:58.190Z onSyncStart: begin 2020-10-20T23:08:58.192Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:59.734Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:59.805Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log. 2020-10-20T23:08:59.812Z onSyncFail 2020-10-20T23:08:58.075Z Starting sync process for account <MYUSER>@<MYSERVER> 2020-10-20T23:08:58.190Z onSyncStart: begin 2020-10-20T23:08:58.192Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:59.734Z https://<MYSERVER>/remote.php/webdav/.floccus-L1BlcnNvbmFs.lock 2020-10-20T23:08:59.805Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log. 2020-10-20T23:08:59.812Z onSyncFail - [ Y] Debug log provided **Additional context** Add any other context about the problem here. This has been working flawlessly for over a year until the Firefox plugin updated to v4.4.0 from v4.3.x and the issue continues with v4.4.1.
kerem 2026-02-25 22:37:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Oct 21, 2020):

Your account settings seem to be broken. Try removing the account and recreating it.

<!-- gh-comment-id:713411889 --> @marcelklehr commented on GitHub (Oct 21, 2020): Your account settings seem to be broken. Try removing the account and recreating it.
Author
Owner

@ghost commented on GitHub (Oct 22, 2020):

Same issue for me since the upgrade to 4.4.1 on Linux, Firefox 81.0.1. Removing and re-adding the account results in the same error:
E019: HTTP status 403. Failed PUT request. Check your server configuration and log.
Sync continues to work on Chromium with version 4.3.

<!-- gh-comment-id:714428060 --> @ghost commented on GitHub (Oct 22, 2020): Same issue for me since the upgrade to 4.4.1 on Linux, Firefox 81.0.1. Removing and re-adding the account results in the same error: `E019: HTTP status 403. Failed PUT request. Check your server configuration and log. ` Sync continues to work on Chromium with version 4.3.
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

@banjonerd could you submit your debug log?

<!-- gh-comment-id:714429001 --> @marcelklehr commented on GitHub (Oct 22, 2020): @banjonerd could you submit your debug log?
Author
Owner

@ghost commented on GitHub (Oct 22, 2020):

Yes, of course:

2020-10-21T23:19:31.059Z Starting sync process for account username@mydomain.com
2020-10-21T23:19:31.255Z onSyncStart: begin
2020-10-21T23:19:31.256Z https://mydomain.com/nextcloud/remote.php/webdav/.floccus-.lock
2020-10-21T23:19:31.491Z https://mydomain.com/nextcloud/remote.php/webdav/.floccus-.lock
2020-10-21T23:19:31.611Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log.
2020-10-21T23:19:31.637Z onSyncFail

Please let me know if I can provide any more information that might help.

:edited credentials/URL for privacy

<!-- gh-comment-id:714557159 --> @ghost commented on GitHub (Oct 22, 2020): Yes, of course: ``` 2020-10-21T23:19:31.059Z Starting sync process for account username@mydomain.com 2020-10-21T23:19:31.255Z onSyncStart: begin 2020-10-21T23:19:31.256Z https://mydomain.com/nextcloud/remote.php/webdav/.floccus-.lock 2020-10-21T23:19:31.491Z https://mydomain.com/nextcloud/remote.php/webdav/.floccus-.lock 2020-10-21T23:19:31.611Z Syncing failed with E019: HTTP status 403. Failed PUT request. Check your server configuration and log. 2020-10-21T23:19:31.637Z onSyncFail ``` Please let me know if I can provide any more information that might help. :edited credentials/URL for privacy
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

@banjonerd This indicates that your credentials are wrong

<!-- gh-comment-id:714560074 --> @marcelklehr commented on GitHub (Oct 22, 2020): @banjonerd This indicates that your credentials are wrong
Author
Owner

@ghost commented on GitHub (Oct 22, 2020):

I cut and pasted the same credentials into the Firefox and Chromium versions to test. Firefox still fails with the same error and Chromium continues to sync successfully.

<!-- gh-comment-id:714566472 --> @ghost commented on GitHub (Oct 22, 2020): I cut and pasted the same credentials into the Firefox and Chromium versions to test. Firefox still fails with the same error and Chromium continues to sync successfully.
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

Mmh, let's try the same thing with a curl command.

curl -X PUT -u 'username:password' -v https://mydomain/nextcloud/remote.php/webdav/.floccus-.lock

This should return a lot of things, but most importantly a line that says HTTP/2 204 (could also say HTTP/1.1 or similar)

<!-- gh-comment-id:714576673 --> @marcelklehr commented on GitHub (Oct 22, 2020): Mmh, let's try the same thing with a curl command. ``` curl -X PUT -u 'username:password' -v https://mydomain/nextcloud/remote.php/webdav/.floccus-.lock ``` This should return a lot of things, but most importantly a line that says `HTTP/2 204` (could also say HTTP/1.1 or similar)
Author
Owner

@ghost commented on GitHub (Oct 22, 2020):

That returns HTTP/1.1 403 Forbidden
Please let me know if you'd like the full error. I'll be away from my PC for a bit but will respond ASAP. And thanks for your trouble-shooting efforts.

<!-- gh-comment-id:714584819 --> @ghost commented on GitHub (Oct 22, 2020): That returns `HTTP/1.1 403 Forbidden` Please let me know if you'd like the full error. I'll be away from my PC for a bit but will respond ASAP. And thanks for your trouble-shooting efforts.
Author
Owner

@GrahamH68 commented on GitHub (Oct 22, 2020):

Some additional info which may help:

If I use my nextcloud username & account password then it works fine, but if I use the application token instead of the password (which has worked for months) then it fails with the error above.

I've just tried creating a new app token (without filesystem access) and I get the same error.

If I then enable File System Access on the Token then it works again, so this seems to have changed since 4.3.0.

It seems like I now have a workaround - enable file system access for the token.

<!-- gh-comment-id:714595080 --> @GrahamH68 commented on GitHub (Oct 22, 2020): Some additional info which may help: If I use my nextcloud username & account password then it works fine, but if I use the application token instead of the password (which has worked for months) then it fails with the error above. I've just tried creating a new app token (without filesystem access) and I get the same error. If I then enable File System Access on the Token then it works again, so this seems to have changed since 4.3.0. It seems like I now have a workaround - enable file system access for the token.
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

Aha. That makes sense. Since v4.4.0 floccus uses a file to coordinate access between different instances. I will update the error message to reflect these insights.

<!-- gh-comment-id:714597174 --> @marcelklehr commented on GitHub (Oct 22, 2020): Aha. That makes sense. Since v4.4.0 floccus uses a file to coordinate access between different instances. I will update the error message to reflect these insights.
Author
Owner

@GrahamH68 commented on GitHub (Oct 22, 2020):

That explains why I'm seeing all these nextcloud log entries "Synced .floccus-xxxxxx.lock"

I've also noticed that sync is take much much longer than with v4.3.0 - minutes rather than seconds.

<!-- gh-comment-id:714600590 --> @GrahamH68 commented on GitHub (Oct 22, 2020): That explains why I'm seeing all these nextcloud log entries "Synced .floccus-xxxxxx.lock" I've also noticed that sync is take much much longer than with v4.3.0 - minutes rather than seconds.
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

That explains why I'm seeing all these nextcloud log entries "Synced .floccus-xxxxxx.lock"

I will deal with that soon.

I've also noticed that sync is take much much longer than with v4.3.0 - minutes rather than seconds.

mmmh. I'll investigate that.

<!-- gh-comment-id:714603037 --> @marcelklehr commented on GitHub (Oct 22, 2020): > That explains why I'm seeing all these nextcloud log entries "Synced .floccus-xxxxxx.lock" I will deal with that soon. > I've also noticed that sync is take much much longer than with v4.3.0 - minutes rather than seconds. mmmh. I'll investigate that.
Author
Owner

@marcelklehr commented on GitHub (Oct 22, 2020):

Mmmh, apparently the hash endpoint is getting blocked by the browser.

UPDATE: I've found the issue that is causing slow syncs and will publish a new server app release soon.

<!-- gh-comment-id:714616675 --> @marcelklehr commented on GitHub (Oct 22, 2020): Mmmh, apparently the hash endpoint is getting blocked by the browser. UPDATE: I've found the issue that is causing slow syncs and will publish a new server app release soon.
Author
Owner

@GrahamH68 commented on GitHub (Oct 22, 2020):

Thanks Marcel, I love this plugin and really appreciate your work in creating and maintaining it :-)

<!-- gh-comment-id:714632941 --> @GrahamH68 commented on GitHub (Oct 22, 2020): Thanks Marcel, I love this plugin and really appreciate your work in creating and maintaining it :-)
Author
Owner

@ghost commented on GitHub (Oct 22, 2020):

Thanks, @GrahamH68; allowing file system access also worked for me (though I'm not experiencing the slow syncs that you are; my speed seems normal). I should've added earlier that I'm using 2FA on my account, so I use an app password with Floccus.
Also, count me in as being very appreciative of Marcel for making and maintaining this app. I can't contribute code but I do make a monthly donation. ^_^

<!-- gh-comment-id:714686220 --> @ghost commented on GitHub (Oct 22, 2020): Thanks, @GrahamH68; allowing file system access also worked for me (though I'm not experiencing the slow syncs that you are; my speed seems normal). I should've added earlier that I'm using 2FA on my account, so I use an app password with Floccus. Also, count me in as being very appreciative of Marcel for making and maintaining this app. I can't contribute code but I do make a monthly donation. ^_^
Author
Owner

@errolsancaktar commented on GitHub (Oct 29, 2020):

i cant seem to get mine working again, tried w/ app password and real password:
image

<!-- gh-comment-id:718881372 --> @errolsancaktar commented on GitHub (Oct 29, 2020): i cant seem to get mine working again, tried w/ app password and real password: ![image](https://user-images.githubusercontent.com/60162646/97605364-26d22700-19d4-11eb-92c5-4475277dad46.png)
Author
Owner

@marcelklehr commented on GitHub (Oct 29, 2020):

423 means the resource is locked 😱

Depending on which server you are using, try unlocking .floccus-xxx.lock

<!-- gh-comment-id:718924040 --> @marcelklehr commented on GitHub (Oct 29, 2020): 423 means the resource is locked :scream: Depending on which server you are using, try unlocking .floccus-xxx.lock
Author
Owner

@errolsancaktar commented on GitHub (Oct 29, 2020):

i tried deleting it. is that what you mean?

<!-- gh-comment-id:718929884 --> @errolsancaktar commented on GitHub (Oct 29, 2020): i tried deleting it. is that what you mean?
Author
Owner

@marcelklehr commented on GitHub (Oct 29, 2020):

WebDAV has file locking. If the file is locked, floccus cannot touch it or change it. Floccus doesn't lock files, though. So, a different entity locked the file and now you're stuck

<!-- gh-comment-id:718930589 --> @marcelklehr commented on GitHub (Oct 29, 2020): WebDAV has file locking. If the file is locked, floccus cannot touch it or change it. Floccus doesn't lock files, though. So, a different entity locked the file and now you're stuck
Author
Owner

@errolsancaktar commented on GitHub (Oct 29, 2020):

is it more complicated than deleting the file?

<!-- gh-comment-id:718931583 --> @errolsancaktar commented on GitHub (Oct 29, 2020): is it more complicated than deleting the file?
Author
Owner

@marcelklehr commented on GitHub (Oct 29, 2020):

If you deleted the file and you still get 423, then yes.

<!-- gh-comment-id:718936968 --> @marcelklehr commented on GitHub (Oct 29, 2020): If you deleted the file and you still get 423, then yes.
Author
Owner

@marcelklehr commented on GitHub (Oct 29, 2020):

@errolsancaktar let's continue this in #712

<!-- gh-comment-id:718963180 --> @marcelklehr commented on GitHub (Oct 29, 2020): @errolsancaktar let's continue this in #712
Author
Owner

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