I’ve scoured through lots of code and docs. I don’t see anything that stands out
Sorry abut the silence, I was suspended for 24 hours as a new user after 20+ messages.
Actually, I could make my homassistant working couple times, but it wasn’t stable. To make it working, I changed the mosquitto port to 8883 both in /etc/mosquitto/mosquitto.conf and /home/homeassistant/.homeassistant/configuration.yaml, restarted both services and then homeassitant could properly load and use mosqutitto. And then ports could be changed back to 1883, services restarted again and all worked fine for a day or two, until the problem came back. Unfortunately, I cannot repeat it now with the fresh raspbian installation.
What I also tried today is installing mosquitto to another raspberrypi server, still the same negative result unfortunately.
I also set the homeassitant log verbosity to “notset” and here’s the full log until homassistant hangs:
2019-01-20 10:18:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_default_level, domain=logger>
2019-01-20 10:18:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_level, domain=logger>
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2019-01-20 10:18:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logger>
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2019-01-20 10:18:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=mqtt>
2019-01-20 10:18:22 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event config_entry_discovered[L]>
2019-01-20 10:18:22 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
The only suspicious message is “Event config_entry_discovered”, such debug message never shown, normally they are either “Event service_registered” or “Event component_loaded”.