Login stuck -- nextcloud app on iphone

Unable to login to nextcloud app on iphone.
Login is stuck.
But on same iphone I can use firefox and connect and login to https://subdomain.domain.com

(Also, to note: Login works on nextcloud app on samsung.)

Please help.

Please fill out the support template if you want assistance. I’m afraid your post will be ignored otherwise.

To start, share the output of occ config:list system and describe the basics of your deployment/environment.

C:\Users\XXX\Documents\Docker\NextCloud>docker exec -ti --user www-data nextcloud-app-1 /var/www/html/occ config:list system
{
“system”: {
“htaccess.RewriteBase”: “/”,
“memcache.local”: “\OC\Memcache\APCu”,
“apps_paths”: [
{
“path”: “/var/www/html/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/html/custom_apps”,
“url”: “/custom_apps”,
“writable”: true
}
],
“upgrade.disable-web”: true,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
subdomain.mydomain.com
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “sqlite3”,
“version”: “29.0.1.1”,
“overwrite.cli.url”: “http://localhost:8088”,
“installed”: true
}
}

What’s next?
Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug nextcloud-app-1
Learn more at docker debug | Docker Docs

I have caddy as reverse proxy with following in caddy file
subdomain.mydomain.com {
reverse_proxy http://localhost:8088
}

And in cloudflare I have set subdomain.mydomain.com to tunnel to http://localhost:8088

Also done the settings in cloudflare to always use https.

I have caddy as reverse proxy with following in caddy file
And in cloudflare I have set subdomain.mydomain.com to tunnel to http://localhost:8088

So… you’re connecting CF → RP → App? What happens if (to isolate where the problem is) you:

  • attempt to go from your client → App (bypasssing Caddy and CF)?
  • “overwrite.cli.url”: “http://localhost:8088”,

Set appropriate overwrite* values.
See the Admin Manual - https://docs.nextcloud.com - here and here.

Also, check Administration settings->Overview. Do you have any errors or warnings there currently?

The value was already present. There was no need to update and values

\Documents\Docker\NextCloud>docker exec -ti --user www-data nextcloud-app-1 /var/www/html/occ config:system:get overwrite.cli.url
http://localhost:8088

Admin > Settings


There are some errors regarding your setup.

* Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead. Without it some important web functionality like "copy to clipboard" or "service workers" will not work! For more details see the [documentation ↗](https://docs.nextcloud.com/server/29/go.php?to=admin-security).

* Your web server is not properly set up to resolve `.well-known` URLs, failed on: `/.well-known/caldav` For more details see the [documentation ↗](https://docs.nextcloud.com/server/29/go.php?to=admin-setup-well-known-URL).

I know it’s set. It’s incorrect (the one you provided says http and is your internal URL). You also may need the other overwrite* parameters in the linked docs.

Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead. Without it some important web functionality like "copy to clipboard" or "service workers" will not work! For more details see the [documentation ↗](https://docs.nextcloud.com/server/29/go.php?to=admin-security).

As I suspected. Check those overwrite values. You need to make sure you’re referencing your external host name in them and they’re all using https.

Regarding cloudflare, just as a side note what they are doing: Frontend error: Uncaught SyntaxError: identifier starts immediately after numeric literal · Issue #12430 · nextcloud/spreed · GitHub. Might be worth to check and disable that functionality or add a exception.

1 Like

The question is… Why does it work smoothly on samsung app, but not on iphone app?
(Also to note that it works on ff on both phones.)
Are we going wayward?

(Also to note that same thing (CF, Caddy, Localhost) is done for immich app (i know, its different app, but still… things work) and it works smoothly on both samsung n iphone.)