Skip to content
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" #24

Closed
pqpxo opened this issue Sep 21, 2020 · 10 comments
Closed

"Unable to connect to Home Assistant" #24

pqpxo opened this issue Sep 21, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@pqpxo
Copy link

pqpxo commented Sep 21, 2020

It took me quite some time to find the culprit but I was encountering an issue where I'd be able to use Home Assistant for about 5-10mins before getting a "Unable to connect to Home Assistant" error message. The fix was to clear my cookies in my browser. I came to realise (after systematic testing and trail and error) that this component caused the issue. Unfortunately I am unable to find any relevant logs to provide any hard evidence however after posting on Reddit and Facebook I've had someone else mention the same issue and resolution by removing this component.

@nielsfaber
Copy link
Owner

Oh wow, that doesn't sound really bad.
I would like to find the root cause here, but it looks like that will not be easy.
I'm hoping you can help me finding this.
Have you been successful with reproducing it? The issue comes back as soon as you add the scheduler again?

It sounds like the issue is caused by the scheduler-card, not this component though.
Because the component has really nothing to do with browsers and cookies, it only does the timekeeping part on the background.
Simple way to proof this would be to keep the scheduler integration on (with some schedules running), and remove the card from your Lovelace config, see if the problem persists.

@nielsfaber nielsfaber added the bug Something isn't working label Sep 22, 2020
@pqpxo
Copy link
Author

pqpxo commented Sep 22, 2020

Hi there,

I've had another 2-3 people on Facebook confirm that they've had the same issue and managed to resolve it by removing this component. I'll try and spin up another instance of HA and reproduce the issue, I'm not willing to risk my 'production' HA instance again

@KTibow
Copy link
Contributor

KTibow commented Sep 22, 2020

@pqpxo how'd it go?

@Kylespamaccoun7
Copy link

Hi, this just happened to me this morning. I installed scheduler card, restarted three times trying to get it to work before I remembered I had to install an actual integration.

Then I installed the integration via HACS and I had the error described above. Clearing cache did not work like frontend stuff normally does, but I was able to run on another browser and in incognito mode (chrome).

I had to actually clear cookies as described above. I didn't want to lose my sign-ins so I cleared the cookies individually. I cleared the database storage cookie and local storage cookies associated with the ip address and port HASS runs on. Wish I had tried them individually.

Sorry I don't have any logs available. I run hass version 0.108.8 on docker (virtual machine). I wonder if the other users who had issues were running older versions as well. Hope this helps.

@pqpxo
Copy link
Author

pqpxo commented Sep 22, 2020

Hi, this just happened to me this morning. I installed scheduler card, restarted three times trying to get it to work before I remembered I had to install an actual integration.

Then I installed the integration via HACS and I had the error described above. Clearing cache did not work like frontend stuff normally does, but I was able to run on another browser and in incognito mode (chrome).

I had to actually clear cookies as described above. I didn't want to lose my sign-ins so I cleared the cookies individually. I cleared the database storage cookie and local storage cookies associated with the ip address and port HASS runs on. Wish I had tried them individually.

Sorry I don't have any logs available. I run hass version 0.108.8 on docker (virtual machine). I wonder if the other users who had issues were running older versions as well. Hope this helps.

Hey there ... After many hours and trying to figure out the cause I actually downgraded to 0.114 and experienced the same issue. Initially I thought it was something new/introduced in 0.115 but it appears not

@pqpxo
Copy link
Author

pqpxo commented Sep 22, 2020

@pqpxo how'd it go?

Going to spin up another VM later this evening and give it a try. Is there anything I should be looking out for log wise or in the Network tab in Chrome Inspector? I spent ages trying to find an error or clue to what was causing the issue.

@nielsfaber
Copy link
Owner

This issue is also posted in the scheduler-card: nielsfaber/scheduler-card#59
I propose we continue the follow-up there. As it is likely caused by the card.

@KTibow
Copy link
Contributor

KTibow commented Sep 22, 2020

Consider closing if just the scheduler-component doesn't cause any errors?

@nielsfaber
Copy link
Owner

So far i don't know for sure whether the scheduler-component can be excluded from the equation...

@nielsfaber
Copy link
Owner

I close this issue, assuming that this problem is fixed with new version of the card.
Please re-open if there are problems again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants