You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad Request AFTER any file finished uploading #11778
Regardless what windows client (owncloud windows, cyberduck, webdrive, carotdav) i use any file uploads almost completely to my owncloud server then near the 100% upload mark, the the server does something and the transfer ends with a "Bad Request" error. Also a message that the expected file size was xxx bytes but the actual size is 0
Webdrive has a nice log, and I can see that the file was uploaded to the last byte, but somehow the file attributes do not get passed properly to the server
i can upload files through the browser interface, but none of the clients manage to communicate to the end with the server. It happens for both HTTP and HTTPS
@DeepDiver1975
below are the details that you asked. thank you
Steps to reproduce
Upload a non zero bytes file to the owncloud server, using either windows (7) or linux (xubuntu 14.04) clients.
Tried to sync three items (copied and pasted in the owncloud local folder); an empty folder (zero), and empty file (zero.txt) and a NON empty file Hello.txt
Expected behaviour
All three items should have been replicated on the owncloud server
Actual behaviour
Only the zero bytes items, the empty folder and the empty file moved/sync to the server.
For the NON empty file Hello.txt (11 bytes), server replied: Bad Request (expected filesize 11 got 0)
Initially, i believed that it is a client issue, so I tried various clients, three owncloud.org clients for windows, one for linux, and three other DAV clients, Cyberduck-4.5.2, webdrive64_12_01_4071_en, and CarotDAV1.10.9. Same error regardless what client I use or what OS
Server configuration
Operating system: Debian
Web server: Apache
Database: MySQL 5.5.32
PHP version: 5.3.13
ownCloud version: ownCloud 7.0.2 (stable)
Updated from an older ownCloud or fresh install:
fresh install List of activated apps:
Encryption, Dependencies status (same error with both deactivated). Dependencies status shows everything OK (green) The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => 'oce71ea35817',
'passwordsalt' => 'xxx',
'trusted_domains' =>
array (
0 => 'refsoon.com',
),
'datadirectory' => '/home/users/web/b1299/nf.refsooncom/public_html/cloud/data',
'dbtype' => 'mysql',
'version' => '7.0.2.1',
'dbname' => 'red',
'dbhost' => 'refsooncom.netfirmsmysql.com',
'dbtableprefix' => 'oc_',
'dbuser' => 'costel',
'dbpassword' => 'xxx',
'installed' => true,
'loglevel' => '0',
'forcessl' => true,
);
**Are you using external storage, if yes which one:** local/smb/sftp/...
No
**Are you using encryption:** yes/no
Yes
Client configuration
Browser:
firefox 33.0; Upload through web browser WORKS
ownCloud-1.6.4.4041, ownCloud-1.6.3.3721, ownCloud-1.7.0.4082rc1
Cyberduck-4.5.2, webdrive64_12_01_4071_en, and CarotDAV1.10.9
ownCloud for xUbuntu 14.04 Operating system:
Windows 7 and xUbuntu 14.04
Logs
6:21 AM Hello.txt ownCloud The item is not synced because of previous errors: Error downloading https://refsoon.com/cloud/remote.php/webdav/Hello.txt - server replied: Bad Request (expected filesize 11 got 0)
6:15 AM Hello.txt ownCloud Error downloading https://refsoon.com/cloud/remote.php/webdav/Hello.txt - server replied: Bad Request (expected filesize 11 got 0)
6:14 AM Hello.txt ownCloud Error downloading https://refsoon.com/cloud/remote.php/webdav/Hello.txt - server replied: Bad Request (expected filesize 11 got 0)
6:13 AM Hello.txt ownCloud Error downloading https://refsoon.com/cloud/remote.php/webdav/Hello.txt - server replied: Bad Request (expected filesize 11 got 0)
6:13 AM zero.txt ownCloud Uploaded 0 B
6:13 AM Hello.txt ownCloud Error downloading https://refsoon.com/cloud/remote.php/webdav/Hello.txt - server replied: Bad Request (expected filesize 11 got 0)
We get many requests for WebDrive compatibility with OwnCloud (full disclosure: I work for the developer of WebDrive). We would love to get our developers together with yours to ensure that WebDrive is fully compatible.
I appear to be having the same issue. with all versions of ownCloud 7.0 - 7.0.3-11.1 (on CentOS 6.current).
My client is running on OS X (Yosemite), was having the issue on Mavericks as well (and windows 7 in a VM).
Uploads via the browser work (syncing down via agent also works thereafter).
Steps to reproduce
drop files and folders into the folder that should be sync'ed
irrespective of whether the client is running, paused or shutdown. As soon as the sync starts, it fails.
Expected behaviour
files and folders should sync to server
Actual behaviour
folders sync, files fail
Server configuration
Operating system: CentOS 6.6 (current)
Web server: httpd-2.2.15-39.el6.centos.x86_64
Database: Maria DB 5.5.40
MariaDB-compat-5.5.40-1.el6.x86_64
MariaDB-client-5.5.40-1.el6.x86_64
MariaDB-common-5.5.40-1.el6.x86_64
MariaDB-server-5.5.40-1.el6.x86_64
Updated from an older ownCloud or fresh install:
fresh install to 7.0.2, update to 7.0.3
List of activated apps:
Activity,
Deleted Files,
Documents.
Encryption,
First Run Wizard
LDAP user and group backend
Shared Files
Updated
Version
ownCloud dependencies info Dependencies status shows everything OK (green)
Until fixed, does the "upload limit" workaround still work for you guys?
Settings -> Network -> Upload Bandwidth set to "Limit Automatically" (or in owncloud.cfg, [BWLimit] section, useUploadLimit=-1) - uses older upload code that still works for me at least.
Activity
DeepDiver1975 commentedon Oct 27, 2014
@refsoon Thanks a lot for reporting issues back to us!
We need some more information to properly support you with your issue!
Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md
Thanks a lot!
refsoon commentedon Oct 27, 2014
@RealRancor
Hi, I did look trough all your links, however I could not figure out a resolution
refsoon commentedon Oct 27, 2014
@DeepDiver1975
below are the details that you asked. thank you
Steps to reproduce
Expected behaviour
All three items should have been replicated on the owncloud server
Actual behaviour
Only the zero bytes items, the empty folder and the empty file moved/sync to the server.
For the NON empty file Hello.txt (11 bytes), server replied: Bad Request (expected filesize 11 got 0)
Initially, i believed that it is a client issue, so I tried various clients, three owncloud.org clients for windows, one for linux, and three other DAV clients, Cyberduck-4.5.2, webdrive64_12_01_4071_en, and CarotDAV1.10.9. Same error regardless what client I use or what OS
Server configuration
Operating system: Debian
Web server: Apache
Database: MySQL 5.5.32
PHP version: 5.3.13
ownCloud version: ownCloud 7.0.2 (stable)
Updated from an older ownCloud or fresh install:
fresh install
List of activated apps:
Encryption, Dependencies status (same error with both deactivated). Dependencies status shows everything OK (green)
The content of config/config.php:
Client configuration
Browser:
firefox 33.0; Upload through web browser WORKS
ownCloud-1.6.4.4041, ownCloud-1.6.3.3721, ownCloud-1.7.0.4082rc1
Cyberduck-4.5.2, webdrive64_12_01_4071_en, and CarotDAV1.10.9
ownCloud for xUbuntu 14.04
Operating system:
Windows 7 and xUbuntu 14.04
Logs
Web server error log
ownCloud log (data/owncloud.log)
/made it more readable.
@enoch85
refsoon commentedon Oct 29, 2014
Hi Thomas,
I posted the info you asked for.
Any idea how to solve the issue?
On 10/27/2014 2:53 AM, Thomas Müller wrote:
KimSRT commentedon Oct 30, 2014
We get many requests for WebDrive compatibility with OwnCloud (full disclosure: I work for the developer of WebDrive). We would love to get our developers together with yours to ensure that WebDrive is fully compatible.
If interested, you can visit http://www.webdrive.com/product-support/webdrive and click on the Help Desk link. Then choose "Submit a Ticket" and state that it is a developer request and the devs can work together.
Thanks!
refsoon commentedon Nov 2, 2014
It looks like we are stuck, since there are no ideas how to upload a non-zero file to my server
chakkerz commentedon Nov 12, 2014
I appear to be having the same issue. with all versions of ownCloud 7.0 - 7.0.3-11.1 (on CentOS 6.current).
My client is running on OS X (Yosemite), was having the issue on Mavericks as well (and windows 7 in a VM).
Uploads via the browser work (syncing down via agent also works thereafter).
Steps to reproduce
Expected behaviour
Actual behaviour
Server configuration
Operating system: CentOS 6.6 (current)
Web server: httpd-2.2.15-39.el6.centos.x86_64
Database: Maria DB 5.5.40
MariaDB-compat-5.5.40-1.el6.x86_64
MariaDB-client-5.5.40-1.el6.x86_64
MariaDB-common-5.5.40-1.el6.x86_64
MariaDB-server-5.5.40-1.el6.x86_64
PHP version: 5.5.18
php55u-bcmath-5.5.18-1.ius.centos6.x86_64
php55u-intl-5.5.18-1.ius.centos6.x86_64
php-pear-MDB2-2.5.0-0.9.b5.el6.noarch
php55u-common-5.5.18-1.ius.centos6.x86_64
php55u-pdo-5.5.18-1.ius.centos6.x86_64
php55u-gd-5.5.18-1.ius.centos6.x86_64
php55u-mysqlnd-5.5.18-1.ius.centos6.x86_64
php55u-pecl-apcu-4.0.7-2.ius.centos6.x86_64
php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el6.noarch
php55u-process-5.5.18-1.ius.centos6.x86_64
php55u-pear-1.9.5-2.ius.centos6.noarch
php55u-mbstring-5.5.18-1.ius.centos6.x86_64
php55u-mcrypt-5.5.18-1.ius.centos6.x86_64
php-pear-Net-Curl-1.2.5-4.el6.noarch
php55u-xml-5.5.18-1.ius.centos6.x86_64
php55u-pecl-jsonc-1.3.6-3.ius.centos6.x86_64
php55u-ldap-5.5.18-1.ius.centos6.x86_64
php55u-cli-5.5.18-1.ius.centos6.x86_64
php55u-5.5.18-1.ius.centos6.x86_64
php.d overrides (confirmed present):
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 8192M
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 512
memory_limit = 512M
ownCloud version: ownCloud 7.0.2 (stable), 7.0.3
Updated from an older ownCloud or fresh install:
fresh install to 7.0.2, update to 7.0.3
List of activated apps:
Activity,
Deleted Files,
Documents.
Encryption,
First Run Wizard
LDAP user and group backend
Shared Files
Updated
Version
ownCloud dependencies info Dependencies status shows everything OK (green)
The content of config/config.php:
'oc6aadc5a3f1', 'passwordsalt' => '*** Removed for security reasons', 'trusted_domains' => array ( 0 => 'rosita.int.tri.edu.au', ), 'datadirectory' => '/var/www/html/owncloud/data', 'dbtype' => 'mysql', 'dbname' => 'owncloud', 'dbuser' => 'owncloud', 'dbpassword' => '*** Removed for security reasons', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'installed' => true, 'ldapIgnoreNamingRules' => false, 'forcessl' => true, 'version' => '7.0.3.4', 'theme' => '', 'maintenance' => false, ); Webserver logs: {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 320522 got 324678","level":4,"time":"2014-11-12T02:36:27+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 7598557 got 7602366","level":4,"time":"2014-11-12T02:36:27+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 2486595 got 2487156","level":4,"time":"2014-11-12T02:36:29+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 9987334 got 9991506","level":4,"time":"2014-11-12T02:36:30+00:00"} {"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 11113031 got 11118690","level":4,"time":"2014-11-12T02:36:30+00:00"}enoch85 commentedon Dec 5, 2014
@DeepDiver1975 Any update on this?
awnz commentedon Dec 8, 2014
Until fixed, does the "upload limit" workaround still work for you guys?
Settings -> Network -> Upload Bandwidth set to "Limit Automatically" (or in owncloud.cfg, [BWLimit] section, useUploadLimit=-1) - uses older upload code that still works for me at least.
maces commentedon Dec 10, 2014
not working for all files here, mainly ones over 1MB
But PHP is set to allow way more than that.
Steps to reproduce
Expected behaviour
File should be uploaded by the client automatically
Actual behaviour
File is not fully uploaded, because of a bad request. Folders are uploaded.
Server configuration
Operating system: Debian
Web server: Apache
using self signed certificate
PHP version: 5.4
ownCloud version: 7.0.3
Updated from an older ownCloud or fresh install: updated
List of activated apps: bundled + Tasks
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: no
Client configuration
Owncloud Client Version: 1.7.0
Operating system: Linux
Logs
Web server error log
ownCloud log (data/owncloud.log)
maces commentedon Apr 19, 2015
any update on this?
I have tried setting the following from #9832 (also see https://doc.owncloud.org/server/8.0/admin_manual/configuration_files/big_file_upload_configuration.html#apache):
But this did not change anything.
PVince81 commentedon Oct 8, 2015
Can you try again with 8.1.3 ? I believe that some issues regarding headers have been fixed, which might affect the errors you are seeing.
PVince81 commentedon Oct 8, 2015
Duplicate of #9832 (comment)
maces commentedon Oct 10, 2015
I have tried the configuration with 8.1.3 already and again today, but still no success.
lock commentedon Aug 2, 2019
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.