Am running out of ideas and have already tried reading through existing threads with similar issues:
Virtually EVERY restart I do now HA hangs after these two logbook entries…it is always here:
2020-05-08 13:16:02 INFO (MainThread) [homeassistant.setup] Setting up logbook
2020-05-08 13:16:02 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
This has been gradually getting worse since around ~0.103 (now on 0.109.4) but now it happens with every restart making it impossible to tweak settings. Eventually the UI will come up after 4-5 container restarts, but nothing happens if I just let it sit. Total cycle time to full restart is now around 30mins…crazy.
Running HA Core in Docker and using postgres as DB also in docker. DB size is only 1.1gb which s/b fine. Have tried excluding domains through the recorder …which seems to have no affect.
Any ideas where to look/what to consider next will be very appreciated!
Just try to comment out your postgress db and see what happens. Then you will know if you have to look on the HA side, or the postgress side for troubleshooting.
Appears to be on the HA side as the described issue persists unchanged with postgres commented out. Have since updated to 0.109.6 …but that took 5-6 container restarts until UI finally came up.
Are you running it from an SD card? When your setup does startup what is in the logs? Because those two lines don’t seem to be the problem. It sounds more like the thing it does after setting up logbook.
Yes, I was hoping someone could explain something like the order of events here. The next 1 or 2 log entries after logbook is often literally “HA is starting”…so its getting 99.5% there then just stops. Seems like there is something between those two entries that doesn’t show in the log? It got particularly bad after I starting using the built-in smartthing integration. Before that I had been using the bridge method with mqtt. Still using mqtt for the IOTlink service for win10 data…so perhaps something with these configs…but I’ve looked at those and haven’t seen anything obvious.
As a quick follow up to my post above, here’s the last four lines of an instance with HA properly starting:
I don’t know about other setups, but in my experience logbook is almost always listed right before restart completion.
Does anyone know what’s happening behind the scenes between lines 2 & 3? Sometimes I’ll see an additional sensor loaded there but not always. As I started this thread, my instance often just stops after line 2 here without any further log entry.