-
Notifications
You must be signed in to change notification settings - Fork 3.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
File uploads larger than 1MB fail #402
Comments
Ok, I didn't see this before. Thanks for open it. Let's see when we can deal with it, |
@davivel any update on this issue? |
No, sorry. Looking for a time box. |
I'm getting this same exact issue with the chunking of uploads receiving a 404 on the first file. 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 !!! |
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? |
@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. |
Are you still woking with the same owncloud server version? Did you upgrade, but is it sill failing? |
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. |
Android Version: 4.4.2 Below are the two logs from the As soon as I connect my phone to a WiFi connection if uploads successful 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" 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"} |
Android Version: 4.4.2 Here are the log files from turning on my WiFi and letting the Android 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" 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"} |
@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? |
@davivel , I have looked over that thread and nothing sticks out as being the issue with my setup. |
Do you mean mobile network provider, or hosting provider? |
Yes mobile network provider. This is only happening on my cell phone. |
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. |
This is only outside of my house. I don't ever upload from my home's WiFi. |
I have the same issue on Wifi (everywhere home, work…) Server: 6.0.4 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" |
@koug44 , could you try with a file that is bigger than 1MB, but not an image? Thanks. |
@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) |
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. |
Update to the issue I was having: |
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. |
@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" |
@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. |
@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? |
@davivel Server already there (7.0.3 to be precise). No improvement seen dam@ks3290887:~$ tail -f /var/log/apache2/ssl_access.log |
@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. |
@davivel Encryption is disabled on my server Here's my list of apps
|
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 2014/11/06 22:32:20 2014/11/06 22:32:21 2014/11/06 22:32:21 2014/11/06 22:32:21 2014/11/06 22:32:22 2014/11/06 22:32:22 2014/11/06 22:32:22 2014/11/06 22:32:23 2014/11/06 22:32:23 And Apache shows: This is on OwnCloud 7.0.2 stable |
I'm having the issue with a vanilla version of 7.0.4 uploads > 1MB are failing. |
Got news (almost good one). Still with the same server OC (now on 8.0.4) 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. |
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:
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 ;/ |
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 |
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, |
@ALL, please, could you confirm if this is a problem for you with OC 1.9.1 for Android? Thanks in advance. |
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. |
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): Clients: I was able to reproduce from my desktop by simulating the latency, packet loss, and reordering of a non-ideal GSM network with the
I used a test file created by
The exception logged on the server always follows the format:
This appears to be the related request logged by Apache:
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. |
The Owncloud Antivirus app causes these problems: If I disable it, upload works fine again. |
Most likely fixed with owncloud/core#24653 in all the upcoming server maintenance releases. |
@MorrisJobke , that would be really awesome. Thanks a lot. |
@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! |
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... |
Thank you so much for your answer, @childnode :) Will wait a bit more for answers of @sprin and @e-alfred before closing. |
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 |
@typorian , could you open a new issue and give us some more details about your environment? Take a look to the issue template. Thanks! |
It works well now with Owncloud 9.1.0, Android client 2.1.1 and Antivirus app 0.9.0.0. |
@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. |
It still happens with the antivirus app activated. After disabling it, the uploads work well on 9.1.1. |
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.
The text was updated successfully, but these errors were encountered: