-
Notifications
You must be signed in to change notification settings - Fork 977
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
Home Assistant loses internet connection every day #2720
Comments
Let me know what kind of information I could grab to troubleshoot this. On a high level it seems to me that the ipv4 networking interface does not recover in HAOS. Note that when the issue happens I can only access Home Assistant via the CLI. |
It seems that you running without IPv4, is that always the case? |
No, the VM normally gets 192.168.0.43 (that's when things work). |
Let me know if I should grab any further info. I'm about to restart the VM, so the issue will occur again in 12-24 hours. |
Running |
It disconnected again and running the command from the previous comment helped again. |
My instance (OS 10.5, core 2023.8.4) has dropped of the network two days in a row. Running OS directly (not VM) on an old laptop (i7 processor from 2016 or so), connected over wifi, ipv4 and ipv6 enabled. Has been rock solid until two days ago. Will see if I can get something sensible from the logs when I get home (cannot, obviously, reach it remotely). |
Hm that is weird. Sounds like NetworkManager has issues acquiring a IPv4 address then. Can you share the output of
|
Here is the log: |
Here is what my logs look like when things work as expected:
Here is the first disconnect.
It seems that sometimes the network manager does not pick up that the lease has expired. Instead of changing the state to The disconnect I had on the 4th of September is another example of that:
|
The same network drop happened again:
|
Any tips how to fix this? I need to run |
What did not work:
What worked:
|
Having a reserved IP for Home Assistant in my router and using automatic IPv4 in HA has been stable with OS 10.3 for several days. Yesterday afternoon, I upgraded the OS to 10.5 (but did not change the IP settings). It has not yet fallen off the network (after 17 hours) but it's too soon to draw any conclusion. |
Looking at the DHCP documentation, the lease should be renewed at half time (after 12 hours assuming the standard 24 hour lease). However, this does not seem to happen, or at least NetworkManager does not log about it. |
For information: I have had no more problems since upgrading the OS to 10.5, so in my case it seems the IP-settings did the trick. Can’t explain why that should matter, so it’s just an observation. |
Same here. DHCP drops connection every so often. Thanks to the workaround, static ip in HA (and Router, which was set anyway) did the trick. Maybe this helps too: i had a bunch of lease files in var/lib/NetworkManager. Deleting them brought my wifi up on boot in notime. Maybe this isn't related. Its late... |
FWIW, my instance started dropping the network connection again after a couple of weeks. The instance was on WiFi. I gave up and got a USB Ethernet adapter. The instance has been running without problems ever since (more than a month now). So it seems it a wired network connection did the trick in my case. |
My reserved IP solution over wifi is still working without problems. However, it'd be nice to fix this. The DHCP protocol turned 30 years old last month and it's be great if it worked in HA reliably. |
I got the same probleme while running HaOs on a x86 Gigabyte NUC I struggle to get more info to identify the problem... It still connected to the wifi network from The problem occur every day, what can i provide to help us identify the cause of the deconnection ? |
As mentioned above, my instance has not dropped out of the network since I ditched wifi and got a usb-ethernet adapter for wired network connection. More than 3 months now, without a network glitch. Wifi is discouraged for stability reasons - the network drops may be the symptom that backs up the claim that HA OS on wifi is not sufficiently reliable. I have no idea why the machine drops off the network when on wifi, so I can only contribute with the observation that in my case, going to wired network has solved the issue. |
Hi @Datel01 |
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. |
Describe the issue you are experiencing
Every day at some point during the day my home assistant loses internet connection. It cannot be reached from the network (including http://homeassistant.local:4357), nor can it reach any devices on the network (wifi devices become unavailable). It has happened every day since I updated to 2023.8.4, but it seems unlikely that this would be caused by updating core.
I run Home Assistant OS on VMware Workstation (bridged networking mode). The host machine is connected to the internet. Re-connecting to the network adapter to the VM does not resolve the issue.
network reload
does not resolve the issue. Restarting the VM resolves the issue.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?
10.5
Did you upgrade the Operating System.
No
Steps to reproduce the issue
Unclear what causes this.
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
No response
Additional information
The text was updated successfully, but these errors were encountered: