503 Specified header is allowed only in webdav endpoint

Hi,
Just woke up and saw that I can't upload any file from my desktop client. From the webpage, it works fine and the file is downloaded on my client. This is not huge files.

Message found in owncloud.log is :

{"reqId":"irZoc6dawXaVCDrdWPIY","level":4,"time":"2017-11-08T09:04:00+00:00","remoteAddr":"77.136.17.90","user":"user","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/user\/path\/to\/thefile\/modele1.psd-chunking-1811922759-2-0","message":"Exception: {\"Message\":\"HTTP\\/1.1 503 Specified header (HTTP_OC_CHUNKED\\/OC-Chunked header) is allowed only in webdav endpoint\",\"Exception\":\"Sabre\\DAV\\Exception\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 [internal function]: OCA\\DAV\\Connector\\Sabre\\ValidateRequestPlugin->checkValidityPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \\/var\\/www\\/owncloud\\/lib\\/composer\\/sabre\\/event\\/lib\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#2 \\/var\\/www\\/owncloud\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(465): Sabre\\Event\\EventEmitter->emit('beforeMethod:PU...', Array)\n#3 \\/var\\/www\\/owncloud\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/Server.php(234): Sabre\\DAV\\Server->exec()\n#5 \\/var\\/www\\/owncloud\\/apps\\/dav\\/appinfo\\/v2\\/remote.php(31): OCA\\DAV\\Server->exec()\n#6 \\/var\\/www\\/owncloud\\/remote.php(165): require_once('\\/var\\/www\\/ownclo...')\n#7 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/Connector\\/Sabre\\/ValidateRequestPlugin.php\",\"Line\":96,\"User\":\"user\"}"}

Thanks !

Steps to reproduce

  1. Uploading a file from desktop client

Expected behaviour

Upload OK

Actual behaviour

Upload fails

Server configuration

Operating system: Ubuntu 16.04.3

Web server: Apache/2.4.18

Database: MySQL 5.7.20

PHP version: 7.1.11

ownCloud version: (see ownCloud admin page) 10.0.3

Updated from an older ownCloud or fresh install: Fresh install

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above): No errors have been found.

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => 'XXX.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'https://XXX.com',
  'dbtype' => 'mysql',
  'version' => '10.0.3.3',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'logtimezone' => '',
  'installed' => true,
  'memcache.locking' => '\OC\Memcache\APCu',
);

List of activated apps:

Enabled:
  - comments: 0.3.0
  - configreport: 0.1.1
  - dav: 0.3.0
  - federatedfilesharing: 0.3.1
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.7.1
  - files_sharing: 0.10.1
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - market: 0.2.2
  - notifications: 0.3.1
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.1
  - updatenotification: 0.2.1

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Vivaldi 1.12.955.48

Operating system: Mac OSX 10.11.6

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

{"reqId":"1OsE4hnLZFvyfItI7Vwi","level":4,"time":"2017-11-08T09:03:59+00:00","remoteAddr":"77.136.17.90","user":"user","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/user\/path\/to\/thefile\/modele1.psd-chunking-1811922759-2-0","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Specified  header (HTTP_OC_CHUNKED\\\/OC-Chunked header) is allowed only in webdav endpoint\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 [internal function]: OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ValidateRequestPlugin->checkValidityPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(465): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod:PU...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(234): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#6 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#7 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ValidateRequestPlugin.php\",\"Line\":96,\"User\":\"kevout\"}"}
{"reqId":"irZoc6dawXaVCDrdWPIY","level":4,"time":"2017-11-08T09:04:00+00:00","remoteAddr":"77.136.17.90","user":"user","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/user\/path\/to\/thefile\/modele1.psd-chunking-1811922759-2-0","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Specified  header (HTTP_OC_CHUNKED\\\/OC-Chunked header) is allowed only in webdav endpoint\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 [internal function]: OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ValidateRequestPlugin->checkValidityPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(465): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod:PU...', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(234): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#6 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#7 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ValidateRequestPlugin.php\",\"Line\":96,\"User\":\"kevout\"}"}
{"reqId":"Sp1IsSHA23JPa3Ipivap","level":4,"time":"2017-11-08T09:04:01+00:00","remoteAddr":"77.136.17.90","user":"user","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/user\/path\/to\/thefile\/20171108.png","message":"Exception: {\"Message\":\"HTTP\\\/1.1 400 The computed checksum does not match the one received from the client.\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\BadRequest\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(162): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #57)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1095): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('20171108.png', Resource id #57)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('files\\\/kevout\\\/E-...', Resource id #57, NULL)\\n#3 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(234): Sabre\\\\DAV\\\\Server->exec()\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#9 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":158,\"User\":\"kevout\"}"}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Did you find a solution to this? I have having the same issue and cannot seem to find anything on how to fix it. Mine just started last night.

Thanks.

jsast21

Hi,

I did not find any solution.

Meanwhile, a few days later, it's working again, but with the notification error. I have 2 clients and the first one (where I noticed this issue) still telling that the connection can't be established while the files are actually synchronized. I don't understand I didn't modified a thing.

Thanks very much for replying. I also did not find a solution - but my work-around was this: I was getting the error in an audio file with the cloud path of: /audio//song{3..7} for example. So I went in and just deleted from the cloud the /audio//*. On my laptop I resync'd that directory and it came back fine. It must have been something with the upload being corrupt or something like that. Thanks very much for your help.

Hi,
I had the same problem just now and my solution was to move the file in another directory and then move it back in the previous directory. It seems that the upload couldn't recover so it had to be started fresh. This might be something noteworthy for the developers.

Could you provide the desktop client version? It might be because you're using an old desktop client or there might be a bug in the client.
@alfageme

Hi,

Using 2.3.2 on MacOS.

Thanks

Indeed, there was an issue on client versions prior to 2.3.3 that use the old chunking algorithm in the new webDAV endpoint that could be behind this:

@jsast21 @jansch are you also using older (<2.3.3) versions of the client?

@Boo could you try to update to 2.3.4 to see if that solves your issue? Thanks a bunch!

No problem. I'm updating right now. Be back in a couple days if this resolved the issue.

Hi guys,

Indeed, new client version completly solve this issue.

Thanks guys !