Skip to content
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

File uploads larger than 1MB fail #402

Closed
sonic331va opened this issue Feb 16, 2014 · 50 comments
Closed

File uploads larger than 1MB fail #402

sonic331va opened this issue Feb 16, 2014 · 50 comments

Comments

@sonic331va
Copy link

Android Version: 4.4
App Version: 1.5.3
Server Version: 6.0.1 (stable)

All files larger than 1MB fail to upload. Files smaller than 1MB upload successfully.

Apache log - server is returning "400 Bad Request":
"HEAD /remote.php/webdav/Test/ HTTP/1.1" 200 300 "-" "Android-ownCloud"
"HEAD /remote.php/webdav/Test/File1.docx HTTP/1.1" 404 313 "-" "Android-ownCloud"
"PUT /remote.php/webdav/Test/File1.docx-chunking-9385-4-0 HTTP/1.1" 400 629 "-" "Android-ownCloud"

Packet information:
HTTP/1.1 400 Bad request

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre_DAV_Exception_BadRequest/s:exception
<s:message>expected filesize 1024000 got 0/s:message
<s:sabredav-version>1.7.6/s:sabredav-version
/d:error

Chunked file handling is included on the server in filesplugin.php.

I'm breaking this out of the comments of #306 since my issue appears to be different.

@davivel
Copy link
Contributor

davivel commented Feb 18, 2014

Ok, I didn't see this before. Thanks for open it. Let's see when we can deal with it,

@ajincitti
Copy link

@davivel any update on this issue?

@davivel
Copy link
Contributor

davivel commented Mar 14, 2014

No, sorry. Looking for a time box.

@mtschaef
Copy link

I'm getting this same exact issue with the chunking of uploads receiving a 404 on the first file.
I have full control of my own personal server.
Server running the latest 6.0.3.
Android client the latest 1.5.5.

From the owncloud Admin page error logs:

Fatal webdav Sabre_DAV_Exception_NotFound: File with name InstantUpload/IMG_20140510_181857.jpg could not be located

Debug OC\Files\Cache\Scanner !!! Path 'files/InstantUpload/IMG_20140510_181857.jpg' is not readable !!!

@davivel
Copy link
Contributor

davivel commented May 22, 2014

Hi, @mtschaef . We would really appreciate some logs here from the web server to compare them with those of @sonic331va .

@sonic331va , is it possible you have some kind of size limit for uploads in your Apache server?

@sonic331va
Copy link
Author

@davivel I specifically went through my webserver to disable upload limits, memory limits, etc. because we do upload large files often. Large file uploading works fine from the web. It's just the file chunking that is failing.

@davivel
Copy link
Contributor

davivel commented May 22, 2014

Are you still woking with the same owncloud server version? Did you upgrade, but is it sill failing?

@sonic331va
Copy link
Author

Unfortunately, I have not had time to spend on the server in the past couple of months. The uploading issue sort of put a pause on using owncloud. I will try with the latest updates when I can and let you know the outcome ASAP.

@mtschaef
Copy link

Android Version: 4.4.2
App Version: 1.5.5
Server Version: 6.0.3 (stable)

Below are the two logs from the
server. The first is the Apache access log file and the lower one is from
the Owncloud.log file.

As soon as I connect my phone to a WiFi connection if uploads successful
with no problems. (I can send those logs as well.)

Apache -access.log

6.8.12.179 - username [28/May/2014:12:04:36 -0600] "HEAD /owncloud/remote.php/webdav/InstantUpload/ HTTP/1.1" 200 809 "-" "Android-ownCloud"
6.8.12.179 - username [28/May/2014:12:04:38 -0600] "HEAD /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg HTTP/1.1" 404 661 "-" "Android-ownCloud"
6.8.12.179 - username [28/May/2014:12:04:39 -0600] "PUT /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg-chunking-7029-2-0 HTTP/1.1" 400 922 "-" "Android-ownCloud"

Owncloud.log:

{"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/InstantUpload/IMG_20140528_120433.jpg' is not readable !!!","level":0,"time":"2014-05-28T18:04:38+00:00"}
{"app":"webdav","message":"Sabre_DAV_Exception_NotFound: File with name InstantUpload/IMG_20140528_120433.jpg could not be located","level":4,"time":"2014-05-28T18:04:38+00:00"}
{"app":"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 1024000 got 0","level":4,"time":"2014-05-28T18:04:49+00:00"}

@mtschaef
Copy link

Android Version: 4.4.2
App Version: 1.5.5
Server Version: 6.0.3 (stable)

Here are the log files from turning on my WiFi and letting the Android
client upload successfully.

Apache access.log file:

2.4.18.254 - username [28/May/2014:14:45:18 -0600] "HEAD /owncloud/remote.php/webdav/InstantUpload/ HTTP/1.1" 200 753 "-" "Android-ownCloud"
2.4.18.254 - username [28/May/2014:14:45:19 -0600] "HEAD /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg HTTP/1.1" 404 606 "-" "Android-ownCloud"
2.4.18.254 - username [28/May/2014:14:45:19 -0600] "PUT /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg-chunking-7632-2-0 HTTP/1.1" 201 617 "-" "Android-ownCloud"
2.4.18.254 - username [28/May/2014:14:45:20 -0600] "PUT /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg-chunking-7632-2-1 HTTP/1.1" 201 674 "-" "Android-ownCloud"
2.4.18.254 - username [28/May/2014:14:45:21 -0600] "PROPFIND /owncloud/remote.php/webdav/InstantUpload/IMG_20140528_120433.jpg HTTP/1.1" 207 1265 "-" "Android-ownCloud"

Owncloud.log file:

{"app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/InstantUpload/IMG_20140528_120433.jpg' is not readable !!!","level":0,"time":"2014-05-28T20:45:19+00:00"}
{"app":"webdav","message":"Sabre_DAV_Exception_NotFound: File with name InstantUpload/IMG_20140528_120433.jpg could not be located","level":4,"time":"2014-05-28T20:45:19+00:00"}
{"app":"core","message":"OC_Image::loadFromFileHandle(): Trying","level":0,"time":"2014-05-28T20:45:21+00:00"}
{"app":"core","message":"OC_Image->fixOrientation() No readable file path set.","level":0,"time":"2014-05-28T20:45:21+00:00"}
{"app":"core","message":"OC_Image->fixOrientation() Orientation: -1","level":0,"time":"2014-05-28T20:45:21+00:00"}

@davivel
Copy link
Contributor

davivel commented Jun 3, 2014

@mstchaet , so it only fails for you when you try to upload from the Internet, but it works when you do it from the WiFi LAN?

The problem is not the 404 response in the HEAD method - that's expected. The problem is the 400 response por the PUT method later.

Please, could you follow the instructions in the next thread and see if something of that helps?

https://forum.owncloud.org/viewtopic.php?f=17&t=7536

@mtschaef
Copy link

mtschaef commented Jun 3, 2014

@davivel , I have looked over that thread and nothing sticks out as being the issue with my setup.
The problem that I'm seeing is that it only happens when I'm on my cellular network.
I'm starting to think that this might be something with my provider. I don't know how I go about proving it to them or getting them to make a change if needed.

@davivel
Copy link
Contributor

davivel commented Jun 4, 2014

Do you mean mobile network provider, or hosting provider?

@mtschaef
Copy link

mtschaef commented Jun 4, 2014

Yes mobile network provider. This is only happening on my cell phone.
I host my own server at my house.

@davivel
Copy link
Contributor

davivel commented Jun 5, 2014

Did you try to upload something through a Wi-Fi that is not in your home? I would discard problems about routing, proxies or firewalls before thinking in contrains by the cell phone provider.

@mtschaef
Copy link

mtschaef commented Jun 5, 2014

This is only outside of my house. I don't ever upload from my home's WiFi.

@koug44
Copy link

koug44 commented Jul 2, 2014

I have the same issue on Wifi (everywhere home, work…)
Upload fails for any file bigger than 1Mo

Server: 6.0.4
Client: 1.5.7
PHP: 5.4.4-14+deb7u11

First try with picture is failing, as second one with small text file is working

