Closed tomfun closed 4 years ago
I really checked and changed server configuration. My problem solved. But still, android client must show friendly errors, it costed me hours :(
If my server is not giving a token or any other problem at least show error and do not get stuck. But still, android client must show friendly errors, it costed me hours :(
There are ongoing discussions between @tobiasKaminsky and @rullzer on how we can improve this. The login process with the token as mentioned by you is a web flow that is run through Android's webview and as a clietn we don't get any information at the moment. So right now we can't provide any meaningful error message not even talking about an error message that points to the real issue at hand...
What was the change, @tomfun? So we can try to reproduce and give a better error message.
# nginx.conf
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) {
#...
fastcgi_param HTTPS on;
#...
}
As I remember
@nextcloud/server-triage can we somehow check this in our server / admin config checks?
@nextcloud/server-triage can we somehow check this in our server / admin config checks?
We can't check the config, but only the outcome. What specifically went wrong? Do we have an example request that has an before and after behavior? That could be checked under some circumstances
Hi guys. I've just tested and it's definitely the part of the config @tomfun mentioned.
My current config is Nextcloud with Nginx backend (which serves Nextcloud through HTTP only) and Nginx as Reverse proxy (serves everything through HTTPS) in Docker. I want to keep HTTP for my local network and HTTPS only for external one so I couldn't just set fastcgi_param HTTPS on;
The fix with such config would be like that:
proxy_set_header X-Forwarded-Proto $scheme;
in the Nginx Reverse Proxy confighttp {
//...
map $http_x_forwarded_proto $fastcgi_param_https_variable {
default '';
https 'on';
}
//...
Hope it would help someone else.
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
Seems to be fixed.
Steps to reproduce
Also tried to get access token from web and it leads me to the same result.
Expected behaviour
It must login and show the files. If my server is not giving a token or any other problem at least show error and do not get stuck.
Actual behaviour
It gets stuck
Can you reproduce this problem on https://try.nextcloud.com?
Environment data
Android version: 10
Device model: Samsung Galaxy S10e
Stock or customized system:
Nextcloud app version: 3.12.1
Nextcloud server version: 19.0.1
Reverse proxy: nginx
Logs
Web server error log