I’ve been using HA for a few years now and 3 months ago I accidentally unplugged my RPi4 running Hassio. For the life of me after more than half a day of trying I could NOT get my instance of HA to appear or be able to connect to my network. I could plug a keyboard in and hdmi to a monitor and move about the cabin freely but it always said there was no connection from the Ethernet. I restored my router and that did nothing and tried new cables etc etc but only one thing fixed it. I grabbed a new microsd card and installed a fresh copy on it and plopped it in the RPi4. It booted right up and appeared on the network right away so I restored my last known back up. Everything worked fine after the restore just fine.
Fast forward to today I needed to power down the Hassio and my network and went in this time and powered down from the OS. When my relocation work was done I powered it all backup starting with the modem, router and then HA. Same problem it refused to show up on my network but everything else did as expected. My automations were working as normal except for the time dependent ones so it was running but after another couple hours there was nothing I could do to get it on the network again.
What can I do to fix this?! I have my HA on a UPS but I feel like I can’t ever reboot or update because it will never come back online again. What steps to correct this can I take?
I put in a fix for it a few days ago, hasn’t made it to supervisor stable yet. I thought it was more of an edge case since I was only able to reproduce it by restarting HA when connected to a network with no DHCP server. But what you’re describing does sound similar.
Next time it happens can you share the results of ha network info? Also if you’re able, could you show what it says under ipv4 details when you do nmcli con show 'Supervisor eth0'?
Thanks for the quick response. I do think your on to something there as that does sound like it. I had a similar set of repeatable steps like your example where I shut down both HA and my router. Interesting note here, my HA & router are on the same UPS so I powered them both on at the same time. I’m willing to bet the Pi booted to a state looking for the DHCP inside ~ 30 seconds but my router can take up to 2 minutes to fully come online. Not sure in that router boot time the ethernet & DHCP become available but as far as the Pi was concerned there was no network when it started.
I’ll keep my eyes out this release and hopefully it won’t be an issue till then.