[GH-ISSUE #355] Error syncing #297

Closed
opened 2026-02-25 22:36:44 +03:00 by kerem · 12 comments
Owner

Originally created by @InfamousUser on GitHub (Aug 23, 2019).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/355

Software versions

  • Browser: Chrome 76.0.3809.132
  • Nextcloud: Nextcloud 16.0.4
  • Nextcloud Bookmarks app: 2.0.3
  • Floccus: 3.4.0.5
  • Floccus sync method: Nextcloud best

Steps to reproduce

  1. Install Chrome extension
  2. Use Chrome extension

Expected outcome

Extension does what it's supposed to.

Actual outcome

Extension syncs some of the bookmarks (I don't know ho to verify how much it actually copied.

Debug log

Debug log contains a lot of "#undefined" entries.

  • Debug log provided

I don't see a field to actually enter the actual message you want to actually submit so here it is:

On one PC the sync worked properly. On second PC (I wiped bookmarks on the server between tries) it ends with an error:
"E019: HTTP status 403. Failed GET request. Check your server configuration and log. E019: HTTP status 403. Failed GET request. Check your server configuration and log."
It did transfer the majority or all of the bookmarks but I have no way to verify as it doesn't finish.

Originally created by @InfamousUser on GitHub (Aug 23, 2019). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/355 <!-- Hello there! Thank you for providing feedback! Please answer the below questions to allow for as smooth a process of tackling the issue as possible :) (Note: Everything surrounded by arrows, like this text for example, will not be visible.) --> ### Software versions <!-- Please provide the versions of the following software products in your set up --> - Browser: Chrome 76.0.3809.132 - Nextcloud: Nextcloud 16.0.4 - Nextcloud Bookmarks app: 2.0.3 - Floccus: 3.4.0.5 - Floccus sync method: Nextcloud best <!-- Sync methods are either XBEL/webdav (signified as `webdav`), nextcloud Bookmarks legacy (signified as `nextcloud`), or nextcloud Bookmarks v0.14+ with folders (signified as `nextcloud-folders`) --> ### Steps to reproduce <!-- What did you do? Be as specific as possible --> 1. Install Chrome extension 2. Use Chrome extension ### Expected outcome <!-- What did you think was going to happen or what do you think should have happened? --> Extension does what it's supposed to. ### Actual outcome <!-- What actually happened after you did the above steps? --> Extension syncs some of the bookmarks (I don't know ho to verify how much it actually copied. ### Debug log Debug log contains a lot of "#undefined" entries. <!-- 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 to the issue here, publicly, I recommend uploading it privately at the following URL https://klehranlage.net/index.php/s/7nn82NSBsfQKdsJ --> - [ ] Debug log provided I don't see a field to actually enter the actual message you want to actually submit so here it is: On one PC the sync worked properly. On second PC (I wiped bookmarks on the server between tries) it ends with an error: "E019: HTTP status 403. Failed GET request. Check your server configuration and log. E019: HTTP status 403. Failed GET request. Check your server configuration and log." It did transfer the majority or all of the bookmarks but I have no way to verify as it doesn't finish. <!-- Thanks! Now, hit Submit and wait for a reply :) -->
Author
Owner

@marcelklehr commented on GitHub (Aug 23, 2019):

This also appears to be a server-side issue. Status 403 means that the server refuses to respond for some reason. Perhaps some part of your server infrastructure identifies the floccus requests as flooding and bans your client. In any case, as the error message indicates, you should check your nextcloud and http server log. Feel free to report back here, if you're still stuck. :)

<!-- gh-comment-id:524485900 --> @marcelklehr commented on GitHub (Aug 23, 2019): This also appears to be a server-side issue. Status 403 means that the server refuses to respond for some reason. Perhaps some part of your server infrastructure identifies the floccus requests as flooding and bans your client. In any case, as the error message indicates, you should check your nextcloud and http server log. Feel free to report back here, if you're still stuck. :)
Author
Owner

@InfamousUser commented on GitHub (Aug 23, 2019):

Okay I have to say I did check twice the logging on Nextcloud server at the time and there was nothing new. This time I have 3 errors, not sure if all three are related. One is:

Error | Undefined offset: 0 at /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Parsers/HtmlParser.php#95

The other two are:

Error | Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 745472/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:OCA\DAV\Connector\Sabre\File->put(null)/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:OCA\DAV\Connector\Sabre\Directory->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:OCA\DAV\Upload\UploadFolder->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php- line 525:Sabre\DAV\Server->createFile("uploads/user/ ... 9", null, null)<<closure>>Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/apps/dav/lib/Server.php - line 316:Sabre\DAV\Server->exec()/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:OCA\DAV\Server->exec()/var/www/nextcloud/remote.php - line 163:require_once("/var/www/ne ... p")

and

Fatal | Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 745472/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:OCA\DAV\Connector\Sabre\File->put(null)/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:OCA\DAV\Connector\Sabre\Directory->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:OCA\DAV\Upload\UploadFolder->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php- line 525:Sabre\DAV\Server->createFile("uploads/user/ ... 9", null, null)<<closure>>Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/apps/dav/lib/Server.php - line 316:Sabre\DAV\Server->exec()/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:OCA\DAV\Server->exec()/var/www/nextcloud/remote.php - line 163:require_once("/var/www/ne ... p")

<!-- gh-comment-id:524492245 --> @InfamousUser commented on GitHub (Aug 23, 2019): Okay I have to say I did check twice the logging on Nextcloud server at the time and there was nothing new. This time I have 3 errors, not sure if all three are related. One is: `Error | Undefined offset: 0 at /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Parsers/HtmlParser.php#95` The other two are: `Error | Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 745472/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:OCA\DAV\Connector\Sabre\File->put(null)/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:OCA\DAV\Connector\Sabre\Directory->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:OCA\DAV\Upload\UploadFolder->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php- line 525:Sabre\DAV\Server->createFile("uploads/user/ ... 9", null, null)<<closure>>Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/apps/dav/lib/Server.php - line 316:Sabre\DAV\Server->exec()/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:OCA\DAV\Server->exec()/var/www/nextcloud/remote.php - line 163:require_once("/var/www/ne ... p")` and `Fatal | Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 745472/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:OCA\DAV\Connector\Sabre\File->put(null)/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:OCA\DAV\Connector\Sabre\Directory->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:OCA\DAV\Upload\UploadFolder->createFile("00000000000 ... 9", null)/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php- line 525:Sabre\DAV\Server->createFile("uploads/user/ ... 9", null, null)<<closure>>Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})/var/www/nextcloud/apps/dav/lib/Server.php - line 316:Sabre\DAV\Server->exec()/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:OCA\DAV\Server->exec()/var/www/nextcloud/remote.php - line 163:require_once("/var/www/ne ... p")`
Author
Owner

@iLoveVaccines commented on GitHub (Aug 28, 2019):

Hello,

Thank you for the very useful tool. I really appreciate it.

I have been getting this same error for a while now. First it was an account that I previously used successfully and one day without any changes from me these errors started happening. That server seems a bit flakey in general and it's nothing critical so I just left it for a while to see if it would resolve itself.

But it didn't so I decided to make a new account elsewhere and move there, however same story at 2nd server.

I have opened the log file and I don't really want to post it here because interspersed with the logging info it contains every bookmark I have and that's icky to post publicly. Is there a way to strip that out? How much do you need? I can't see anything that's obviously a datestamp so I don't know if this is recent or historical.

Scrolling through this looks to be a representative sample:

Received folders from server [ { id: '10898',
    title: _'Remote folder',_
    parent_folder: '-1',
    children: [ [Object] ] } ]
Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log.
Starting sync process for account _user@cloud.host1.com_
Starting sync process for account _user@cloud.host2.org_
Overriding title of built-in node 1 _Folder_ => _Folder_
Fetching bookmarks
Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log.
Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log.
Starting sync process for account _user@cloud.host2.org_
Overriding title of built-in node 1 _Bookmarks folder_ => _Bookmarks folder_
Fetching bookmarks
Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log.
Starting sync process for account _user@cloud.host2.com_
Received folders from server [ { id: '10899',
    title: _'Nextcloud folder',_
    parent_folder: '10898',
    children: [ [Object], [Object] ] } ]
LOADCHILDREN     + #10898[undefined] parentId: undefined
      + #10898[_Remote folder_] parentId: 10898
        + #10899[_Nextcloud folder_] parentId: 10898
          + #10903[_Bookmarks folder_] parentId: 10899

          + #10901[_Bookmarks folder_] parentId: 10899
            + #10916[_Bookmarks folder_] parentId: 10901

            + #10915[_Bookmarks folder_] parentId: 10901

            + #10913[_Bookmarks folder_] parentId: 10901
              + #10914[_Bookmarks folder_] parentId: 10913

            + #10911[_Bookmarks folder_] parentId: 10901

            + #10906[_Bookmarks folder_] parentId: 10901

            + #10904[_Bookmarks folder_] parentId: 10901

            + #10909[_Bookmarks folder_] parentId: 10901
              + #10910[_Bookmarks folder_] parentId: 10909

            + #10912[_Bookmarks folder_] parentId: 10901

I used italic to indicate redactions of my actual information. (They weren't all the same folder.)

Let me know if there is something more useful I could post. I tried:

  • using main password instead of "app password"
  • fiddling with the folders on either side
  • Removing account + starting from scratch

This is Brave on a Mac.

Oh also I see this occasionally on chromebook (different account, same host as first host1.com) and I was getting this error and IIRC E017.

<!-- gh-comment-id:525563731 --> @iLoveVaccines commented on GitHub (Aug 28, 2019): Hello, Thank you for the very useful tool. I really appreciate it. I have been getting this same error for a while now. First it was an account that I previously used successfully and one day without any changes from me these errors started happening. That server seems a bit flakey in general and it's nothing critical so I just left it for a while to see if it would resolve itself. But it didn't so I decided to make a new account elsewhere and move there, however same story at 2nd server. I have opened the log file and I don't really want to post it here because interspersed with the logging info it contains every bookmark I have and that's icky to post publicly. Is there a way to strip that out? How much do you need? I can't see anything that's obviously a datestamp so I don't know if this is recent or historical. Scrolling through this looks to be a representative sample: ``` Received folders from server [ { id: '10898', title: _'Remote folder',_ parent_folder: '-1', children: [ [Object] ] } ] Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log. Starting sync process for account _user@cloud.host1.com_ Starting sync process for account _user@cloud.host2.org_ Overriding title of built-in node 1 _Folder_ => _Folder_ Fetching bookmarks Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log. Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log. Starting sync process for account _user@cloud.host2.org_ Overriding title of built-in node 1 _Bookmarks folder_ => _Bookmarks folder_ Fetching bookmarks Syncing failed with E019: HTTP status 500. Failed GET request. Check your server configuration and log. Starting sync process for account _user@cloud.host2.com_ Received folders from server [ { id: '10899', title: _'Nextcloud folder',_ parent_folder: '10898', children: [ [Object], [Object] ] } ] LOADCHILDREN + #10898[undefined] parentId: undefined + #10898[_Remote folder_] parentId: 10898 + #10899[_Nextcloud folder_] parentId: 10898 + #10903[_Bookmarks folder_] parentId: 10899 + #10901[_Bookmarks folder_] parentId: 10899 + #10916[_Bookmarks folder_] parentId: 10901 + #10915[_Bookmarks folder_] parentId: 10901 + #10913[_Bookmarks folder_] parentId: 10901 + #10914[_Bookmarks folder_] parentId: 10913 + #10911[_Bookmarks folder_] parentId: 10901 + #10906[_Bookmarks folder_] parentId: 10901 + #10904[_Bookmarks folder_] parentId: 10901 + #10909[_Bookmarks folder_] parentId: 10901 + #10910[_Bookmarks folder_] parentId: 10909 + #10912[_Bookmarks folder_] parentId: 10901 ``` I used italic to indicate redactions of my actual information. (They weren't all the same folder.) Let me know if there is something more useful I could post. I tried: * using main password instead of "app password" * fiddling with the folders on either side * Removing account + starting from scratch This is Brave on a Mac. Oh also I see this occasionally on chromebook (different account, same host as first host1.com) and I was getting this error and _IIRC_ E017.
Author
Owner

@iLoveVaccines commented on GitHub (Aug 28, 2019):

Also tried: disabling 2FA. No dice.

<!-- gh-comment-id:525564204 --> @iLoveVaccines commented on GitHub (Aug 28, 2019): Also tried: disabling 2FA. No dice.
Author
Owner

@wjwoods commented on GitHub (Aug 28, 2019):

@iLoveVaccines - I was having a similar problem with http error 500/network status and NC log was showing:

"Call to undefined function gmp_init()"

PHP was unable to parse URLs with IP addresses instead of hostnames. I installed php7.2-gmp (Ubuntu 18.04) and it resolved the errors.

<!-- gh-comment-id:525873679 --> @wjwoods commented on GitHub (Aug 28, 2019): @iLoveVaccines - I was having a similar problem with http error 500/network status and NC log was showing: "Call to undefined function gmp_init()" PHP was unable to parse URLs with IP addresses instead of hostnames. I installed php7.2-gmp (Ubuntu 18.04) and it resolved the errors.
Author
Owner

@marcelklehr commented on GitHub (Aug 28, 2019):

@iLoveVaccines I agree, your error is likely unrelated, please check your nextcloud log.

<!-- gh-comment-id:525883520 --> @marcelklehr commented on GitHub (Aug 28, 2019): @iLoveVaccines I agree, your error is likely unrelated, please check your nextcloud log.
Author
Owner

@marcelklehr commented on GitHub (Aug 28, 2019):

@InfamousUser It would help if you could provide the actual version numbers as requested in the issue template.

<!-- gh-comment-id:525888829 --> @marcelklehr commented on GitHub (Aug 28, 2019): @InfamousUser It would help if you could provide the actual version numbers as requested in the issue template.
Author
Owner

@marcelklehr commented on GitHub (Aug 28, 2019):

Error | Undefined offset: 0 at /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Parsers/HtmlParser.php#95

This could be the culprit, but in that case you should get a 500 status, I think.

<!-- gh-comment-id:525889555 --> @marcelklehr commented on GitHub (Aug 28, 2019): > Error | Undefined offset: 0 at /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Parsers/HtmlParser.php#95 This could be the culprit, but in that case you should get a 500 status, I think.
Author
Owner

@iLoveVaccines commented on GitHub (Aug 30, 2019):

@iLoveVaccines I agree, your error is likely unrelated, please check your nextcloud log.

OK, sorry. I am new to this stuff. I will see if I can access it.

<!-- gh-comment-id:526736951 --> @iLoveVaccines commented on GitHub (Aug 30, 2019): > @iLoveVaccines I agree, your error is likely unrelated, please check your nextcloud log. OK, sorry. I am new to this stuff. I will see if I can access it.
Author
Owner

@marcelklehr commented on GitHub (Aug 30, 2019):

@iLoveVaccines No worries, everyone is new at some point :)

<!-- gh-comment-id:526753057 --> @marcelklehr commented on GitHub (Aug 30, 2019): @iLoveVaccines No worries, everyone is new at some point :)
Author
Owner

@InfamousUser commented on GitHub (Aug 31, 2019):

I have updated the OP with versions but in the meantime I saw the Bookmarks app got updated to new major version so I've deleted all the bookmarks, removed the Bookmarks app from Nextcloud, re-added it, reinstalled the browser extension and reconfigured it, seems to be updating properly now. I will report back if any more issues but looks to no longer exist with new Nextcloud app version.

<!-- gh-comment-id:526847757 --> @InfamousUser commented on GitHub (Aug 31, 2019): I have updated the OP with versions but in the meantime I saw the Bookmarks app got updated to new major version so I've deleted all the bookmarks, removed the Bookmarks app from Nextcloud, re-added it, reinstalled the browser extension and reconfigured it, seems to be updating properly now. I will report back if any more issues but looks to no longer exist with new Nextcloud app version.
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:1477332258 --> @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#297
No description provided.