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
0.113 stuck "Home Assistant is starting up" #38088
Comments
same issue. Sometime i see "automation" platform can't start..... restoring vm snapshot all works fine. |
believe i have the same kind of problem with a Rpi4 when i try to log into HA name:8123 it can take over 5min's to load |
I had the same problem....I disabled the tensorflow stuff and the upgrade to 0.113 finished now....re-enabling tensorflow after 113.0 upgrade results in some errors and hangs the HA startup again....seems there is some issue with 113 and tensorflow |
same problem here. HA core in venv on Raspian buster and python 3.7.5. For template sensor, state is unknow but, if i put template in jinjia model, returns correct value i don't use tensorflow Rollback to 0.112.5 resolve and all work fine |
Same problem for me,Nuc |
same here on HA core on docker |
+1 |
Maybe bad config. It was nmap config for me. |
Well, bad config.. how check what config? I have 50 packages, over 200 automations ... |
Config work well with 0.112.5 No error in log (debug) in 0.113 |
How long HA turn on? With my bad nmap config (too much IPs scan) it turns on few minutes on 112.4, with 0.113 it never starts... With proper nmap config it is lightning fast. |
i removed nmap from my configuration but the problem persists |
Are you guys all using tensorflow? I think there is an issue with tensorflow and docker installations including HassOS and core. |
@dshokouhi no, not at all. I'm not using TF but I got the starting up message |
and you guys checked the logs for HA? tried turning on debug logging to see what other issue there might be? |
I think problem is related to template evaluation since template sensors don't work and template triggers don't start automations |
There should be logs suggesting that. Especially if HA is not starting up you should see something. |
As stated above by other users:
|
I have removed all the integrations and now it seems to work, the integrations that I have not reinstalled are: transmission, fritzboxtools, onvif camera |
I have onvif and fritz tools. I’ll try |
i removed fritzbox tool from yaml configuration and added via integration and it works, i think it is an onvif or transmission problem edit: now i reinstalled transmission and it works, i think the problem is the onvif integration |
i don't have onvif integration... no transmission, no fritz. Tried to reinstall 0.113 and same problem, template sensor don't work, template trigger don't work, restart and shutdown from webgui don't work. Probably there will be some other problem but i'm back to 112.5 again |
try to uninstall all the integrations and restart HA, if it starts normally try to reinstall the integrations one by one, restarting each time until it crashes, once it crashes try to remove the last integration and restart. |
Since this problem is being caused by specific integrations, it would be helpful to open an issue for each integration that is causing the issue with your specific configuration. |
but there are non problem with the integration, template sensor are not related to them.. |
Can you post an example of a template sensor that is no longer working? |
Exactly. I don't think it's caused or related to any integration. Several integrations have been listed here but there's no common subset so it is not an integration. Automation is not an integration, sensors are not integration either. |
@dshokouhi if you create an automation with a trigger like this
it won't start. If you evaluate the same condition in the dev tools it gives |
tried to install 0.113.0b0 same problem all this template sensor don't work anymore in HA 0.113:
|
For example, this automation don't work anymore on 0.113:
Config of first binary sensor (all are similar):
i think problems are related to value_template |
Yup, I've waited until supervisor did the rollback to 0.112.4. Nothing popped up. |
How long was it before it rolled back? |
@bdraco I'm not sure, 10-15 minutes I guess. |
It should have definitely logged. We only want to log tasks that are taking more than 60 seconds to avoid spamming the logs. I wonder if there is a chain over tasks that never finish in this case? |
@bdraco I've posted my edits above. I see my "Pending tasks: " lines in the logs, but not yours "Waited ...". I guess it doesn't reach that point somehow. |
@bdraco is it possible to reopen the issue? |
Why do you want to reopen the issue? |
Because 113.1 don't resolve issue (for me), the problems persist |
This change won't solve every integration that is blocking startup, it will only show you which integration is causing it when the debug logging is on so we can get an issue opened against the integration to fix it. Did you enable the debug logging? |
thanks bdraco, i will try again in a few weeks, i'm starting for holidays |
@bdraco If you do not believe me, that nothing shows up in the logs in my case, here's the logs. |
Its not that I don't believe you. I looked though the |
@divanikus Is your startup still blocked or does the problem go away when you disable |
@bdraco it goes away. Also, I have enabled that websocket in Kodi itself and now HA starts even with it enabled. The major problem is that 0.112.4 was able to survive that problem. |
0.113 startup is a lot faster so its much more likely to hit these type of problems in integrations before bootstrap is finished |
@bdraco Anyway, I guess we need more logging to easily nail such problems. It was really weird and cryptic. |
Hi all! I added on his configuration: debug level on core
sensor template
automation to send persistent notification on HA start event:
I removed all custom components from
after some checks I found this command_line sensor on
Now... consider that I'm working on my macbook and both ssl-cert-check binary and pem file are not present in my local directories I tried to remove the command_line sensor and result was:
Trying to re-add that sensor...
Removed again and...
Finally I tried all @Scialla custom components one by one and I noticed that minitemp_bt doesn't allow HA to start correctly (also confirmed on custom-components/ble_monitor#98) Let me know if you need other details |
@snakuzzo |
I tried your command line sensor example and it didn't block startup for me
|
@bdraco I tried to add this package on another HA instance and everything works fine :(
|
@bdraco my mistake about that sensor... sorry :) anyway...in @Scialla and @maxcanna case...we can say that minitemp_bt component was the problem. ...and sorry again for waste your time about command_line sensor :P |
I am still having this problem. Sometimes it gets stuck on initializing and sometimes it is not. Is there a solution or at least a workaround? |
This issue has been closed for over a year. If you are having a similar issue, please open a new issue as startup has been mostly rewritten since this issues was originally opened and the comments made above will likely confuse any attempts to resolve your issue. |
The problem
After updating to the latest version, home assistant gets stuck in:
Home Assistant is starting up, not everything will be available until it has completed booting.
I have a NUC so it starts fairly quickly but after waiting half an hour it always remains blocked, the frontend loads but the template sensors and automations do not load, returning to 112.5 everything works correctly.
How can I solve it?
Environment
Home Assistant Core release with the issue: 0.113
Last working Home Assistant Core release (if known): 0.112.5
Operating environment (OS/Container/Supervised/Core): Core
Integration causing this issue: ALL
Link to integration documentation on our website: ALL
The text was updated successfully, but these errors were encountered: