Sabre\DAV\Exception: Unknown error while seeking content

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.10
Operating system and version (eg, Ubuntu 20.04): Terra-Master TOS (CentOS flavour)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): Php 7.3

The issue you are facing:

Receiving WebDav fatal errors in log.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Start server.
  2. Connect clients (whether desktop or iOS)
  3. Clients begin synchronising.

The output of your Nextcloud log in Admin > Logging:

Sabre\DAV\Exception: Unknown error while seeking content

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php - line 129:

    OCA\DAV\BulkUpload\MultipartRequestParser->isAt("--boundary_ ... n")

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/apps/dav/lib/BulkUpload/BulkUploadPlugin.php - line 69:

    OCA\DAV\BulkUpload\MultipartRequestParser->isAtLastBoundary()

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

    OCA\DAV\BulkUpload\BulkUploadPlugin->httpPost(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:

    Sabre\DAV\Server->emit("method:POST", [ Sabre\HTTP ... }])

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:

    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:

    Sabre\DAV\Server->start()

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/apps/dav/lib/Server.php - line 339:

    Sabre\DAV\Server->exec()

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

    OCA\DAV\Server->exec()

    /mnt/md0/application/Nextcloud_okm/bin/nextcloud/remote.php - line 166:

    require_once("/mnt/md0/ap ... p")

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocy3ml194qsh',
  'passwordsalt' => 'xx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => '192.168.x.xxx:xxxxx',
    1 => '192.168.x.xxx:xxxxx',
  ),
  'datadirectory' => '/mnt/md2/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'https://192.168.x.xxx:xxxxx',
  'dbname' => 'nextcloud',
  'dbhost' => '127.0.0.1:3307',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => ' ',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' =>  ,
  ),
  'default_phone_region' => ' ',
  0 =>
  array (
    'trusted_proxies' => ' ',
    'overwritehost' => ' ',
    'overwriteprotocol' => 'https',
    'overwritewebroot' => 'http:// ',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => ' ',
  'mail_domain' => ' ',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => ' ',
  'mail_smtpport' => ' ',
  'mail_smtpname' => ' ',
  'mail_smtppassword' => ' ',
);

The output of your Apache/nginx/system log in /var/log/____:

2021/12/03 17:43:45 [error] 2775#2775: *34022 open() "/usr/www/favicon.ico" failed (2: No such file or directory), client: 192.168.7.124, server: znasnginx, request: "GET /favicon.ico HTTP/1.1", host: "192.168.x.xxx:5443", referrer: "https://192.168.x.xxx:xxxx/"
2021/12/03 17:44:11 [error] 2775#2775: *34066 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.7.124, server: znasnginx, request: "GET /tos/index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.7.xxx:xxxx/tos/index.php?user/login"
2021/12/03 20:05:13 [error] 2775#2775: *38832 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.x.xxx, server: znasnginx, request: "GET /tos/index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/tos/index.php?user/login"
2021/12/04 05:39:33 [error] 2778#2778: *45530 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.x.xxx, server: znasnginx, request: "GET /tos/index.php?user/common_js&type=desktop&id=eKTEYMCF HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.7.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/tos/index.php"
2021/12/04 07:19:47 [error] 2778#2778: *48279 open() "/usr/www/favicon.ico" failed (2: No such file or directory), client: 192.168.x.xx, server: znasnginx, request: "GET /favicon.ico HTTP/1.1", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/"
2021/12/04 07:19:58 [error] 2775#2775: *48301 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.x.xx, server: znasnginx, request: "GET /tos/index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/tos/index.php?user/login"
2021/12/04 21:22:48 [warn] 2778#2778: *48917 a client request body is buffered to a temporary file /var/cache/nginx/client-body/0000000808, client: 192.168.x.xxx, server: znasnginx, request: "POST /modules/Nextcloud_okm/www/ax/handler.php HTTP/1.1", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/modules/Nextcloud_okm/www/index.php?page=2"
2021/12/04 21:30:41 [warn] 2775#2775: *49308 a client request body is buffered to a temporary file /var/cache/nginx/client-body/0000000809, client: 192.168.x.xxx, server: znasnginx, request: "POST /modules/Nextcloud_okm/www/ax/handler.php HTTP/1.1", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/modules/Nextcloud_okm/www/index.php?page=2"
2021/12/04 21:31:06 [warn] 2775#2775: *49225 a client request body is buffered to a temporary file /var/cache/nginx/client-body/0000000810, client: 192.168.x.xxx, server: znasnginx, request: "POST /modules/Nextcloud_okm/www/ax/handler.php HTTP/1.1", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/modules/Nextcloud_okm/www/index.php?page=2"
2021/12/04 21:31:27 [warn] 2775#2775: *49425 a client request body is buffered to a temporary file /var/cache/nginx/client-body/0000000811, client: 192.168.x.xxx, server: znasnginx, request: "POST /modules/Nextcloud_okm/www/ax/handler.php HTTP/1.1", host: "192.168.x.xxx:xxxx", referrer: "https://192.168.x.xxx:xxxx/modules/Nextcloud_okm/www/index.php?page=2"
1 Like

