-
-
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
Nextcloud failing to setup: ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW
#14306
Comments
Thank you for report. It seems also that you typed "HTTPS", can you retry it with "https"? |
ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW
We can probably better handle a browser not being found by wrapping the android/app/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java Lines 482 to 486 in 57c02dc
https://developer.android.com/training/basics/intents/sending#no-app-available Given all the other spots where we call this intent also feels like we could have a nice helper function to take care of it all. Looks like we have an old-style one here (that we could maybe adapt but needs to be updated): android/app/src/main/java/com/owncloud/android/utils/DisplayUtils.java Lines 800 to 805 in 57c02dc
@JvdMaat Are you using Android Private spaces or additional profiles or anything like that? |
Nothing I'm aware of. Just using a single Chrome/Google profile. No KNOX, nothing else. (I can't find Private Space in my settings. Maybe Samsung blocks that in favor of KNOX?) I definitely have a default browser. Not sure why that part is failing. I also opened other apps and clicked on URLs within those apps, and they opened up the default browser no problem. |
Is this working with another Nextcloud server? |
demo1 works. So it's something in my docker instance.
(Which seems to work fine for accessing it from a webbrowser, as that has no issues. So something the phone app is doing specifically is not supported somehow.) Snippets from my config.php on the nextcloud side: (If there's anything else that's pertinent, let me know)
The 192.168.9.9 is the IP of my dockerhost. Swag runs in a container on that alongside nextcloud (and nextcloud-redis, the mariadb, etc). I do see that the Android app is connecting to my nextcloud instance. If I put in a hostname that's not running nextcloud, it gives me a malformed server configuration error.
And FWIW, here's what the nextcloud container has in the docker logs upon startup:
Are there any other logs on the nextcloud side I could look at? On an unrelated note, looking at the logs from the admin user (settings/admin/logging), it has this spamming over and over multiple times a minute:
(And the same for the Icon of notification) |
The So where is the The client gets it from the The protocol there is populated by this bit of code: Unless there are some overlooked Yes we can maybe make this more robust by making the protocol lowercase, but doesn't change the fact that somewhere this is happening in your infrastructure unexpectedly. |
Actually I partially take that back. Server already has a safeguard for inappropriate casing from the proxy. Looks like the only way this can get through is if Can you check the real config? Keep in mind that Compose variables and whatnot take priority over your main |
Bingo... And it came from my docker-compose. I do have an OVERWRITEPROTOCOL=HTTPS in there. (next to the other overwrites all in lowercase) When I get home tonight I'll check my browser history, as I likely copy/pasted that from somewhere, so there's a guide that has that in uppercase out there somewhere. (Or maybe I just entered that in all caps for some reason). But I just added those last week when I setup the SMTP settings as well. But phone app now connects without issue. |
Glad to hear that it is resolved. |
I'll try to make this type of configuration matter more apparent via nextcloud/server#50099. |
I noticed in the documentation that for the SMTP setup you can specify TLS or SSL, and the documentation for those also puts them in lowercase (ssl/tls) for in the docker compose environment variables. Whereas I put them in my docker compose as uppercase. |
Cause of error
App information
com.nextcloud.client
30300690
gplay
Device information
samsung
e3q
SM-S928U1
UP1A.231005.007
e3quew
Firmware
34
14
S928U1UES4AXKF
The text was updated successfully, but these errors were encountered: