Expected filesize xxx got yyy/0


#1

Problem

I’m getting the following message in my data/owncloud.log:

"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 4734206 got 458752","level":4,"time":"2014-07-10T13:58:54+00:00"

or

"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 4734206 got 0","level":4,"time":"2014-07-10T13:58:54+00:00"}

Info

This can happen because of various reasons:

  1. A bug in Apache https://github.com/owncloud/core/issues/9832#issuecomment-148380791
  2. A too small “SSLRenegBufferSize” Apache setting https://github.com/owncloud/core/issues/9832#issuecomment-90508358
  3. A too small “LimitRequestBody” Apache setting https://github.com/owncloud/core/issues/9832#issuecomment-68443113
  4. Timeouts on server side https://github.com/owncloud/core/issues/9832#issuecomment-85709557
  5. Just a temporary network issue https://github.com/owncloud/core/issues/9832#issuecomment-86418646
  6. An issue within the temporary upload directory. You can try to set this to another location like described here: https://forum.owncloud.org/viewtopic.php?p=109928#p109928
  7. An wrong configured “output_buffering” setting. Try to set “output_buffering” to “Off” in your php.ini
  8. An issue with the “Upload limit” setting within the sync client: https://github.com/owncloud/core/issues/9832#issuecomment-112305152
  9. A possible bug in oC which gets fixed with 9.0.3/8.2.6/8.1.9/8.0.14 https://github.com/owncloud/core/issues/24653#issuecomment-220017778

There could be further, currently unknown environment settings and setups responsible for this issue.


Fatal webdav when uploading photos from smartphone client
Trouble Syncing Files
Upload problem for files >1MB via the web interface (expected file size ... got ...)
ownCloud Server 9.1.4 - You don't have permission to upload or create files here
OwnCloud 3 problems when installing on ipage server
Checksum does not match
TB's of .part files - MySQL server has gone away & Exception: HTTP\/1.1 400 expected filesize
#2