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

Can't randomly connect to Home Assistant local IP or external Nabu Casa URL. Only host reboot fixes it. #3103

Closed
jjvelar opened this issue Jan 24, 2024 · 12 comments
Labels
board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) bug core-issue Issue is most likely related to Home Assistant Core

Comments

@jjvelar
Copy link

jjvelar commented Jan 24, 2024

Describe the issue you are experiencing

Hi, I’m looking for some help on an issue that I’m crazy about.
I have Home Assistant OS installed on a NUC with Nabu Casa to be able to connect from outside.
Since a couple of weeks ago, and randomly once or twice a day, I am unable to access Home Assistant.
When I access through the IP inside the house I have a “connection error” whether I access from the browser or with the app on the mobile. And if it happens when I’m out of home, I can’t connect against the URL provided by Nabu Home either.
The only way to solve it is to physically reboot the NUC.
That's the info available about my installation:

  • Version | core-2024.1.5
  • Installation Type | Home Assistant OS
  • Development | false
  • Supervisor | true
  • Docker | true
  • User | root
  • Virtual Environment | false
  • Python Version | 3.11.6
  • Operating System Family | Linux
  • Operating System Version | 6.1.71-haos
  • CPU Architecture | x86_64
  • Timezone | Europe/Madrid
  • Configuration Directory | /config

Thanks in advance for your help!

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

6.1.71-haos

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. It happens randomly.

...

Anything in the Supervisor logs that might be useful for us?

Not really.

Anything in the Host logs that might be useful for us?

Not really.

System information

Nothing to be repaired.

Additional information

No response

@jjvelar jjvelar added the bug label Jan 24, 2024
@sairon sairon added the board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) label Jan 24, 2024
@sairon
Copy link
Member

sairon commented Jan 24, 2024

Could be some networking error or a frozen system - really hard to tell without any logs. Can you ping the IP address of the NUC when that happens? If it's completely unreachable over network, the only way to check what's wrong is connecting a display and keyboard to the NUC and checking from there.

@AndyKirby
Copy link

AndyKirby commented Jan 24, 2024

I am getting similar on a Pi 5 running the current stable HAOS, but only with the Wifi interface. Network stability is incredibly poor.

The only stuff popping up in the logs (as I connect via the Ethernet interface) is that ha has failed pings and a runner.py winge, Which all seem to be symptomatic of the lost interface rather than causal.

@AndyKirby
Copy link

AndyKirby commented Jan 24, 2024

BTW the ip info for the wifi interface shows that there is no IP config and the actual wifi config seems to have set itself to disabled.

Restarting HA makes no difference you have to power cycle the whole thing to get it back. Where upon it works till ti randomly fails a gain in a random (single number) of hours.

If doing a bunch of work that uses the interface heavily (ESPHome builds and updates) it fails a lot quicker.

@joshrose54
Copy link

I am having a very similar issue and no logs to show for it.