Same problem here:

[webdav] Fatal: Unknown error while seeking content

POST /remote.php/dav/bulk

/var/www/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php - line 129:

OCA\DAV\BulkUpload\MultipartRequestParser->isAt()

/var/www/nextcloud/apps/dav/lib/BulkUpload/BulkUploadPlugin.php - line 69:

OCA\DAV\BulkUpload\MultipartRequestParser->isAtLastBoundary()

/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

OCA\DAV\BulkUpload\BulkUploadPlugin->httpPost()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:

Sabre\DAV\Server->emit()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:

Sabre\DAV\Server->invokeMethod()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:

Sabre\DAV\Server->start()

/var/www/nextcloud/apps/dav/lib/Server.php - line 339:

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 166:

require_once("/var/www/ne ... p")

Same problem here:

Nextcloud version (eg, 20.0.5): 23.0.10

[webdav] Fatal: Unknown error while seeking content

POST […]/nextcloud/remote.php/dav/bulk
from […] by […] at 2021-12-21T12:02:32+00:00

{
  "reqId": "[...]",
  "level": 4,
  "time": "2021-12-21T12:03:32+00:00",
  "remoteAddr": "[...]",
  "user": "[...]",
  "app": "webdav",
  "method": "POST",
  "url": "[basePath]/remote.php/dav/bulk",
  "message": "Unknown error while seeking content",
  "userAgent": "Mozilla/5.0 (Linux) [...] (Nextcloud, linuxmint-5.4.0-91-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)",
  "version": "23.0.0.10",
  "exception":
    {
      "Exception": "Sabre\\DAV\\Exception",
      "Message": "Unknown error while seeking content",
      "Code": 500,
      "Trace":
        [
          {
            "file": "[basePath]/apps/dav/lib/BulkUpload/MultipartRequestParser.php",
            "line": 129,
            "function": "isAt",
            "class": "OCA\\DAV\\BulkUpload\\MultipartRequestParser",
            "type": "->",
            "args": ["--boundary_.oOo._[...]--\r\n"],
          },
          {
            "file": "[basePath]/apps/dav/lib/BulkUpload/BulkUploadPlugin.php",
            "line": 69,
            "function": "isAtLastBoundary",
            "class": "OCA\\DAV\\BulkUpload\\MultipartRequestParser",
            "type": "->",
            "args": [],
          },
          {
            "file": "[basePath]/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
            "line": 89,
            "function": "httpPost",
            "class": "OCA\\DAV\\BulkUpload\\BulkUploadPlugin",
            "type": "->",
            "args":
              [
                { "__class__": "Sabre\\HTTP\\Request" },
                { "__class__": "Sabre\\HTTP\\Response" },
              ],
          },
          {
            "file": "[basePath]/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 472,
            "function": "emit",
            "class": "Sabre\\DAV\\Server",
            "type": "->",
            "args":
              [
                "method:POST",
                [
                  { "__class__": "Sabre\\HTTP\\Request" },
                  { "__class__": "Sabre\\HTTP\\Response" },
                ],
              ],
          },
          {
            "file": "[basePath]/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 253,
            "function": "invokeMethod",
            "class": "Sabre\\DAV\\Server",
            "type": "->",
            "args":
              [
                { "__class__": "Sabre\\HTTP\\Request" },
                { "__class__": "Sabre\\HTTP\\Response" },
              ],
          },
          {
            "file": "[basePath]/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 321,
            "function": "start",
            "class": "Sabre\\DAV\\Server",
            "type": "->",
            "args": [],
          },
          {
            "file": "[basePath]/apps/dav/lib/Server.php",
            "line": 339,
            "function": "exec",
            "class": "Sabre\\DAV\\Server",
            "type": "->",
            "args": [],
          },
          {
            "file": "[basePath]/apps/dav/appinfo/v2/remote.php",
            "line": 35,
            "function": "exec",
            "class": "OCA\\DAV\\Server",
            "type": "->",
            "args": [],
          },
          {
            "file": "[basePath]/remote.php",
            "line": 166,
            "args":
              ["[basePath]/apps/dav/appinfo/v2/remote.php"],
            "function": "require_once",
          },
        ],
      "File": "[basePath]/apps/dav/lib/BulkUpload/MultipartRequestParser.php",
      "Line": 111,
      "CustomMessage": "--",
    },
  "id": "[...]",
}

