-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 1024000 got 552960 #1450
Comments
@enoch85 are you uploading files from external storage (sd card) or internal? |
Also, are the files ok after being uploaded? |
@mario The files are automatically uploaded from the Camera Roll with AutoUpload from the internal storage. And yes, the files are OK after upload. EDIT: No more .thumbnail for example. |
Just tested dev 20170818 and it doesn't happen on my Nexus 5. Seems to be the P10 only. |
postponing to post-2.0.0 then :) |
Or it got fixed with soon-to-be-released RC6. We'll never know xD |
Yeah, probably... @enoch85 would you mind providing an update to this issue for RC6 whenever it will be released? :) |
Seems like the error is gone in RC6, need to confirm a few more days before I can say certain. But initial tests didn't produce this error. |
Awesome, feel free to close the issue once ready ;)
…On Mon, Sep 11, 2017 at 10:15 PM, Daniel Hansson ***@***.***> wrote:
Seems like the error is gone in RC6, need to confirm a few more days
before I can say certain. But initial tests didn't produce this error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1450 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAWsm6ycNiCqVPBQYIGYmsLVXQT1Unuks5shZT_gaJpZM4PD7Gy>
.
|
@enoch85 still ok? :) |
Forgot to put this on my todo-list and forgot about checking actually. Sorry. I checked now and I'm sad to say, it's still there.
Not as frequent as in the passed though. |
Did you check if upload gets stopped/paused during the upload? Because this would imply that not all data got uploaded which is strange if the file works, like you mentioned? |
I can do some more tests tonight. I work like 12 hour days now, it's crazy. One full-time job plus Tech and Me and Nextcloud = no spare time plus no sleep. I'll do my best. :) |
@enoch85 that's awesome, I appreciate it very much! |
OK, tested to take like 5 pictures in a row on both 4G and WiFi, no errors on RC6. Let's close this one. BAM |
I think to experience the same issue with Auto uploads failing.
Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 765952
|
I am seeing this behaviour as well. Using the official and up-to-date nextcloud app from the F-Droid store, I cannot upload any files bigger than 1MB. Smaller files do not raise any issues and downloading works for files of any size (tested with 50kB-100MB). Sabre\DAV\Exception\BadRequest: expected filesize 1024000 got 466944
|
@nextcloud/server-triage does this mean that a wrong chunk was sent? Or that something during transmission broke? |
It means |
Can we figure out when and/or why this is happening? |
So, I found the reason for my issues although I don't understand the strange behaviour. I have NetGuard installed which creates a VPN and blocks undesired internet access by apps. What I did is to use a whitelist for apps (which obviously included the nextcloud app) and I did not see any issues that I would have thought of to be firewall related. But: When I disable NetGuard, the upload from the nextcloud app works fine for images >1MB. I did not test bigger files but I expect the issue to be resolved for me - more or less. What I don't understand is, why the upload is working for smaller files with the enabled firewall while it fails for bigger files and where the downloads don't seem to care about the enabled firewall for any filesize... Also, I would guess that there is some kind of data transmission (so not all data is being blocked) as the logs state "expected x byte/got y byte", where x>y>0. Calendar/Contact Sync via DavDroid have been working with the enabled firewall as well... So, I dont know what makes the difference between chunked and non-chunked file uploads from the perspective of a firewall. So, my next question is: Does anybody have a clue what I need to whitelist in my firewall in order to have a proper functioning of the nextcloud app with an enabled firewall on my mobile? |
@Thorbinjho I've encountered the same problem, and in circumstances similar to yours: I have an OpenVPN tunnel from my home router to the private network where my Nextcloud server lives. Now, I can also connect to this VPN via the OpenVPN for Android app. What's interesting is, I only encounter the "expected x got y" error under two conditions: It's weird, because if I'm on my home network, but use the OpenVPN for Android app instead of routing through an OpenVPN server then everything works as expected. I'm at a loss, unless there's something wrong with my OpenVPN configuration. But the web UI works fine in all situations... |
Steps to reproduce
Expected behavior
No error
Actual behavior
Since I upgraded to 2.0.0RC4 I see this behavior. I can't say exactly which version that triggered it, but it happens like every time (not investigated further) I take a photo that gets AutoUploaded.
Using Android 7.1.2 on a Nexus 5x + Huawei P10 (don't know Android version but I think it's 7.0)
See log for more info.
General server configuration
Operating system: Linux techandme.se 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64
Web server: Apache/2.4.18 (Ubuntu) (apache2handler)
Database: pgsql PostgreSQL 9.6.4 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609, 64-bit
PHP version: 7.0.22-0ubuntu0.16.04.1
PHP-modules loaded
Nextcloud configuration
Nextcloud version: 12.0.2 - 12.0.2.0
Updated from an older Nextcloud/ownCloud or fresh install: Updated since back in the ownCloud days (5.0 I think it was hehe)
Where did you install Nextcloud from: Nextcloud VM
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: NO
(LDAP/ActiveDirectory/Webdav/...)
Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configuration
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/60.0.3112.78 Chrome/60.0.3112.78 Safari/537.36
Operating system: Ubuntu 17.10 (Budgie)
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: