This morning my wife mentioned that our front outdoor post light was still on after the sun came up, should be off. I tried to pull up home assistant via my phone and it brought up the blue banner but no content. I swiped down on the screen and it came back with “site cannot be reached”.
I went to my computer and found that I couldn’t pull it up on Chrome there either. I cannot navigate to the IP in Chrome, it does the same thing. I can ping the IP address and hassio machine name. I have the samba share addon and the ssh addon and surprisingly both of those are fully operational! I can ssh into the machine’s ssh docker addon but I cannot figure out how to get home assistant back online.
When I connect via ssh and issue the command “hassio su logs” it spits out a bunch of stuff that looks pretty normal, I can even do that with “hassio ha logs” and everything appears to be working. It seems like everything is functioning correctly. I can pull up the samba share and everything looks fine in there. I just cannot get to the web service. I checked my duckdns.org account and it has my external IP loaded correctly.
I tried to issue “hassio ha restart” and it seems to hang, no output. After waiting a few minutes I pulled the plug on the raspberry pi gave it a few seconds and plugged it back in. The system took a minute or two and came back to where it was before:
- No web service (can’t navigate to my duckdns address)
- ssh works fine
- samba works fine
- all logs look okay
This system has been running great for months, I’m not sure why all of the sudden the web server is gone. I just tried to restart home assistant again in two steps this time, 1st issuing hassio ha stop
then issuing hassio ha start
and it came back like this:
core-ssh:~# hassio ha start
Error: Unknown Error, see logs
core-ssh:~#
Oooh! I found a problem. So I want to look at the logs…
I pulled up the “hassio ha logs
” and it shows this (just warnings and info):
core-ssh:~# hassio ha logs
2019-08-11 08:00:09 WARNING (MainThread) [homeassistant.components.template.sensor] Template sensor weekday has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.
2019-08-11 08:29:37 INFO (SyncWorker_3) [homeassistant.loader] Loaded timer from homeassistant.components.timer
2019-08-11 08:29:37 INFO (SyncWorker_4) [homeassistant.loader] Loaded hassio from homeassistant.components.hassio
2019-08-11 08:29:37 INFO (SyncWorker_3) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2019-08-11 08:29:37 INFO (SyncWorker_4) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave
2019-08-11 08:29:37 INFO (SyncWorker_2) [homeassistant.loader] Loaded zone from homeassistant.components.zone
2019-08-11 08:29:37 INFO (SyncWorker_9) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2019-08-11 08:29:37 INFO (SyncWorker_0) [homeassistant.loader] Loaded sonos from homeassistant.components.sonos
2019-08-11 08:29:37 INFO (SyncWorker_5) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2019-08-11 08:29:37 INFO (SyncWorker_9) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2019-08-11 08:29:37 INFO (SyncWorker_6) [homeassistant.loader] Loaded history from homeassistant.components.history
2019-08-11 08:29:37 INFO (SyncWorker_8) [homeassistant.loader] Loaded light from homeassistant.components.light
2019-08-11 08:29:37 INFO (SyncWorker_6) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2019-08-11 08:29:37 INFO (SyncWorker_17) [homeassistant.loader] Loaded input_number from homeassistant.components.input_number
2019-08-11 08:29:37 INFO (SyncWorker_5) [homeassistant.loader] Loaded group from homeassistant.components.group
2019-08-11 08:29:37 INFO (SyncWorker_8) [homeassistant.loader] Loaded input_select from homeassistant.components.input_select
2019-08-11 08:29:37 INFO (SyncWorker_3) [homeassistant.loader] Loaded map from homeassistant.components.map
2019-08-11 08:29:37 INFO (SyncWorker_5) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2019-08-11 08:29:37 INFO (SyncWorker_17) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2019-08-11 08:29:37 INFO (SyncWorker_0) [homeassistant.loader] Loaded nest from homeassistant.components.nest
2019-08-11 08:29:37 INFO (SyncWorker_12) [homeassistant.loader] Loaded zoneminder from homeassistant.components.zoneminder
2019-08-11 08:29:37 INFO (SyncWorker_13) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2019-08-11 08:29:37 INFO (SyncWorker_3) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2019-08-11 08:29:37 INFO (SyncWorker_8) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
2019-08-11 08:29:37 INFO (SyncWorker_1) [homeassistant.loader] Loaded asuswrt from homeassistant.components.asuswrt
2019-08-11 08:29:37 INFO (SyncWorker_5) [homeassistant.loader] Loaded http from homeassistant.components.http
2019-08-11 08:29:37 INFO (SyncWorker_14) [homeassistant.loader] Loaded cast from homeassistant.components.cast
2019-08-11 08:29:37 INFO (SyncWorker_15) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2019-08-11 08:29:37 INFO (SyncWorker_16) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2019-08-11 08:29:37 INFO (SyncWorker_10) [homeassistant.loader] Loaded switch from homeassistant.components.switch
2019-08-11 08:29:37 INFO (SyncWorker_0) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2019-08-11 08:29:37 INFO (SyncWorker_11) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
2019-08-11 08:29:37 INFO (SyncWorker_17) [homeassistant.loader] Loaded person from homeassistant.components.person
2019-08-11 08:29:37 INFO (SyncWorker_2) [homeassistant.loader] Loaded python_script from homeassistant.components.python_script
2019-08-11 08:29:37 INFO (SyncWorker_9) [homeassistant.loader] Loaded input_text from homeassistant.components.input_text
2019-08-11 08:29:37 INFO (SyncWorker_7) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2019-08-11 08:29:37 INFO (SyncWorker_18) [homeassistant.loader] Loaded sense from homeassistant.components.sense
2019-08-11 08:29:37 INFO (SyncWorker_4) [homeassistant.loader] Loaded esphome from homeassistant.components.esphome
2019-08-11 08:29:37 INFO (SyncWorker_8) [homeassistant.loader] Loaded camera from homeassistant.components.camera
2019-08-11 08:29:37 INFO (SyncWorker_13) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
2019-08-11 08:29:37 INFO (SyncWorker_3) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
2019-08-11 08:29:37 INFO (SyncWorker_6) [homeassistant.loader] Loaded script from homeassistant.components.script
2019-08-11 08:29:37 INFO (SyncWorker_19) [homeassistant.loader] Loaded logger from homeassistant.components.logger
2019-08-11 08:29:37 INFO (SyncWorker_5) [homeassistant.loader] Loaded weather from homeassistant.components.weather
2019-08-11 08:29:37 INFO (SyncWorker_14) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
2019-08-11 08:29:37 INFO (SyncWorker_16) [homeassistant.loader] Loaded api from homeassistant.components.api
2019-08-11 08:29:37 INFO (SyncWorker_10) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
2019-08-11 08:29:37 INFO (SyncWorker_12) [homeassistant.loader] Loaded config from homeassistant.components.config
2019-08-11 08:29:37 INFO (SyncWorker_1) [homeassistant.loader] Loaded input_boolean from homeassistant.components.input_boolean
2019-08-11 08:29:37 INFO (SyncWorker_0) [homeassistant.loader] Loaded panel_custom from homeassistant.components.panel_custom
2019-08-11 08:29:37 INFO (SyncWorker_15) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
2019-08-11 08:29:37 INFO (SyncWorker_11) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.setup] Setting up persistent_notification
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.setup] Setup of domain persistent_notification took 0.0 seconds.
2019-08-11 08:29:37 INFO (SyncWorker_2) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2019-08-11 08:29:37 INFO (SyncWorker_7) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2019-08-11 08:29:37 INFO (SyncWorker_4) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2019-08-11 08:29:37 INFO (SyncWorker_13) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.bootstrap] Setting up {'system_log', 'logger'}
2019-08-11 08:29:37 INFO (MainThread) [homeassistant.setup] Setting up logger
2019-08-11 08:29:39 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=74 from 2019-08-11 13:59:34)
/usr/local/lib/python3.7/site-packages/asyncssh/crypto/ec.py:176: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
return pub.encode_point()
/usr/local/lib/python3.7/site-packages/asyncssh/crypto/ec.py:182: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self._priv_key.curve, peer_public).public_key(backend)
/usr/local/lib/python3.7/site-packages/asyncssh/crypto/ec.py:144: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
public_value)
2019-08-11 08:29:53 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2019-08-11 08:29:53 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2019-08-11 08:29:53 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2019-08-11 08:29:53 WARNING (MainThread) [homeassistant.setup] Setup of asuswrt is taking over 10 seconds.
2019-08-11 08:29:54 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2019-08-11 08:30:02 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2019-08-11 08:30:02 WARNING (MainThread) [homeassistant.setup] Setup of sense is taking over 10 seconds.
2019-08-11 08:30:02 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2019-08-11 08:30:04 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of platform template is taking over 10 seconds.
2019-08-11 08:30:04 WARNING (MainThread) [homeassistant.components.weather] Setup of platform darksky is taking over 10 seconds.
2019-08-11 08:30:09 WARNING (MainThread) [homeassistant.components.template.sensor] Template sensor weekday has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.
core-ssh:~#
The “hassio su logs
” look like this (just warnings and info too):
core-ssh:~# hassio supervisor logs
19-08-11 14:50:59 INFO (MainThread) [hassio.api.security] /homeassistant/restart access from core_ssh
19-08-11 14:50:59 INFO (SyncWorker_8) [hassio.docker.interface] Restart homeassistant/raspberrypi3-homeassistant
19-08-11 14:51:30 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for mqttuser
19-08-11 14:51:30 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused]
19-08-11 14:51:30 INFO (MainThread) [hassio.auth] Home Assistant not running, check cache
19-08-11 14:51:30 INFO (MainThread) [hassio.auth] Cache hit for mqttuser
19-08-11 15:03:23 INFO (MainThread) [hassio.api.security] /supervisor/logs access from core_ssh
19-08-11 15:07:41 WARNING (MainThread) [hassio.homeassistant] Don't wait anymore of Home Assistant startup!
19-08-11 15:07:51 INFO (MainThread) [hassio.api.security] /supervisor/logs access from core_ssh
core-ssh:~#
I’m not sure why the times don’t line up but 14:30 in the su log is the same as 8:30, apparently. This however doesn’t help me figure out what went wrong. Where can I go from here? Is that connection refused error a problem? How can I fix it or gather more information about it?