I die some Research. For me an account without a FN-Property was not set. This caused the error.

HTTP RESPONSE
Response{protocol=http/1.1, code=415, message=Unsupported Media Type, url=https://[...].vcf}
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">%
  <s:exception>Sabre\DAV\Exception\UnsupportedMediaType</s:exception>
  <s:message>Validation error in vCard: The FN property must appear in the VCARD component exactly 1 time</s:message>
</d:error>

Request:

HTTP REQUEST
Request{method=PUT, url=[...], headers=[If-None-Match:*, User-Agent:DAVx5/4.0-gplay (2021/10/10; dav4jvm; okhttp/4.9.1) Android/11, Accept-Language:en-GB, en;q=0.7, *;q=0.5]}
BEGIN:VCARD
VERSION:4.0
PRODID:+//IDN bitfire.at//DAVx5/4.0-gplay ez-vcard/0.11.2
UID:[...]
TEL;TYPE=cell:[masked Phone No]
REV:[...]
END:VCARD

After deletiing the Contact everything works fine again. Maybe this will help someone else.

Same exact error as OP here. Is there any news on what causes this? Fresh install of Nextcloud 23.0.0

I spent a long time trying to figure this one out and eventually managed to solve the problem by disabling previews in the local file browsers where the clients were trying to sync. As soon as I changed the default view settings recursively to filenames only all files immediately started syncing properly!

Hope that helps someone else scratching their head.

1 Like

Is that client side or the nextcloud interface file browser?

1 Like

Same problem here
Nextcloud version : 23.0.0
Operating system and version : Debian 10 (Linux 5.10.0-8-amd64 x86_64)
Apache or nginx version : Apache 2.4.52
PHP version: 7.4.25
no account without a FN-Property were found as xy8000 suggested.

1 Like

Same problem. Linking my post:

/Me2. Same system 23.0.0. bullseye with default packages (apache):

{"reqId":"Ao55gznvcRFzK0A2q8dd","level":4,"time":"2022-01-11T14:01:30+00:00","remoteAddr":"213.168.215.242","user":"Maik Holtkamp","app":"webdav","method":"POST","url":"/nextcloud/remote.php/dav/bulk","message":"Unknown error while seeking content","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.1stable-Win64 (build 20211221) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"23.0.0.10","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unknown error while seeking content","Code":500,"Trace":[{"file":"/var/www/medizintechnik/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","line":129,"function":"isAt","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/apps/dav/lib/BulkUpload/BulkUploadPlugin.php","line":69,"function":"isAtLastBoundary","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPost","class":"OCA\\DAV\\BulkUpload\\BulkUploadPlugin","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/apps/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/medizintechnik/nextcloud/remote.php","line":166,"args":["/var/www/medizintechnik/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/medizintechnik/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","Line":111,"CustomMessage":"--"},"id":"61dda120088e0"}

Back on 3.3.6 client now, which is working.

I got the exact same issue on a completely fresh Install of Nextcloud 23.0.0 with the Windows and Linux Nextcloud clients.

2 Likes

Add me to the ‘me too’ list. Been running without problems for about six months.
Yesterday on two machines with different versions of the sync client, the client stopped responding (task manager needed to kill it) Only recent change was updating the container to bring things up to 25.0.2

Apparently now a known issue Windows and Linux clients freezing when bulk uploading · Issue #4106 · nextcloud/desktop · GitHub
In my case, on both machines I set the bandwidth to ‘limit automatically’ while trying to sort out a different problem. Setting this back to ‘unlimited’ seems to have fixed things.

1 Like