Skip to content

Bad Request AFTER any file finished uploading #11778

Closed

Description

@refsoon

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

i'm using https://myserver.com/cloud/remote.php/webdav to list the files properly, however the uploads work through the browser only

The only modification that I can make are in the php.ini, the htaccess and of course the files from the owncloud directory

Any ideas, what I can do?

thanks

Activity

  1. DeepDiver1975 commented on Oct 27, 2014

    @DeepDiver1975
    Contributor

    @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!

  2. refsoon commented on Oct 27, 2014

    @refsoon
    Author

    @RealRancor
    Hi, I did look trough all your links, however I could not figure out a resolution

  3. refsoon commented on Oct 27, 2014

    @refsoon
    Author

    @DeepDiver1975
    below are the details that you asked. thank you

    Steps to reproduce

    1. Upload a non zero bytes file to the owncloud server, using either windows (7) or linux (xubuntu 14.04) clients.
    2. 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) 
    

    Web server error log

    75.156.142.76 - - [27/Oct/2014:00:00:03 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:00:07 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:00:33 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:00:38 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:01:03 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:01:09 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:01:33 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:01:41 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:02:03 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:02:12 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:02:33 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:02:43 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:03:03 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:03:15 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:03:39 -0400] "PROPFIND /cloud/remote.php/webdav HTTP/1.1" 207 1136 "-" "Mozilla/5.0 (Linux) csyncoC/0.91.5 neon/0.30.0"
    75.156.142.76 - - [27/Oct/2014:00:03:47 -0400] "PROPFIND /cloud/remote.php/webdav/ HTTP/1.1" 207 640 "-" "Mozilla/5.0 (Linux) mirall/1.6.4"
    75.156.142.76 - - [27/Oct/2014:00:04:04 -0400] "POST /cloud/index.php/heartbeat HTTP/1.1" 200 - "https://refsoon.com/cloud/index.php/apps/files/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0"
    

    ownCloud log (data/owncloud.log)

    {"reqId":"544e36d8c2a31","app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 11 got 0","level":4,"time":"2014-10-27T12:13:12+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/Hello.txt"}
    {"reqId":"544e36da2629a","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files' !!! \ncache: Array\n(\n    [fileid] => 2\n    [storage] => home::costel\n    [path] => files\n    [parent] => 1\n    [name] => files\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 161518536\n    [mtime] => 1414411991\n    [storage_mtime] => 1414411991\n    [encrypted] => \n    [unencrypted_size] => 120716491\n    [etag] => 544e36d805221\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1414411992\n    [size] => -1\n    [etag] => 544e36da23d70\n    [storage_mtime] => 1414411992\n    [permissions] => 31\n)\n","level":0,"time":"2014-10-27T12:13:14+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/zero.txt"}
    {"reqId":"544e36da2629a","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files\/zero.txt' !!! \ncache: Array\n(\n    [fileid] => 89\n    [storage] => home::costel\n    [path] => files\/zero.txt\n    [parent] => 2\n    [name] => zero.txt\n    [mimetype] => text\/plain\n    [mimepart] => text\n    [size] => 0\n    [mtime] => 1414411994\n    [storage_mtime] => 1414411994\n    [encrypted] => \n    [unencrypted_size] => 0\n    [etag] => 544e36dab28ab\n    [permissions] => 27\n)\n \ndata: Array\n(\n    [mimetype] => text\/plain\n    [mtime] => 1414411881\n    [size] => 0\n    [etag] => 544e36dab360f\n    [storage_mtime] => 1414411881\n    [permissions] => 27\n    [parent] => 2\n)\n","level":0,"time":"2014-10-27T12:13:14+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/zero.txt"}
    {"reqId":"544e3700527dc","app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 11 got 0","level":4,"time":"2014-10-27T12:13:52+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/Hello.txt"}
    {"reqId":"544e370ac20fc","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files' !!! \ncache: Array\n(\n    [fileid] => 2\n    [storage] => home::costel\n    [path] => files\n    [parent] => 1\n    [name] => files\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 161518536\n    [mtime] => 1414411994\n    [storage_mtime] => 1414411994\n    [encrypted] => \n    [unencrypted_size] => 120716491\n    [etag] => 544e36dab8ee1\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1414412032\n    [size] => -1\n    [etag] => 544e370ac0617\n    [storage_mtime] => 1414412032\n    [permissions] => 31\n)\n","level":0,"time":"2014-10-27T12:14:02+00:00","method":"PROPFIND","url":"\/cloud\/remote.php\/webdav\/"}
    {"reqId":"544e372455a15","app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 11 got 0","level":4,"time":"2014-10-27T12:14:28+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/Hello.txt"}
    {"reqId":"544e372a35404","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files' !!! \ncache: Array\n(\n    [fileid] => 2\n    [storage] => home::costel\n    [path] => files\n    [parent] => 1\n    [name] => files\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 161518536\n    [mtime] => 1414412032\n    [storage_mtime] => 1414412032\n    [encrypted] => \n    [unencrypted_size] => 120716491\n    [etag] => 544e370ac0617\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1414412068\n    [size] => -1\n    [etag] => 544e372a3166b\n    [storage_mtime] => 1414412068\n    [permissions] => 31\n)\n","level":0,"time":"2014-10-27T12:14:34+00:00","method":"PROPFIND","url":"\/cloud\/remote.php\/webdav\/"}
    {"reqId":"544e375186ebd","app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 11 got 0","level":4,"time":"2014-10-27T12:15:13+00:00","method":"PUT","url":"\/cloud\/remote.php\/webdav\/Hello.txt"}
    {"reqId":"544e376a669f3","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files' !!! \ncache: Array\n(\n    [fileid] => 2\n    [storage] => home::costel\n    [path] => files\n    [parent] => 1\n    [name] => files\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 161518536\n    [mtime] => 1414412068\n    [storage_mtime] => 1414412068\n    [encrypted] => \n    [unencrypted_size] => 120716491\n    [etag] => 544e372a3166b\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1414412113\n    [size] => -1\n    [etag] => 544e376a65939\n    [storage_mtime] => 1414412113\n    [permissions] => 31\n)\n","level":0,"time":"2014-10-27T12:15:38+00:00","method":"PROPFIND","url":"\/cloud\/remote.php\/webdav\/"}
    {"reqId":"544e3776c2232","app":"OC\\Files\\Cache\\Scanner","message":"!!! Path 'thumbnails\/89' is not readable !!!","level":0,"time":"2014-10-27T12:15:50+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2F%2Fzero.txt&c=544e36dab360f&x=36&y=36&forceIcon=0"}
    {"reqId":"544e3776c2232","app":"core","message":"Generating preview for \"\/\/zero.txt\" with \"OC\\Preview\\TXT\"","level":0,"time":"2014-10-27T12:15:50+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2F%2Fzero.txt&c=544e36dab360f&x=36&y=36&forceIcon=0"}
    {"reqId":"544e3776c2232","app":"core","message":"Generating preview for \"\/\/zero.txt\" with \"OC\\Preview\\Unknown\"","level":0,"time":"2014-10-27T12:15:51+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2F%2Fzero.txt&c=544e36dab360f&x=36&y=36&forceIcon=0"}
    {"reqId":"544e3776c2232","app":"core","message":"OC_Image->loadFromBase64, couldn't load","level":0,"time":"2014-10-27T12:15:51+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2F%2Fzero.txt&c=544e36dab360f&x=36&y=36&forceIcon=0"}
    {"reqId":"544e3776c2232","app":"core","message":"OC_Image->fixOrientation() Orientation: -1","level":0,"time":"2014-10-27T12:15:51+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2F%2Fzero.txt&c=544e36dab360f&x=36&y=36&forceIcon=0"}
    {"reqId":"544e3dfe863fb","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-27T12:43:42+00:00","method":"PROPFIND","url":"\/cloud\/remote.php\/webdav\/"}
    {"reqId":"544e3e069ccf3","app":"search_lucene","message":"searching hits for pk:d42a92686d1de401f0532bcee9f9ac37","level":0,"time":"2014-10-27T12:43:50+00:00","method":"GET","url":"\/cloud\/cron.php"}
    {"reqId":"544e3e069ccf3","app":"search_lucene","message":"found 0 hits ","level":0,"time":"2014-10-27T12:43:50+00:00","method":"GET","url":"\/cloud\/cron.php"}
    {"reqId":"544e3e069ccf3","app":"search_lucene","message":"adding \/zero","level":0,"time":"2014-10-27T12:43:50+00:00","method":"GET","url":"\/cloud\/cron.php"}
    

    /made it more readable.
    @enoch85

  4. refsoon commented on Oct 29, 2014

    @refsoon
    Author

    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:

    @refsoon https://github.com/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!

    —
    Reply to this email directly or view it on GitHub
    #11778 (comment).

  5. KimSRT commented on Oct 30, 2014

    @KimSRT

    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!

  6. refsoon commented on Nov 2, 2014

    @refsoon
    Author

    It looks like we are stuck, since there are no ideas how to upload a non-zero file to my server

  7. chakkerz commented on Nov 12, 2014

    @chakkerz

    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

    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"}
  8. enoch85 commented on Dec 5, 2014

    @enoch85

    @DeepDiver1975 Any update on this?

  9. awnz commented on Dec 8, 2014

    @awnz

    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.

  10. maces commented on Dec 10, 2014

    @maces

    not working for all files here, mainly ones over 1MB
    But PHP is set to allow way more than that.

    Steps to reproduce

    1. Create a File on your device
    2. Wait for Sync via owncloud client

    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:

    <?php
    $CONFIG = array (
      'instanceid' => '...',
      'passwordsalt' => '...',
      'trusted_domains' => 
      array (
        0 => 'domain.tld',
        1 => 'domain.tld:443',
      ),
      'datadirectory' => '/path/to/data/',
      'dbtype' => 'pgsql',
      'version' => '7.0.3.4',
      'dbname' => 'owncloud',
      'dbhost' => '...',
      'dbtableprefix' => '...',
      'dbuser' => '...',
      'dbpassword' => '...',
      'installed' => true,
      'forcessl' => true,
      'theme' => '',
      'maintenance' => false,
      'overwritewebroot' => '/myowncloud'
    );
    

    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

    <no errors>
    

    ownCloud log (data/owncloud.log)

    {"app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 10485760 got 122880","level":4,"time":"2014-11-08T12:14:50+00:00"}
    {"app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 10485760 got 122880","level":4,"time":"2014-11-08T12:16:32+00:00"}
    {"app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 10485760 got 122880","level":4,"time":"2014-11-08T12:18:38+00:00"}
    {"app":"webdav","message":"Sabre\\DAV\\Exception\\BadRequest: expected filesize 10485760 got 122880","level":4,"time":"2014-11-08T12:20:40+00:00"}
    
  11. maces commented on Apr 19, 2015

    @maces

    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):

            <Directory /path/to/owncloud/>
                    ...
                    LimitRequestBody 2147483647
                    SSLRenegBufferSize 131072
            </Directory>
    

    But this did not change anything.

  12. PVince81 commented on Oct 8, 2015

    @PVince81
    Contributor

    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.

  13. PVince81 commented on Oct 8, 2015

    @PVince81
    Contributor

    Duplicate of #9832 (comment)

  14. maces commented on Oct 10, 2015

    @maces

    I have tried the configuration with 8.1.3 already and again today, but still no success.

  15. lock commented on Aug 2, 2019

    @lock

    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.

  16. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions