core icon indicating copy to clipboard operation
core copied to clipboard

Sabre_DAV_Exception_BadRequest: expected filesize mismatch

Open paulepanter opened this issue 12 years ago • 164 comments

With ownCloud 7.0.0 (already present before in at least 6.0.4) I see a lot of Sabre_DEV_Exception_BadRequest errors in /var/www/owncloud/data/owncloud.log.

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

There is one user having problems synchronizing it’s files with the server. The user has the latest ownCloud client 1.6.1 installed and experiences the problems with the client on Microsoft Windows and Mac OS. Other users with Mac OS and the client do not experience any problems.

paulepanter avatar Jul 24 '14 09:07 paulepanter

~~Starting with OC7 we log every webdav exception in order to enable easier debugging in case of sync issues.~~ Not really relevant

"expected filesize 4734206 got 458752" basically is telling us that a file upload was terminated before all data got passed to the server.

DeepDiver1975 avatar Jul 24 '14 09:07 DeepDiver1975

In addition 'Sabre_DAV_Exception_BadRequest' is used in OC6 - but no longer in OC7. This error message is from OC6 times - log date confirms this (2014-07-10T13:58:54+00:00)

DeepDiver1975 avatar Jul 24 '14 09:07 DeepDiver1975

@DeepDiver1975, sorry for overlooking that information. For the said user, the ownCloud client currently shows that everything is synchronized and it shows 1.6 GB of data is stored on the server. But it should actually be over 20 GB.

paulepanter avatar Jul 24 '14 12:07 paulepanter

I'm encountering the same problems with the update to OC 7.0.0 last night. Using davfs to mount my OC WebDav i can't create new files:

{"app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 163 got 0","level":4,"time":"2014-07-24T11:16:19+00:00"}

Changing files and creating directories is working fine.

Setup Server: Debian with owncloud 7.0.0 Setup Client: Debian with davfs2 1.5.0-1

bastla avatar Jul 24 '14 12:07 bastla

@bastla the connection did break apart due to whatever reason. Not much we can do

DeepDiver1975 avatar Jul 24 '14 12:07 DeepDiver1975

@paulepanter case closed?

DeepDiver1975 avatar Jul 24 '14 12:07 DeepDiver1975

@DeepDiver1975 Even tried it with a local mount. Still the same problem - connection doing great. :-S Do you have any idea?

bastla avatar Jul 24 '14 13:07 bastla

@DeepDiver1975 Tested it with nautilus and konqueror - worked fine. Problem must be with davfs2. Sry for noise.

bastla avatar Jul 24 '14 13:07 bastla

@DeepDiver1975, the other systems are in the same network and no problems are experienced otherwise. I think the issue should be left open until this has been properly debugged.

Could it be that some time-outs are involved?

Broken connections should not be a problem with HTTP, shouldn’t they?

paulepanter avatar Jul 25 '14 07:07 paulepanter

Best would be to find correlated log entries in server and client log to see what's going on. But as long as the sync client is running and files are properly synced your systems should be fine

DeepDiver1975 avatar Jul 25 '14 07:07 DeepDiver1975

This started for me after 6.x->7.0 upgrade cadaver works fine, actually May be some config tweaks for davfs ?

znoxx avatar Aug 20 '14 13:08 znoxx

Same issue here. OC 7.0.1 running on linux. many errors like that even syncing in local (same pc server/client) Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 4931584 2014-08-27T22:36:06+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3956736 2014-08-27T22:33:56+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3883008 2014-08-27T22:23:28+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 5472256 2014-08-27T22:17:32+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3334144 2014-08-27T22:15:17+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 5496832 2014-08-27T22:09:21+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3809280 2014-08-27T22:07:11+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 6012928 2014-08-27T22:01:15+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3678208 2014-08-27T21:58:59+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3842048 2014-08-27T21:53:04+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 2460128 got 1507328 2014-08-27T21:53:04+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 4030464 2014-08-27T21:50:42+00:00 Fatal webdav Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 491520 2014-08-27T21:21:49+00:00

IngLP avatar Aug 27 '14 22:08 IngLP

I have also that problem with OC 7.0.1 and client 1.6.2 And no files are copied to server

{"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 5095424","level":4,"time":"2014-08-27T14:21:33+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 3448832","level":4,"time":"2014-08-27T14:39:41+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 7225344","level":4,"time":"2014-08-27T14:57:49+00:00"}

Blisk avatar Aug 28 '14 11:08 Blisk

@paulepanter, @bastla: Is it possible that you have something like a WebWasher or a firewall in between, that either scans your content, blocks certain parts of your upload or forces the upload to terminate after a certain amount of GB or time.

If not - is it possible that you have limited your upload size in PHP?

@Blisk: For you I think the latter one applies due to the fact that your file sizes are dividable by 1024 (10485760 / 1024 / 1024 or 5095424 / 1024 / 1024) without remainder.

If so please increase it.

Cheers

Oliver

OliverKohl avatar Aug 28 '14 11:08 OliverKohl

@OliverKohlDSc I use localhost mount, even without https and php.ini value is upload_max_filesize = 16G I don't think it makes sense for 32 bit system, but anyway It fails even on 100mb files. But, again, cadaver client works fine

znoxx avatar Aug 28 '14 11:08 znoxx

@znoxx: hmmm .... I'm afraid in this case it must be a bug. Do you have possibilities to debug the script invocation? e.g. with Eclipse/FirePhp/Xdebug ... (even the old fashioned var_dump is ok)

OliverKohl avatar Aug 28 '14 11:08 OliverKohl

@OliverKohlDSc, sorry, but I don't have such skill. My OC is running on headless Cubieboard2 server, and currently I'm accessing it only remotely. Any other volunteers ?

znoxx avatar Aug 28 '14 11:08 znoxx

@OliverKohlDSc is that also apply if I upload via client? Because I didn't upload ti by web browser but with client 1.6.2

Blisk avatar Aug 28 '14 12:08 Blisk

@Blisk: Yes it does.

OliverKohl avatar Aug 28 '14 12:08 OliverKohl

See https://github.com/owncloud/mirall/issues/2116#issuecomment-53643736 Can you try using the different network setting in the client and see if that works? It will help isolate the issue.

scolebrook avatar Aug 28 '14 12:08 scolebrook