88.160.153.29 - dam [02/Jul/2014:11:06:05 +0200] "PUT /owncloud/remote.php/webdav/T%C3%A9l%C3%A9versementInstantan%C3%A9/20140628_200809.jpg-chunking-8162-3-0 HTTP/1.1" 400 1160 "-" "Android-ownCloud"
88.160.153.29 - dam [02/Jul/2014:12:24:41 +0200] "PUT /owncloud/remote.php/webdav/T%C3%A9l%C3%A9versementInstantan%C3%A9/dslv_state.txt HTTP/1.1" 201 910 "-" "Android-ownCloud"

@davivel
Copy link
Contributor

davivel commented Jul 10, 2014

@koug44 , could you try with a file that is bigger than 1MB, but not an image?

Thanks.

@koug44
Copy link

koug44 commented Jul 11, 2014

@davivel , tried with an MP3 file over WiFi. Still failing

74.59.149.207 - dam [11/Jul/2014:21:25:42 +0200] "PUT /owncloud/remote.php/webdav/Temp/01%20-%20Archive%20-%20Distorted%20Angels.mp3-chunking-3958-9-0 HTTP/1.1" 400 1160 "-" "Android-ownCloud"

It may be related to chunked transfert encoding (which small transfer doesn't use)

@koug44
Copy link

koug44 commented Jul 11, 2014

I tried once more with an apk file

74.59.149.207 - dam [11/Jul/2014:21:36:42 +0200] "PUT /owncloud/remote.php/webdav/Vid%C3%A9o/BagIt_android_1397605188.apk-chunking-6815-22-0 HTTP/1.1" 400 1160 "-" "Android-ownCloud"

It always fail at exactly at 1160 bytes, whatever the filesize is.

@mtschaef
Copy link

Update to the issue I was having:
It appears that this was my ISP/Modem/Router. The Modem/Router failed at our house to which I had to replace. After replacing it with the new one everything started working again. My files now upload 100% of the time no mater the size or the clients connection source (LTE or WiFi).
This is very perplexing to me other than maybe my router wasn't communicating the traffic correctly on the status updates when the file doesn't exist.
Thanks for all of your help and I hope that this helps somebody else in the future.

@davivel
Copy link
Contributor

davivel commented Aug 28, 2014

Thanks, @mtschaef, for the update.

@koug44 , sorry for coming back so late. Is this still failing for you? Did you try to upgrade to OC7 and Android app 1.5.8?

Another thing I am noticing... all the logs you showed involved folders with © or à characters in their name; that could be a factor. Could you try to upload some files of different sizes to the root folder of the account, or to some folder with only alphanumeric characters without ticks on?

Thanks in advance.

@koug44
Copy link

koug44 commented Aug 28, 2014

@davivel OC7 with App 1.5.8

I tried twice over wifi (work) with and without spaces in filename

173.246.67.2 - dam [28/Aug/2014:21:13:18 +0200] "PUT /owncloud/remote.php/webdav/Temp/Missisquoi%20VRT%20FINAL.pdf-chunking-6817-5-0 HTTP/1.1" 400 1181 "-" "Android-ownCloud"
173.246.67.2 - dam [28/Aug/2014:21:15:42 +0200] "PUT /owncloud/remote.php/webdav/VRT.pdf-chunking-6739-5-0 HTTP/1.1" 400 1181 "-" "Android-ownCloud"

@sonic331va
Copy link
Author

@davivel I was finally able to get back to this project of mine. I installed the latest server and it looks as though server 7.0.2 and the latest owncloud app from the play store are working for me. Files larger than 1mb are uploading as expected.

Thank you very much for your continued hard work on this project.

@davivel
Copy link
Contributor

davivel commented Sep 11, 2014

@sonic331va , great news!!!. You're very welcome, but I do not deserve compliments, there are many people here not writing so often but working a lot.

@koug44 , is an upgrade to OC 7.0.2 possible for you, or is your server already there?

@koug44
Copy link

koug44 commented Sep 19, 2014

@davivel Server already there (7.0.3 to be precise). No improvement seen

dam@ks3290887:~$ tail -f /var/log/apache2/ssl_access.log
173.246.67.2 - dam [19/Sep/2014:16:43:45 +0200] "HEAD /owncloud/remote.php/webdav/Temp/20140906_010228.mp4 HTTP/1.1" 404 839 "-" "Android-ownCloud"
173.246.67.2 - dam [19/Sep/2014:16:43:55 +0200] "PUT /owncloud/remote.php/webdav/Temp/20140906_010228.mp4-chunking-8971-75-0 HTTP/1.1" 400 1314 "-" "Android-ownCloud"

@davivel
Copy link
Contributor

davivel commented Sep 23, 2014

@koug44 , what app do you have in your OC server?

Is encryption enabled? If it is, try to disable it temporary and upload something from the app.

@koug44
Copy link

koug44 commented Sep 24, 2014

@davivel Encryption is disabled on my server

Here's my list of apps
root@ks3290887:/var/www/owncloud# ./occ app:list
Enabled:

  • admin_dependencies_chk
  • appframework
  • bookmarks
  • calendar
  • contacts
  • documents
  • files
  • files_mv
  • files_pdfviewer
  • files_sharing
  • files_texteditor
  • files_trashbin
  • files_versions
  • firstrunwizard
  • gallery
  • news
  • notes
  • roundcube
  • user_external
  • videos

@markcs
Copy link

markcs commented Nov 6, 2014

I see a similar issue, but with a 500 server error. I see the following in the logs:

This is from the Android app:
2014/11/06 22:32:19
OwnCloudClient #4 : REQUEST HEAD /owncloud/remote.php/webdav/1390094193695.jpg

2014/11/06 22:32:19
ExistenceCheckRemoteOperation : Existence check for https://myserver/owncloud/remote.php/webdav/1390094193695.jpg targeting for existence finished with HTTP status 404(FAIL)

2014/11/06 22:32:20
OwnCloudClient #4 : REQUEST PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-0

2014/11/06 22:32:21
ChunkedUploadRemoteFileOperation : Upload of /storage/emulated/0/owncloud/tmp/mark@myserver/1390094193695.jpg to /1390094193695.jpg, chunk index 0, count 4, HTTP result status 201

2014/11/06 22:32:21
OwnCloudClient #4 : REQUEST PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-1

2014/11/06 22:32:21
ChunkedUploadRemoteFileOperation : Upload of /storage/emulated/0/owncloud/tmp/mark@myserver/1390094193695.jpg to /1390094193695.jpg, chunk index 1, count 4, HTTP result status 201

2014/11/06 22:32:22
OwnCloudClient #4 : REQUEST PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-2

2014/11/06 22:32:22
ChunkedUploadRemoteFileOperation : Upload of /storage/emulated/0/owncloud/tmp/mark@myserver/1390094193695.jpg to /1390094193695.jpg, chunk index 2, count 4, HTTP result status 201

2014/11/06 22:32:22
OwnCloudClient #4 : REQUEST PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-3

2014/11/06 22:32:23
ChunkedUploadRemoteFileOperation : Upload of /storage/emulated/0/owncloud/tmp/mark@myserver/1390094193695.jpg to /1390094193695.jpg, chunk index 3, count 4, HTTP result status 500

2014/11/06 22:32:23
UploadFileOperation : Upload of /storage/emulated/0/DCIM/Camera/1390094193695.jpg to /1390094193695.jpg: The ownCloud server is not configured!

And Apache shows:
120.148.219.9 - mark [06/Nov/2014:22:32:21 +1100] "PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-0 HTTP/1.1" 201 842 "-" "Android-ownCloud" "myserver" "1024000" "image/jpeg"
120.148.219.9 - mark [06/Nov/2014:22:32:23 +1100] "PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-1 HTTP/1.1" 201 842 "-" "Android-ownCloud" "myserver" "1024000" "image/jpeg"
120.148.219.9 - mark [06/Nov/2014:22:32:24 +1100] "PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-2 HTTP/1.1" 201 842 "-" "Android-ownCloud" "myserver" "1024000" "image/jpeg"
120.148.219.9 - mark [06/Nov/2014:22:32:24 +1100] "PUT /owncloud/remote.php/webdav/1390094193695.jpg-chunking-5441-4-3 HTTP/1.1" 500 875 "-" "Android-ownCloud" "myserver" "549407" "image/jpeg"

This is on OwnCloud 7.0.2 stable

@bislewl
Copy link

bislewl commented Feb 10, 2015

I'm having the issue with a vanilla version of 7.0.4 uploads > 1MB are failing.

@davivel
Copy link
Contributor

davivel commented Feb 11, 2015

@markcs , sorry for coming back so late. Could you reproduce it again and copy also the logs in the server side? Specially owncloud.log, in your case. There is an internal error in the last chunk upload.

@bislewl , could you upload some logs from your server too?

Thanks.

@koug44
Copy link

koug44 commented Jun 12, 2015

Got news (almost good one). Still with the same server OC (now on 8.0.4)
Both official clients are failing to upload files (desktop and android)
Upload via web interface is still ok (using Firefox)

But now, I can also upload my pictures from my Android phone using QuickPic app and Owncloud integration. It's working fine for the same files than official client can't upload.
Could it be useful ? I'm guessing they are not using the same HTTP method or syntax

@childnode
Copy link

can reproduce this on my owncloud 8.1.0-2 and 8.1.0-3 from debian 7.0 repo installation with xmarks bookmark sync using webdav. Since I exceeded the 1MiB limit, the error occurs:

==> /var/log/apache2/cloud.log <==
77.1.3.223 -> owncloud.childno.de:443(cloud.childno.de) - marcel [18/Jul/2015:16:24:44 +0200] "PUT /remote.php/webdav/xmarks/bookmarks.txt HTTP/1.1" 400 225 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0 Xmarks-Fx/4.3.7.1-signed"

==> /srv/owncloud/data/owncloud.log <==
{"reqId":"UgNIjJEd9ga\/S9xmr2uF","remoteAddr":"77.1.3.223","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 400 expected filesize 1086517 got 0\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/connector\\\/sabre\\\/directory.php(113): OC\\\\Connector\\\\Sabre\\\\File->put(Resource id #259)\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1053): OC\\\\Connector\\\\Sabre\\\\Directory->createFile('bookmarks.txt', Resource id #259)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(513): Sabre\\\\DAV\\\\Server->createFile('xmarks\\\/bookmark...', Resource id #259, NULL)\\n#3 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(469): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#6 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/appinfo\\\/remote.php(83): Sabre\\\\DAV\\\\Server->exec()\\n#8 \\\/var\\\/www\\\/owncloud\\\/remote.php(132): require_once('\\\/var\\\/www\\\/ownclo...')\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/connector\\\/sabre\\\/file.php\",\"Line\":144}","level":4,"time":"2015-07-18T14:24:55+00:00"}

deleting bookmarks will make sync work ;/

Running apache2.2.22 with 5.4.41 at debian 7 (wheezy)

at owncloud/core#9832 respectively https://doc.owncloud.org/server/8.0/admin_manual/configuration_files/big_file_upload_configuration.html#apache pointed out some hints that helped for some, but not for me ;/

@koug44
Copy link

koug44 commented Sep 1, 2015

The bug is fixed for me, both with Android and new 2.0 client.

I've fixed the PHP cache a few days ago. It may be related

@childnode
Copy link

unfortunatly it isn't for me, not even on android, other related issues: owncloud/core#17712 so it not just seems to be an android / client bug hence it worked fine prior OC 8. as it is pointed out there: it is caused by buggy PHP 5.4, you need to upgrade

update: yay back ... OC 8.2.2, php 5.6.17 and .18 with any webDav client ;( that's sooo frustrating,
owncloud/core#9832 > owncloud/core#22426

@davivel
Copy link
Contributor

davivel commented Feb 24, 2016

@ALL, please, could you confirm if this is a problem for you with OC 1.9.1 for Android?

Thanks in advance.

@childnode
Copy link

so, can confirm this doesn't work for me with 1.9.1 (upload a 2,5 MB PDF just got stuck at 0%) but I also can't check back for older version since I have removed it due to the annoying power sucking bug.

But I ran into 2 other bugs ;) and once again: I think it's more a core than an android bug.

@sprin
Copy link

sprin commented Mar 31, 2016

I encountered this problem when attempting to upload any file > 1 MB from my phone via GSM. It happens consistently on GSM, but not on a WiFi connection. I found a way to consistently replicate it regardless of network/hardware.

Server (created for replicating the bug, using a very simple recommended config):
CentOS Linux release 7.2.1511 (Core)
PHP 5.5.21-4.el7
Owncloud 9.0.0-3.1
MariaDB 1:5.5.44-2.el7.centos
Apache 2.4.6-40.el7.centos

Clients:
App Version 1.9.1
Phone: Android 5.0.2
Desktop Android Runtime: ARChon 1.2

I was able to reproduce from my desktop by simulating the latency, packet loss, and reordering of a non-ideal GSM network with the netem kernel module:

sudo tc qdisc add dev wlp2s0b1 root netem delay 3000ms loss 25% reorder 50% 50%

I used a test file created by dd:

dd if=/dev/zero of=testfile bs=1100k count=1

The exception logged on the server always follows the format:

{"reqId":"","remoteAddr":"","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 400 expected filesize 1024000 got 0\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\BadRequest\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/file.php(103): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->createFileChunked(Resource id #313)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/directory.php(134): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #313)\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1036): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('testfile-chunki...', Resource id #313)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('testfile-chunki...', Resource id #313, NULL)\\n#4 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/remote.php(138): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/file.php\",\"Line\":404,\"User\":\"admin\"}","level":4,"time":"2016-03-31T16:25:41+00:00"}

This appears to be the related request logged by Apache:

31/Mar/2016:16:25:06 +0000] "PUT /remote.php/webdav/testfile-chunking-4629-2-0 HTTP/1.1" 400 225 "-" "Mozilla/5.0 (Android) ownCloud-android/1.9.1"

