-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Android clients fail to upload to server over WiFi, but works over 4g? (Server issue) #17226
Comments
Is "ducky.rocks" your nextcloud instance? If so your configuration is invalid. Add the cloudflare reverse proxies (https://www.cloudflare.com/ips/) to the There are some (older) reports that cloudflare is not working (at least the js optimization): #4840 #10557 Would you mind to check your nextcloud instance without cloudflare? |
Thanks @kesselb Wifi uploads now work. Could it be dns related? Regarding the report.. And when it comes to the failed logins, I repeatedly see that ip 127.0.0.1 fails login, almost like the http header doesn't work.. I'll give it a try to add the IPs and see if it helps. |
I suspect that if you switch from wifi to 4g another cloudflare node is used (they have many) which is not blocked by bruteforce. Check https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-CloudFlare-handle-HTTP-Request-headers- for more details. Do we agree that this is a configuration issue and close it? |
Thank you for the information and help. Just to clarify, is cloudflare preventing PUT commands to my server or so? Dont understand what's really happening, could it be the headers getting modified? |
I don't think so. I assume that your client is blocked by the bruteforce protection. Check the image from cloudflare. You don't need mod_cloudflare or mod_remoteip. Just tell nextcloud where to find the real ip of the client. Please use https://help.nextcloud.com for configuration support. |
name: Android app fails upload (upload only) on WiFi connection
about: https://help.nextcloud.com/t/android-client-unable-to-upload-with-wifi-but-4g-works/60204
labels: bug
Steps to reproduce
Expected behaviour
I expect that WiFi uploads should work to my server
Actual behaviour
WiFi works shortly after adding the account. After some time passes, it fails to perform PUT requests to my server. Nextcloud Android app complains that "connection error". When you switch to 4G, the uploading works immediately with no problem. Switching back to WiFi, the upload stops and it fails again. Re-adding the account lets the wifi work for a few moments (didn't catch for how long, but for an hour or so), until it stops working again.
I can create new folders, browse the server directories, download files. Only thing not working is uploading new content.
Server configuration
Note: I do have HSTS enabled, but with a short TTL. Currently in a testing phase to see if it works, before I go ahead and enforce/register it. Not sure if this plays any role in this.
Operating system: Linux 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019 x86_64
Web server: Apache/2.4.41 (Ubuntu) (apache2handler)
Database: mysql 5.7.27
PHP version: 7.2.19-0ubuntu0.18.04.2
Nextcloud version: 16.0.4 - 16.0.4.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 15, I think - some time back now.
Where did you install Nextcloud from: https://nextcloud.com/install/#instructions-server (Official webpage)
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: Multiple, FTP, SFT and Local. Not applicable for this report though.
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Android Client
Operating system: Android 9, Android 7
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
android
Android log
https://gist.github.com/simeneriks1/c4714c96dd3bdf28cf0f30d03fa2237d
The text was updated successfully, but these errors were encountered: