-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sabre_DAV_Exception_BadRequest: expected filesize mismatch #9832
Comments
"expected filesize 4734206 got 458752" basically is telling us that a file upload was terminated before all data got passed to the server. |
In addition 'Sabre_DAV_Exception_BadRequest' is used in OC6 - but no longer in OC7. |
@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. |
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:
Changing files and creating directories is working fine. Setup Server: Debian with owncloud 7.0.0 |
@bastla the connection did break apart due to whatever reason. Not much we can do |
@paulepanter case closed? |
@DeepDiver1975 Even tried it with a local mount. Still the same problem - connection doing great. :-S Do you have any idea? |
@DeepDiver1975 Tested it with nautilus and konqueror - worked fine. Problem must be with davfs2. Sry for noise. |
@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? |
Best would be to find correlated log entries in server and client log to see what's going on. |
This started for me after 6.x->7.0 upgrade |
Same issue here. OC 7.0.1 running on linux. many errors like that even syncing in local (same pc server/client) |
I have also that problem with OC 7.0.1 and client 1.6.2 {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 5095424","level":4,"time":"2014-08-27T14:21:33+00:00"} |
@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 |
@OliverKohlDSc |
@znoxx: hmmm .... |
@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. |
@OliverKohlDSc is that also apply if I upload via client? |
@Blisk: Yes it does. |
See owncloud/client#2116 (comment) |
Absolutely! Maybe you want to check your upload limit and proxy settings. |
Hi, I definitely think it's a mirall 1.6 issue. Today I switched back to mirall 1.5.4 and I was able to sync many files that were always throwing error. I will report this also in the issue @scolebrook referenced. |
Switching to upload limit automatically in the network tab uses the transfer code from 1.5.x from what I understand. This resolves the issue for my users. @loripino21 reports using 1.5.4 also works. If my understanding is correct, it's basically the same thing. So it would appear to be related to the new code in 1.6. |
I have changed in php.ini to upload file 4096MB but I still get the same error when uploading 3Gb file |
Same errors here. I have trouble to upload bigger files (>250 MB) and found this error in my log file: {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 5619712","level":4,"time":"2014-09-01T09:48:58+00:00"} But isn't it strange the all people report the same expected filesize on owncloud 7.0.x "10485760"? Maybe a wrong const? |
@TheRealDude2 The 10485760 is the default chunk size. So The server is expecting that size transfer for each piece of a file larger than 10MB. |
I have perhaps a similar error with ic 7.0.2 and client 1.6.2: Sabre\DAV\Exception\BadRequest: expected filesize 10485760 got 1048576 There is the 0 missing at the end... |
I'm experiencing the same issue with sync client 1.6.2 for both Windows and Mac. The "upload limit" workaround works for Windows, haven't tested Mac yet but expect it will, I will report back if it doesn't work. |
The problem looks to come from a LOCK request mistaken for a PUT request. For this request: LOCK /remote.php/webdav/TEST-Personnel/test_touch_davfs2 HTTP/1.1 Owncloud reply: HTTP/1.1 400 Bad request <?xml version="1.0" encoding="utf-8"?> This error was sent by this code in ./lib/private/connector/sabre/file.php class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\DAV\IFile { ... $expected = $_SERVER['CONTENT_LENGTH']; $actual = $this->fileView->filesize($partFilePath); if ($actual != $expected) { $this->fileView->unlink($partFilePath); throw new \Sabre\DAV\Exception\BadRequest('expected filesize ' . $expected . ' got ' . $actual); It compares the request's CONTENT_LENGTH header variable of the LOCK request to the content length of the file it is trying to get the lock and obviouly there don't match. |
Steps to reproduce
Expected behaviourThe file should be created in owncloud Actual behaviourAn error is return and no file is created. touch: setting times of 'my_file': No such file or directory Server configurationOperating system: Debian GNU/Linux 7 (wheezy) Web server: apache2 2.2.22-13+deb7u3 Database: mysql-server-5.5 5.5.38-0+wheezy1 PHP version: php5 5.4.4-14+deb7u14 ownCloud version: (see ownCloud admin page) ownCloud 7.0.2 (stable) Updated from an older ownCloud or fresh install: fresh install List of activated apps: The content of config/config.php: '/var/www/owncloud/data', 'dbtype' => 'mysql', 'version' => '7.0.2.1', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' => 'xxxx', 'installed' => true, 'instanceid' => 'ocxxxx', 'passwordsalt' => 'xxxx', 'trusted_domains' => array ( 0 => 'owncloud.example.org', ), 'maintenance' => false, 'user_webdavauth_url' => '', ); **Are you using external storage, if yes which one:** local/smb/sftp/... local **Are you using encryption:** yes/no no ### Client configuration **Operating system:** Ubuntu 14.04.1 LTS davfs2 1.4.7-3 ### Logs #### ownCloud log (data/owncloud.log) {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 177 got 0","level":4,"time":"2014-09-11T14:04:50+00:00"} |
Client: Version 2.1.1 (build 5837) sur machine Windows 10 Error message when the client sync:
Server logs:
I had to look this post: https://forum.owncloud.org/viewtopic.php?f=17&t=32517 I just read it in detail and tested the following changes (without success):
and:
Restarted server: apache2 restart systemctl /etc/apache2/conf-available/owncloud.conf:
/etc/apache2/sites-available/SERVEUR.conf:
/var/www/owncloud/config/config.php:
## impossible to synchronize new files. but if there are no new files, it works correctly ... |
Hello, I just made a change in php.ini:
and now I no longer have the problem. |
@awnz You should be able to start the client with |
Thanks @guruz, I've replied in (4334)[https://github.com/owncloud/client/issues/4334#issuecomment-214220805] |
Please try with this potential solution: #24653 (comment) |
We should close this as fixed within the scope of #24653 - if this still happens with all the next maintenance releases then we need to investigate further. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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
.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.
The text was updated successfully, but these errors were encountered: