I went through the setup guide, during the first start it created a random Hostname, fine. I then went into configuration tab and set up a subdomain hostname and restarted. Only then did I think to look at the log. I copied and pasted the url in the log and authenticated with cloudflare. It proceeded to do this:
If you wish to copy your credentials to a server, they have been saved to:
/root/.cloudflared/cert.pem
[10:09:53] INFO: Authentication successfull, moving auth file to the '/data' folder
[10:09:53] INFO: Checking for existing certificate...
[10:09:53] INFO: Existing certificate found
[10:09:53] INFO: Checking for existing tunnel...
[10:09:53] NOTICE: No tunnel file found
[10:09:53] INFO: Creating new tunnel...
Tunnel credentials written to /data/tunnel.json. Keep this file secret. To revoke these credentials, delete the tunnel.
Created tunnel homeassistant with id [REDACTED]
[10:09:55] INFO: Checking for existing tunnel...
[10:09:55] INFO: Existing tunnel with ID [REDACTED] found
[10:09:55] INFO: Checking if existing tunnel matches name given in config
[10:09:56] INFO: Existing Cloudflare Tunnel name matches config, proceeding with existing tunnel file
[10:09:56] INFO: Creating config file...
I can see the new hostname in my dns records panel on Cloudflare, and in the Zero Trust I see Status: “INACTIVE”:
And the logs keep showing this:
2023-09-12T08:24:40Z ERR Failed to create new quic connection error=“failed to dial to edge with quic: timeout: no recent network activity” connIndex=0 event=0 ip=[REDACTED]
When I try to open the new sub-domain DNS record I get this:
Error 1033
Argo Tunnel error
What happened?
You’ve requested a page on a website (REDACTED) that is on the Cloudflare network. The host (REDACTED) is configured as an Argo Tunnel, and Cloudflare is currently unable to resolve it.
What can I do?
If you are a visitor of this website:
Please try again in a few minutes.
If you are the owner of this website:
Ensure that cloudflared is running and can reach the network. You may wish to enable load balancing for your tunnel.
What am I doing wrong? I using the standard Home Assistant install on a Raspberry Pi, and the “addon-cloudflared” from the brenner-tobias repo. On the Cloudflare Zero Trust, it says it’s “locally configured” and is asking if I want to migrate it:
EDIT (35 minutes later): I manually configured the tunnel and now I see a healthy status. When I visit the URL I get “400: Bad Request” anything else I have to do on the homeassisant (LAN) side?
EDIT (2 hours later): I finally got the tunnel to work. Changed some firewall settings and restarted home assistant seemed to fix that issue. Now I’m trying to setup “Smart Things” and it’s trying to use an incoming web hook but the url it trying to use is my internal IP address “192.168.100.2” instead of the external DNS tunnel hostname I’m using. Is there somewhere to configure this?
EDIT (2.5 hours later): Found a setting in Settings → System → Network to set an external hostname. That fixed the incoming web hooks issue. Still trying to work through the Samsung Smart Things API. But getting there. Leaving this here for anyone that might run into similar issues.