Every 15/20 mins home assistant loses connection with my router (It's connected via Ethernet) and for a few seconds I can't connect to the UI. 99% of the time it reconnects and then all is fine, but sometimes it needs a full power cycle.

I am able to verify this is happening by logging into my router after an occurrence of the above and seeing that the Pi running home assistant has only been connected for a few seconds.

No idea what is going on but it's causing me a lot of issues and definitely only started happening with the latest update.

@jjvelar
Copy link
Author

jjvelar commented Jan 24, 2024

I am having a very similar issue and no logs to show for it.

Every 15/20 mins home assistant loses connection with my router (It's connected via Ethernet) and for a few seconds I can't connect to the UI. 99% of the time it reconnects and then all is fine, but sometimes it needs a full power cycle.

I am able to verify this is happening by logging into my router after an occurrence of the above and seeing that the Pi running home assistant has only been connected for a few seconds.

No idea what is going on but it's causing me a lot of issues and definitely only started happening with the latest update.

"only started happening with the lastest update" is exactly what happened to me!

@joshrose54
Copy link

The only possible log I can find that seems to match-up with the disconnection and reconncetion is below:

Jan 24 23:15:43 homeassistant systemd-timesyncd[1154]: Network configuration changed, trying to establish connection.
Jan 24 23:15:43 homeassistant systemd-timesyncd[1154]: Contacted time server 128.138.140.44:123 (128.138.140.44).
Jan 24 23:15:44 homeassistant systemd-journal-gatewayd[3782]: microhttpd: MHD_OPTION_EXTERNAL_LOGGER is not the first option specified for the daemon. Some messages may be printed by the standard MHD logger.

@jjvelar
Copy link
Author

jjvelar commented Jan 25, 2024

Hi,

This night connection was lost again so I have verified that:

Neither local IP, nor .local address or external Nabu Casa URL couldn’t be reached through ethernet or wifi.
I can ping Home Assistant local IP address
Home Assistant Observer webpage shows:
|Supervisor:|Connected|
|Supported:|Supported|
|Healthy:|Healthy|
I had to reboot host to fix the issue.

Thanks in advance for your help.

@jjvelar
Copy link
Author

jjvelar commented Jan 26, 2024

Any idea or suggestion? It is really annoying! Thanks!

@agners
Copy link
Member

agners commented Jan 31, 2024

I can ping Home Assistant local IP address
Home Assistant Observer webpage shows:
|Supervisor:|Connected|
|Supported:|Supported|
|Healthy:|Healthy|

The fact that you can ping the system and those metrics are healthy points to an issue with Home Assistant Core. Home Assistant Core provides the web server which is running on port 8123, so it seems that Core is no longer serving anything.

Can you check and share the Supervisor and Core logs? Especially after an outage. Also you might try restarting Home Assistant into safe mode to see if the issue goes away.

The HAOS issue tracker is the wrong place to further debug it. Probably the best location is the community forum Installation section. Feel free to tag me or leave a link here.

I'll mark this as Core issue and close it since at this point it is very unlikely that the problem is caused by Home Assistatn OS itself.

@AndyKirby @joshrose54 you seem to have lower layer network connectivity issue, which is different from what @jjvelar reports. Also on different platforms. Can you create separate issues along with all information for the problems you are seeing? Thanks!

@agners agners added the core-issue Issue is most likely related to Home Assistant Core label Jan 31, 2024
Copy link

👋 @jjvelar, thanks for reporting an issue!

It looks like this issue is related to Home Assistant Core. Please check the Home Assistant Core repository, the issue might have been reported already. Open a new issue in that repository if you can't find a matching issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
@jjvelar
Copy link
Author

jjvelar commented Feb 4, 2024

I can ping Home Assistant local IP address
Home Assistant Observer webpage shows:
|Supervisor:|Connected|
|Supported:|Supported|
|Healthy:|Healthy|

The fact that you can ping the system and those metrics are healthy points to an issue with Home Assistant Core. Home Assistant Core provides the web server which is running on port 8123, so it seems that Core is no longer serving anything.

Can you check and share the Supervisor and Core logs? Especially after an outage. Also you might try restarting Home Assistant into safe mode to see if the issue goes away.

The HAOS issue tracker is the wrong place to further debug it. Probably the best location is the community forum Installation section. Feel free to tag me or leave a link here.

I'll mark this as Core issue and close it since at this point it is very unlikely that the problem is caused by Home Assistatn OS itself.

@AndyKirby @joshrose54 you seem to have lower layer network connectivity issue, which is different from what @jjvelar reports. Also on different platforms. Can you create separate issues along with all information for the problems you are seeing? Thanks!

Done!

https://community.home-assistant.io/t/cant-randomly-connect-to-home-assistant-local-ip-or-external-nabu-casa-url-only-host-reboot-fixes-it/684622

@jjvelar
Copy link
Author

jjvelar commented Feb 9, 2024

Just for you all to know, it was the Bambu Lab integration.
Once I disabled it, had no more connection issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) bug core-issue Issue is most likely related to Home Assistant Core
Projects
None yet
Development

No branches or pull requests

5 participants