UBsync cannot add NextCloud account
-
OTA-15 on OPO
I have my own NextCloud server running on a raspberry pi 3. I used mkcert to generate my own rootCA and SSL certs for the NextCloudPi server. I have installed the root certificate on my Linux-Mint laptop and on the Ubuntu Touch OPO. I can connect to and log into the NextCloud by simply going to https://<MyNextCloudIP> in a browser on my laptop and OPO with no security warnings. But, when I try to set up a NextCloud connection in Calendar on OPO or try to set up a NextCloud account in UBsync using https://<MyNextCloudIP> and my NextCloud credentials I get "Invalid Host URL".
Anyone have any ideas I can try?
-
You want it to be only available in the local network?
Normally I would configure it as a regular web-server and then configure the router to do NAT reflection so that it can be equally accessed from inside the same network.
I have no idea what might be going wrong with your rather uncommon setup though.
-
@dremelts No idea either, but same here with a local Nextcloud snap installation with (snap-managed) self-signed certificate. Invalid host URL no matter what URL is given. Calendar synchronization works fine with other, non-UT clients.
-
@povoq yes, it's only available locally for now. I just wanted to do some testing with UT to see if I can de-Google my life. I don't even have a SIM card in the phone right now so everything is just via wifi. The thing is: the browser on the phone can access the NextCloud server just fine without any security complaints so I think my SSL certs are all in order.
Could it be a DNS thing? Does the Calendar and UBsync check for a valid DNS entry on an external site?
-
@dremelts If it is local only, why bother with certs at all? Certs without real DNS are always a bit hackish IMHO.
-
@povoq Right. I set it up initially without certs and just ignored the security warnings. But then, when I tried to set up an internet calendar in Calendar and it came back with "Invalid Host URL" I thought it might be because the server was not trusted so that's why I went to the trouble of adding the SSL cert on the server and making my own rootCA. But, that did not resolve the issue so I'm back to square one.
-
In the Calendar app I tapped on Add online Calendar and, instead of selecting NextCloud, I selected Generic CalDAV, entered the IP of my local NextCloudPi server and user credentials and it's working now.