-
Notifications
You must be signed in to change notification settings - Fork 47
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
Unable to connect to Home Assistant. Retrying in xx seconds.. #263
Comments
Can you connect to HA locally? If so, please have a look at the Cloudflare Add-On logs and post what you see there. |
I have the same problem. The plugin logs show that an attempt is made to add a DNS record. Manually deleting the record makes the add-on work until the next restart.
I think this Issue is correlated: #259 |
Ok, thanks for the clarification. My suggestion is to stop and uninstall the Add-On from HA. Then go to Cloudflare Dashboard into the DNS settings and delete all the DNS records related to the domain you want to use (or subdomain only). Go to your Cloudflare Zero Trust Dashboard as well and delete all tunnels (or at least the one you want to use). |
It works for me! Thank you very much. |
Sure, I am glad it worked. @nhotranqn please re-open if this did not work for you. |
I'm not sure if my issue is related, if it is not I can create a new topic either here or on github. I have Cloudflare set up and working perfectly. I can access my HA dashboard using the external subdomain.domain:8443 I have created. I can also access from my Laptop at the IP_address:8443 normally still. Unfortunately, something is broken in the HA Android app related to the local IP address. See below:
Any suggestions? |
@ADKMechETECH: I think it makes sense to create a new issue for this. As a fist guess, I think that you might have entered a wrong local IP in the App. (maybe "https://" insted of "http//" or a wrong port? |
Latest HA + Cloudflared installation. Still same behaviour as original poster. Tried deleting the tunnel/dns in CF as well as removing, rebooting, reinstalling, reconfiguring the add-on. And tried with different subdomain names. Behaviour on desktop/web browser:
Behaviour with iOS mobile app:
What can there be done to fix this/trouble-shoot original issue? Thank you so much, btw, @brenner-tobias. Mad props for this add-on. |
@jon91 can you login locally via the IP and have a look at the Cloudflare add-on logs after the unsuccessful logins and post them here? |
|
A few more lines since last comment
|
This all looks fine from a logging perspective (the occasional error is nothing to worry about), so I am not really sure where the problem ist. |
Me too I had the same problem today since about 15:00 I guess? When I tried to reconfigure the add-on I received the following error, after downloading the certificate from cloudflare. Please note that I never had a cloudflare team dashboard. So nothing is setup there. I then made an account to remove the application and tunnel in the zero trust dashboard.
EDIT: |
@jon91 is it working for you as well? |
Sorry for the absence, I was going to reconstruct the entire installation this weekend. I'll get home tonight and try that. Thanks for checking in, btw! |
Same behavior (without destroying/creating new HA env) and I've tried 3 times to clean/clear everything out. Will try that. Also - would CGNAT cause this? Seems like cloudflare tunnels work just fine, but don't know what the authentication either (1) hangs or (2) can't get a response? idk.. |
Hello. I have exactly the same problem since yesterday I have done many installs and uninstalls on the plugin.. I have deleted the records etc and in zero trast the result is always the same connection normally via domain when I am on the local network but when I am off the network it does not work.. . the only case for it to work is if the connection to the local network has been made and while the application is open I close the wifi then it works .. but as soon as I exit the application it does not come back in until I connect to the local network again |
This is indeed very strange. @stathisktm could you comment if you are behind a CGNAT as well? |
|
Thank you for your reply.! no i'm not behind CGNAT.. both with android app but also with any browser as well as any device.. it's very strange because for 4 months it was working perfectly.. but yesterday suddenly it did this |
as soon as I opened the port it worked normally. but I don't know if it's right to have the port open ha |
Thanks for the update. Can you let me know if you are using a free domain from freenom or if you have a payed domain from some other registrar? |
yes i have free from freenom... do you think there is a problem? |
There might be, since we currently see a lot of problems without any apparent reason. Can you give me your email via my contact form on my website? I can generate a temporary tunnel token for you from my domain to see if this solves the problem. |
thanks for the interest.. i have sent you to your site. |
This just happened to me this morning. I can access home assistant locally but not remotely anymore. It had been working perfectly for weeks. I have a domain from Freenom. Edit: Actually, I just checked using a cellular connection and it worked fine. For some reason, the WiFi network I was connected to wouldn't connect to it. |
unfortunately the problem probably comes from freenom... a rough solution could be to open port 8123 on your router... or to buy a domain from somewhere else |
Yes, unfortunately there seems to be problems with Freenom. So if you are using Freenom, I suggest to buy a cheep domain from Namecheap or GoDaddy or anywhere else and try with that. Feel free to open another ticket if this problem occurs with another domain from another registrar. |
[comment removed - submitting new issue] |
The problem
I am login user and pass ok them it error
Unable to connect to Home Assistant.
Retrying in 56 seconds..
What version of Cloudflared has the issue?
4.0.5
What was the last working version of Cloudflared?
No response
What type of installation are you running?
Home Assistant OS
Add-on YAML Configuration
No response
Anything in the logs that might be useful for us?
No response
Steps to reproduce the issue
i dont know
Additional information
No response
The text was updated successfully, but these errors were encountered: