Nextcloud integration not working

I’m getting the following errors when trying to enable the nextcloud integration on my Home Assistant Yellow installation:

Logger: homeassistant.components.nextcloud
Source: components/nextcloud/init.py:102
Integration: nextcloud (documentation, issues)
First occurred: 1:35:10 PM (1 occurrences)
Last logged: 1:35:10 PM

Nextcloud setup failed - Check configuration

Logger: homeassistant.setup
Source: setup.py:279
First occurred: 1:35:10 PM (1 occurrences)
Last logged: 1:35:10 PM

Setup failed for nextcloud: Integration failed to initialize.

I have the Nextcloud instance running on a Raspberry Pi 4 and I can log in and have everything configured as required according to the integration setup page.

# nextcloud:
#   url: https://pihosted:4443
#   username: !secret nextcloud_user
#   password: !secret nextcloud_password

(Yes, I know it is commented out, but I’ve only done that to quiet the notifications until I figure out why it’s not working)

Can anyone suggest anything I should try?

Is your server here using a self-signed certificate? If so, this is a likely cause for the initial setup, simply because the integration does not trust the server, and as far as I can see there is currently no option to ignore this.

I am facing the same issue. Having a self-signed certificate (all in “intranet”), I cannot get to my nextlcoud instance. Any resolution in reach?

I would say that the best resolution here is to use a certificate signed by a public CA, for example Letsencrypt.

By default most Home Assistant integrations will do certificate verification, thus rejecting any non-publicly trusted certificate.

I, as with many others, have an ISP that does not allow the forwarding of port 80 (I’ve tried. I’ve also sat on the phone with “support” for ages and they basically said “figure out some other port that isn’t 80”). Besides switching ISPs, do you have any other suggestions on how to get publicly signed certificates into Nextcloud and other services?

You can use a DNS Challenge, if your domain registrar supports it. Most do.