Ok, first of all I’m not sure where to ask this, so if I’m in the wrong place, my apologies.
It started about a week ago, I lost the Home Assistant Website Version integration. It goes into a continuous loop of trying to reset and keeps timing out. The Log says something about it not being ready and will retry in 10 seconds. And it keeps looping I tried removing and reinstalling now it won’t complete the install but just keeps looping.
Then about 4 or 5 days ago both Google calendar Integration and Google Nest Integration, fell over saying ‘Failed to Set Up’. The Logs for Google Calendar mention config_entry_oauth2_flow.py:201 and the Google Nest call out components/nest/init.py:213. I attempt to delete and reinstall them as well, but the Calendar will delete and time out when I try to reinstall the integration and the Nest won’t even delete. I select delete and confirm and it just doesn’t do anything. Additionally, my Google speakers have been hit or miss when I ask to turn on or off anything in Home Assistant, and I found a log entry that reads ‘Local fulfillment failed to setup, falling back to cloud fulfillment’.
About 2 days ago the Piper integration fell as well. I’ve sense uninstalled it along with the Whisper integration and Wyoming, so I don’t recall any of the log entries there.
In addition to all that Home Assistant has been extremely slow to restart, sometimes taking upto 10-15 minutes to complete a restart.
I’ve tried reinstalling old backups (several of them) to no prevail. Oh and reinstalling a back up takes almost 35-40 minutes for some reason. I’ve done restarts, cold iron shutdowns and startups, trying to uninstall affected integrations (as I’ve already mention), and probably a several other things I can’t remember right now cuz I’m in a panic.
I’m running Home Assistant OS, bare metal, on an Intel NUC NUC10i5FNHN with over a TB of drive space and 15GB of Ram. So I don’t think it’s a hardware performance Issue.
I’m at my wits end and I can’t think of anything that else to do. I would appreciate anybody’s help in fixing this. Thanks in advance.
If you search the logs for “homeassistant.bootstrap” you will see if there’s warnings about integrations taking a long time to setup, as well as the total time for Home Assistant to be initialized. On my 10 year old i7 hardware a restart only takes a couple of minutes.
Do you have addons that could be hogging things? You could install the Glances addon to monitor the system.
The fact that multiple things are crashing suggests something catastrophic. I’d be carefully reading the logs. Normally when you can’t delete an integration it’s because it’s getting a Javascript error - in Chrome you can open Developer Tools (under 3-dots then More Tools) and go the the Console page. If this is happening, people have resorted to manually deleting an integration, but this comes with risks.
Ok, I got it fixed but just to follow up incase anyone else has similar problems.
My thinking was that perhaps the solid state drives were failing in the NUC, so I spun up a VM on Proxmox and installed Home Assistant. Then I shut down the NUC and moved all the USB equipment over to my Proxmox server and added them to the VM before I spun it up. I spun it up, I found the new instance of HA on my network and open up my browser to it, then selected the option to upload from a backup. The backup restoration took about 15-20 before HA was up and running. And, NO JOY. Same problems in the VM, so the NUC was the issue. Spun down the VM, moved all the USB back, and restarted the NUC.
I started to think this has to be more than a software issue because multiple integrations were all effected. Plus I noticed by Google Speakers were intermittently failing. So, I started poking around my router. I have an ASUS RT-AX89X that connects to my providers fiber modem (BGW320-500). The modem is set in passthrough mode and I use my router for firewall and what else. Relooking and the modem I noticed that although I was in passthrough mode, the packet filters on the modems firewall were active. After a few Google searches I found on my providers website a discussion on the proper settings for passthrough that said the packet filters need to be turned off. So, I turned them off and rebooted the modem, And like magic, everything started working again!!!
The thing is, I’ve had this setup for Months with no issue. I don’t know if the modem got an update or something that messed with it or made changes. I honestly can’t say whether or not I had left the packet filters on or not when I originally set it up. The instructions when I set up passthrough mode were not very thorough and of course the provider wants you to use their equipment for everything, so they aren’t of much use. I just don’t know.
So, my only hope is maybe someone else can benefit from my misery and maybe this will point them in the right direction. Thanks again for any and all of your help.