Hello,
Like many people, when I try to connect to my Nextcloud server, the app return me “Unable to connect to the server”.
I can connect to my server from my PC without any problems. I have a domain and my server support TLS, signed by LetsEncrypt.
When I click to the icon “refresh”, here is I saw in the logs:
> site="cloud.mydomain.fr" server="cloud.mydomain.fr" dest_port="443" dest_ip="172.16.1.2" src="xx.xx.xx.xx" src_ip="172.17.1.2" user="-" time_local="22/May/2017:18:17:51 +0200" protocol="HTTP/1.1" status="200" bytes_out="158" bytes_in="163" http_referer="-" http_user_agent="Mozilla/5.0 (Android) ownCloud-android/1.4.2" nginx_version="xx" http_x_forwarded_for="xx.xx.xx.xx" http_x_header="-" uri_query="-" uri_path="/status.php" http_method="GET" response_time="0.168" cookie="-" request_time="0.168"
> site="cloud.mydomain.fr" server="cloud.mydomain.fr" dest_port="443" dest_ip="172.16.1.2" src="xx.xx.xx.xx" src_ip="172.17.1.2" user="-" time_local="22/May/2017:18:17:51 +0200" protocol="HTTP/1.1" status="401" bytes_out="0" bytes_in="0" http_referer="-" http_user_agent="Mozilla/5.0 (Android) ownCloud-android/1.4.2" nginx_version="xx" http_x_forwarded_for="xx.xx.xx.xx" http_x_header="-" uri_query="-" uri_path="/remote.php/webdav/" http_method="HEAD" response_time="0.267" cookie="-" request_time="0.267"
The second line is weird, the server return an error 401 and receive/send 0 byte.
I used the template configuration of nginx from the documentation (webroot) without major modifications.
My vhost listen on ipv4 only.
Note: I was on Owncloud before, I migrate to nextcloud 12 today with a new fresh install. I restored my data manually (simply copy/paste). I uninstalled Owncloud Apps and deleted the folder before install Nextcloud app.
Have you an idea? Thanks!