Additional notes: I have not seen this problem with either the web client or the Linux desktop sync client under the same network conditions. I have only seen the problem under non-ideal network conditions with the Android app. The client reports an error immediately after reaching 1MB while uploading.

@e-alfred
Copy link

e-alfred commented Apr 25, 2016

The Owncloud Antivirus app causes these problems:

owncloud/files_antivirus#110

If I disable it, upload works fine again.

@MorrisJobke
Copy link

Most likely fixed with owncloud/core#24653 in all the upcoming server maintenance releases.

@davivel
Copy link
Contributor

davivel commented May 30, 2016

@MorrisJobke , that would be really awesome. Thanks a lot.

@davivel
Copy link
Contributor

davivel commented Aug 3, 2016

@childnode, @sprin, @e-alfred : is this still a problem for you? Did you upgrade your servers to one of the latest maintenance versions (9.1.0, 9.0.4, 8.2.7, 8.1.9 or 8.0.14) ?

Thanks!

@childnode
Copy link

hi @davivel , yes, I updated to 9.1 in the meantime but was anyway not able to reproduce this in any release since #402 (comment) nor with owncloud client 2.0 ...anyway. I switched to nextCloud and I can confirm nextCloud client 1.2.0 (no idea which owncloud client it is forked of) works in my setup. ... if there is any problem: I can't reproduce it anymore nor can I help to track down which versions / combinations of app and server won't work and which will...

@davivel
Copy link
Contributor

davivel commented Aug 4, 2016

Thank you so much for your answer, @childnode :)

Will wait a bit more for answers of @sprin and @e-alfred before closing.

@davivel
Copy link
Contributor

davivel commented Aug 12, 2016

@Sprint, @e-alfred. I'll assume this is not a problem for you anymore.

Add a comment if I'm wrong.

Thanks!

@davivel davivel closed this as completed Aug 12, 2016
@typorian
Copy link

typorian commented Aug 31, 2016

I'm on the second latest stable version of OwnCloud (Serverside) and I'm using the client from F-Droid on Android, and the problem still occurs for me. It was gone with 9.0.2 but it returned with 9.0.4.

edit: I do not have the AntiVirus app installed

@davivel
Copy link
Contributor

davivel commented Aug 31, 2016

@typorian , could you open a new issue and give us some more details about your environment? Take a look to the issue template.

Thanks!

@e-alfred
Copy link

e-alfred commented Sep 2, 2016

It works well now with Owncloud 9.1.0, Android client 2.1.1 and Antivirus app 0.9.0.0.

@typorian
Copy link

typorian commented Sep 2, 2016

@e-alfred I'll have my provider upgrade owncloud for me and hope that I get the new client version soon on F-Droid. If that makes it work again, I'd be happy.

@e-alfred
Copy link

It still happens with the antivirus app activated. After disabling it, the uploads work well on 9.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests