Intermittent Unable to Connect to Home Assistant

Just want to start out by saying, I have done tons of searching on this and I cannot find anything that specifically fixes my issue or even someone that has mentioned the exact same symptoms that I’m seeing.

I have a very intermittent issue that I can’t find a solution to.

I currently have Hass OS 6.5 installed on a Raspi 4B. It’s got Let’s Encrypt setup with Duck DNS and I can access it from outside my network using SSL and the Phone app. On my computer, I prefer to access it using Firefox browser.

For some reason, whenever the host is rebooted or sometimes just randomly when I try to access https://homeassistant:8123, I will get the error “Unable to connect to Home Assistant” with the Retry button. What often happens is that either spamming the Retry button will sometimes get it to work. If I leave it alone for a while and hit Retry again, it may or may not work. In every case, it will randomly work at some point and I have access to it again. During this time of it not working though, accessing it through my phone (which is my external IP) always works.

By accessing it externally, I can see error logs. The error I get is always the following (occurrence number varies based on how many times I clicked Retry):

No amount of clearing browser data or cache ever fixes the problem. It’s always just a waiting game until it randomly starts working.

2 Likes

Stop logging in with the wrong password?

what does

nslookup homeassistant 

tell you?

Are you sure you have SSL activated on your local network address?

I randomly have a similar thing happen to me.

It’s mostly on one PC on my local network (the only one I ever locally to access HA) but occasionally it happens with my phone via Nabu Casa and the mobile app, as well.

It’s been going on for several months and I’ve posted about it before but I got no solution/hints so I’ve just put up with it since it mostly works.

And yes I’m always using the correct username and password. :wink:

I’ve seen a lot of people responding with something about using the wrong password. When doing that, intentionally of course, red text is added to the login page stating “invalid username or password” and you don’t get to the “Unable to connect to Home Assistant” page at all.

nslookup gives me the static IP that I’ve given to my Raspi4.

How would I activate SSL on my local network? I haven’t seen any information on how to do that.

Well you say you are using https.

I am using https… I put that in the original post. That’s why I included the exact URL I’m accessing.

So you have a certificate for the homeassistant domain? Not sure that is possible.

No, I don’t. That’s what I need to know how to do, if it is possible. Accessing via https gives me the “this is not secure” browser warning and I continue anyways.

I see. Pointless then I think.