Connection refused after restoring backup, no errors, samba working

Yesterday, after doing a simple restart, suddenly hassio didn’t come back online. The front-end wouldn’t load so it seemed, but after doing a lot of research it seems more is going on.

Because I couldn’t get to my files (didn’t have Samba nor SSH installed) I had to restore an older backup from February. I reinstalled hassio by overwriting the SD card with a fresh install. After installing Samba I copied the old backup file in the backup folder. It wasn’t discovered at first, but then I made a full backup using the hassio interface. I deleted the file that popped up in the backup folder and gave my own backup file that name. Then I was able to restore the backup file.

Now the strange stuff begins. The backup seems to be succesfully restored. I can still access my files with samba. I see many files, including the config files, are replaced with the backup files. Though, again the webapplication won’t load. The browser says “Err_connection_refused”.

When opening the log file through Samba there are no errors that make sense. Only some connection error with my chromecast. That shouldn’t keep the front-end from loading.

In my backup file there was SSL implemented, so of course I tried connecting with my own domain, using https. No result.

[...] Many starting up messages...
2019-03-03 12:39:49 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.3 seconds.
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=device_tracker>
2019-03-03 12:39:49 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: []
2019-03-03 12:39:49 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.owntracks
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] > (33) {"system": {"get_sysinfo": null}}
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Finished group request in 0.058 seconds
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.keuken, old_state=None, new_state=<state light.keuken=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Keuken, supported_features=63 @ 2019-03-03T12:39:49.564360+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.group_for_wakeup, old_state=None, new_state=<state light.group_for_wakeup=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Group for wakeup, supported_features=63 @ 2019-03-03T12:39:49.568211+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.kantoor, old_state=None, new_state=<state light.kantoor=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Kantoor, supported_features=63 @ 2019-03-03T12:39:49.572004+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.woonkamer, old_state=None, new_state=<state light.woonkamer=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Woonkamer, supported_features=63 @ 2019-03-03T12:39:49.575728+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.slaapkamer, old_state=None, new_state=<state light.slaapkamer=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Slaapkamer, supported_features=63 @ 2019-03-03T12:39:49.579688+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.kantoor_2, old_state=None, new_state=<state light.kantoor_2=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Kantoor, supported_features=63 @ 2019-03-03T12:39:49.583475+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.overloop, old_state=None, new_state=<state light.overloop=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Overloop, supported_features=63 @ 2019-03-03T12:39:49.587363+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.entertainmentruimte_1, old_state=None, new_state=<state light.entertainmentruimte_1=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Entertainmentruimte 1, supported_features=63 @ 2019-03-03T12:39:49.591243+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.group_1, old_state=None, new_state=<state light.group_1=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Group 1, supported_features=63 @ 2019-03-03T12:39:49.595040+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.group_2, old_state=None, new_state=<state light.group_2=off; min_mireds=153, max_mireds=500, is_hue_group=True, friendly_name=Group 2, supported_features=63 @ 2019-03-03T12:39:49.598922+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=group, service=set, service_data=object_id=all_lights, name=all lights, visible=False, entities=['light.entertainmentruimte_1', 'light.group_1', 'light.group_2', 'light.group_for_wakeup', 'light.kantoor', 'light.kantoor_2', 'light.keuken', 'light.overloop', 'light.slaapkamer', 'light.woonkamer']>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Finished light request in 0.104 seconds
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue color lamp 1: GamutType(red=XYPoint(x=0.6915, y=0.3083), green=XYPoint(x=0.17, y=0.7), blue=XYPoint(x=0.1532, y=0.0475))
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue color lamp 2: GamutType(red=XYPoint(x=0.6915, y=0.3083), green=XYPoint(x=0.17, y=0.7), blue=XYPoint(x=0.1532, y=0.0475))
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue color lamp 3: GamutType(red=XYPoint(x=0.6915, y=0.3083), green=XYPoint(x=0.17, y=0.7), blue=XYPoint(x=0.1532, y=0.0475))
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue color lamp 4: GamutType(red=XYPoint(x=0.6915, y=0.3083), green=XYPoint(x=0.17, y=0.7), blue=XYPoint(x=0.1532, y=0.0475))
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue color lamp 5: GamutType(red=XYPoint(x=0.6915, y=0.3083), green=XYPoint(x=0.17, y=0.7), blue=XYPoint(x=0.1532, y=0.0475))
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue ambiance spot 1: None
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Hue ambiance spot 2: None
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Dimmable light 1: None
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Dimmable light 2: None
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.components.hue.light] Color gamut of Color temperature light 1: None
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.all_lights, old_state=None, new_state=<state group.all_lights=off; entity_id=('light.entertainmentruimte_1', 'light.group_1', 'light.group_2', 'light.group_for_wakeup', 'light.kantoor', 'light.kantoor_2', 'light.keuken', 'light.overloop', 'light.slaapkamer', 'light.woonkamer'), order=11, auto=True, friendly_name=all lights, hidden=True @ 2019-03-03T12:39:49.627553+01:00>>
2019-03-03 12:39:49 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.hue entity: light.color_temperature_light_1
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.color_temperature_light_1, old_state=None, new_state=<state light.color_temperature_light_1=off; min_mireds=153, max_mireds=500, friendly_name=Color temperature light 1, supported_features=43 @ 2019-03-03T12:39:49.634597+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_color_lamp_5, old_state=None, new_state=<state light.hue_color_lamp_5=off; min_mireds=153, max_mireds=500, friendly_name=Slaapkamer, supported_features=63 @ 2019-03-03T12:39:49.638593+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_color_lamp_2, old_state=None, new_state=<state light.hue_color_lamp_2=off; min_mireds=153, max_mireds=500, friendly_name=Televisie, supported_features=63 @ 2019-03-03T12:39:49.642666+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_ambiance_spot_1, old_state=None, new_state=<state light.hue_ambiance_spot_1=unavailable; friendly_name=Spot kamerkant, supported_features=43 @ 2019-03-03T12:39:49.646627+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_color_lamp_3, old_state=None, new_state=<state light.hue_color_lamp_3=off; min_mireds=153, max_mireds=500, friendly_name=Kantoor, supported_features=63 @ 2019-03-03T12:39:49.650725+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_ambiance_spot_2, old_state=None, new_state=<state light.hue_ambiance_spot_2=unavailable; friendly_name=Spot raamkant, supported_features=43 @ 2019-03-03T12:39:49.654617+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_color_lamp_4, old_state=None, new_state=<state light.hue_color_lamp_4=off; min_mireds=153, max_mireds=500, friendly_name=Kantoor, supported_features=63 @ 2019-03-03T12:39:49.658779+01:00>>
2019-03-03 12:39:49 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.hue entity: light.dimmable_light_2
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.dimmable_light_2, old_state=None, new_state=<state light.dimmable_light_2=off; friendly_name=Dimmable light 2, supported_features=41 @ 2019-03-03T12:39:49.665529+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.hue_color_lamp_1, old_state=None, new_state=<state light.hue_color_lamp_1=off; min_mireds=153, max_mireds=500, friendly_name=Salontafel, supported_features=63 @ 2019-03-03T12:39:49.669556+01:00>>
2019-03-03 12:39:49 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.hue entity: light.dimmable_light_1
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.dimmable_light_1, old_state=None, new_state=<state light.dimmable_light_1=off; friendly_name=Dimmable light 1, supported_features=41 @ 2019-03-03T12:39:49.676822+01:00>>
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] < (613) {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"D8:0D:17:3E:7A:11","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"Wasmachine","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-56,"led_off":0,"longitude_i":47044,"latitude_i":525197,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006A5E6A508A4A719DC6E518FA8BB1B1AFB3620","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_slaapkamer, old_state=<state group.verlichting_slaapkamer=unknown; entity_id=('light.hue_color_lamp_5',), order=5, view=True, friendly_name=Verlichting slaapkamer, icon=mdi:hotel, hidden=True @ 2019-03-03T12:39:49.160060+01:00>, new_state=<state group.verlichting_slaapkamer=off; entity_id=('light.hue_color_lamp_5',), order=5, view=True, friendly_name=Verlichting slaapkamer, icon=mdi:hotel, hidden=True @ 2019-03-03T12:39:49.684416+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_woonkamer, old_state=<state group.verlichting_woonkamer=unknown; entity_id=('light.hue_color_lamp_1', 'light.hue_color_lamp_2', 'light.hue_color_lamp_3'), order=1, view=True, friendly_name=Verlichting woonkamer, icon=mdi:chair, hidden=True @ 2019-03-03T12:39:48.688305+01:00>, new_state=<state group.verlichting_woonkamer=off; entity_id=('light.hue_color_lamp_1', 'light.hue_color_lamp_2', 'light.hue_color_lamp_3'), order=1, view=True, friendly_name=Verlichting woonkamer, icon=mdi:chair, hidden=True @ 2019-03-03T12:39:49.689093+01:00>>
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] > (33) {"system": {"get_sysinfo": null}}
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_kantoor, old_state=<state group.verlichting_kantoor=unknown; entity_id=('light.hue_color_lamp_4',), order=4, view=True, friendly_name=Verlichting kantoor, icon=mdi:desktop-tower-monitor, hidden=True @ 2019-03-03T12:39:49.155075+01:00>, new_state=<state group.verlichting_kantoor=off; entity_id=('light.hue_color_lamp_4',), order=4, view=True, friendly_name=Verlichting kantoor, icon=mdi:desktop-tower-monitor, hidden=True @ 2019-03-03T12:39:49.694068+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=group, service=set, service_data=object_id=all_lights, name=all lights, visible=False, entities=['light.color_temperature_light_1', 'light.dimmable_light_1', 'light.dimmable_light_2', 'light.entertainmentruimte_1', 'light.group_1', 'light.group_2', 'light.group_for_wakeup', 'light.hue_ambiance_spot_1', 'light.hue_ambiance_spot_2', 'light.hue_color_lamp_1', 'light.hue_color_lamp_2', 'light.hue_color_lamp_3', 'light.hue_color_lamp_4', 'light.hue_color_lamp_5', 'light.kantoor', 'light.kantoor_2', 'light.keuken', 'light.overloop', 'light.slaapkamer', 'light.woonkamer']>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_boven, old_state=<state group.verlichting_boven=unknown; entity_id=('group.verlichting_kantoor', 'group.verlichting_slaapkamer'), order=7, view=True, friendly_name=Verlichting boven, icon=mdi:arrow-up-circle, hidden=True @ 2019-03-03T12:39:49.186122+01:00>, new_state=<state group.verlichting_boven=off; entity_id=('group.verlichting_kantoor', 'group.verlichting_slaapkamer'), order=7, view=True, friendly_name=Verlichting boven, icon=mdi:arrow-up-circle, hidden=True @ 2019-03-03T12:39:49.705348+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_beneden, old_state=<state group.verlichting_beneden=unknown; entity_id=('group.verlichting_eetruimte', 'group.verlichting_keuken', 'group.verlichting_woonkamer'), order=6, view=True, friendly_name=Verlichting beneden, icon=mdi:arrow-down-circle, hidden=True @ 2019-03-03T12:39:49.168090+01:00>, new_state=<state group.verlichting_beneden=off; entity_id=('group.verlichting_eetruimte', 'group.verlichting_keuken', 'group.verlichting_woonkamer'), order=6, view=True, friendly_name=Verlichting beneden, icon=mdi:arrow-down-circle, hidden=True @ 2019-03-03T12:39:49.708978+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.all_lights, old_state=<state group.all_lights=off; entity_id=('light.entertainmentruimte_1', 'light.group_1', 'light.group_2', 'light.group_for_wakeup', 'light.kantoor', 'light.kantoor_2', 'light.keuken', 'light.overloop', 'light.slaapkamer', 'light.woonkamer'), order=11, auto=True, friendly_name=all lights, hidden=True @ 2019-03-03T12:39:49.627553+01:00>, new_state=<state group.all_lights=off; entity_id=('light.color_temperature_light_1', 'light.dimmable_light_1', 'light.dimmable_light_2', 'light.entertainmentruimte_1', 'light.group_1', 'light.group_2', 'light.group_for_wakeup', 'light.hue_ambiance_spot_1', 'light.hue_ambiance_spot_2', 'light.hue_color_lamp_1', 'light.hue_color_lamp_2', 'light.hue_color_lamp_3', 'light.hue_color_lamp_4', 'light.hue_color_lamp_5', 'light.kantoor', 'light.kantoor_2', 'light.keuken', 'light.overloop', 'light.slaapkamer', 'light.woonkamer'), order=11, auto=True, friendly_name=all lights, hidden=True @ 2019-03-03T12:39:49.627553+01:00>>
2019-03-03 12:39:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.verlichting_alles, old_state=<state group.verlichting_alles=unknown; entity_id=('group.verlichting_beneden', 'group.verlichting_boven'), order=8, view=True, friendly_name=Alle verlichting, icon=mdi:lightbulb-on-outline, hidden=True @ 2019-03-03T12:39:49.194667+01:00>, new_state=<state group.verlichting_alles=off; entity_id=('group.verlichting_beneden', 'group.verlichting_boven'), order=8, view=True, friendly_name=Alle verlichting, icon=mdi:lightbulb-on-outline, hidden=True @ 2019-03-03T12:39:49.717898+01:00>>
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] < (613) {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"D8:0D:17:3E:7A:11","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"Wasmachine","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-56,"led_off":0,"longitude_i":47044,"latitude_i":525197,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006A5E6A508A4A719DC6E518FA8BB1B1AFB3620","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] > (33) {"system": {"get_sysinfo": null}}
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] < (613) {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"D8:0D:17:3E:7A:11","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"Wasmachine","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-56,"led_off":0,"longitude_i":47044,"latitude_i":525197,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006A5E6A508A4A719DC6E518FA8BB1B1AFB3620","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
2019-03-03 12:39:49 DEBUG (SyncWorker_6) [pyHS100.protocol] > (33) {"system": {"get_sysinfo": null}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] < (613) {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"D8:0D:17:3E:7A:11","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"Wasmachine","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-56,"led_off":0,"longitude_i":47044,"latitude_i":525197,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006A5E6A508A4A719DC6E518FA8BB1B1AFB3620","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] > (34) {"emeter": {"get_realtime": null}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] < (107) {"emeter":{"get_realtime":{"voltage_mv":232209,"current_ma":37,"power_mw":0,"total_wh":2819,"err_code":0}}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] > (33) {"system": {"get_sysinfo": null}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] < (613) {"system":{"get_sysinfo":{"sw_ver":"1.5.4 Build 180815 Rel.121440","hw_ver":"2.0","type":"IOT.SMARTPLUGSWITCH","model":"HS110(EU)","mac":"D8:0D:17:3E:7A:11","dev_name":"Smart Wi-Fi Plug With Energy Monitoring","alias":"Wasmachine","relay_state":0,"on_time":0,"active_mode":"none","feature":"TIM:ENE","updating":0,"icon_hash":"","rssi":-56,"led_off":0,"longitude_i":47044,"latitude_i":525197,"hwId":"044A516EE63C875F9458DA25C2CCC5A0","fwId":"00000000000000000000000000000000","deviceId":"8006A5E6A508A4A719DC6E518FA8BB1B1AFB3620","oemId":"1998A14DAA86E4E001FD7CAF42868B5E","next_action":{"type":-1},"err_code":0}}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] > (55) {"emeter": {"get_daystat": {"month": 3, "year": 2019}}}
2019-03-03 12:39:50 DEBUG (SyncWorker_6) [pyHS100.protocol] < (192) {"emeter":{"get_daystat":{"day_list":[{"year":2019,"month":3,"day":1,"energy_wh":0},{"year":2019,"month":3,"day":2,"energy_wh":0},{"year":2019,"month":3,"day":3,"energy_wh":0}],"err_code":0}}}
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.wasmachine, old_state=None, new_state=<state switch.wasmachine=off; current_power_w=0.00, total_energy_kwh=2.819, voltage=232.2, current_a=0.04, today_energy_kwh=0.000, friendly_name=Wasmachine @ 2019-03-03T12:39:50.556832+01:00>>
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=group, service=set, service_data=object_id=all_switches, name=all switches, visible=False, entities=['switch.wasmachine']>
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.all_switches, old_state=None, new_state=<state group.all_switches=off; entity_id=('switch.wasmachine',), order=12, auto=True, friendly_name=all switches, hidden=True @ 2019-03-03T12:39:50.571596+01:00>>
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=turn_off>
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=turn_on>
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=toggle>
2019-03-03 12:39:50 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 1.3 seconds.
2019-03-03 12:39:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=switch>
2019-03-03 12:39:50 INFO (MainThread) [homeassistant.loader] Loaded zwave.switch from homeassistant.components.zwave.switch
2019-03-03 12:39:50 INFO (MainThread) [homeassistant.components.switch] Setting up switch.zwave
2019-03-03 12:39:50 INFO (MainThread) [homeassistant.loader] Loaded tradfri.switch from homeassistant.components.tradfri.switch
2019-03-03 12:39:50 INFO (MainThread) [homeassistant.components.switch] Setting up switch.tradfri
2019-03-03 12:39:50 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.178.24 get ['15001']
2019-03-03 12:39:50 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7042a8b0: Type.CON GET (ID 60945, token b'\x00\x00\xeb\xee') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x70576dd0>, 3 option(s)>
2019-03-03 12:39:50 DEBUG (MainThread) [coap] Exchange added, message ID: 60945.
2019-03-03 12:39:50 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-03-03 12:39:50 DEBUG (MainThread) [coap.requester] Sending request - Token: 0000ebee, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x70576dd0>
2019-03-03 12:39:50 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x70576f90: Type.ACK 2.05 Content (ID 60945, token b'\x00\x00\xeb\xee') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x70576dd0>, 2 option(s), 2 byte(s) payload>
2019-03-03 12:39:50 DEBUG (MainThread) [coap] New unique message received
2019-03-03 12:39:50 DEBUG (MainThread) [coap] Exchange removed, message ID: 60945.
2019-03-03 12:39:50 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x70576f90: Type.ACK 2.05 Content (ID 60945, token b'\x00\x00\xeb\xee') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x70576dd0>, 2 option(s), 2 byte(s) payload>
2019-03-03 12:39:50 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: []
2019-03-03 12:39:51 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.178.20
2019-03-03 12:39:51 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.178.20
2019-03-03 12:39:54 DEBUG (SyncWorker_11) [pychromecast.discovery] get_info_from_service resolved service Chromecast-1793ed462f1a8ee6357021d90d4c38b2._googlecast._tcp.local. to service_info ServiceInfo(type='_googlecast._tcp.local.', name='Chromecast-1793ed462f1a8ee6357021d90d4c38b2._googlecast._tcp.local.', address=b'\xc0\xa8\xb2\x19', port=8009, weight=0, priority=0, server='1793ed46-2f1a-8ee6-3570-21d90d4c38b2.local.', properties={b'id': b'1793ed462f1a8ee6357021d90d4c38b2', b'cd': b'648005B1767B2D078B9DC0DC43E5D2FF', b'rm': b'3376AAEE704DE13D', b've': b'05', b'md': b'Chromecast', b'ic': b'/setup/icon.png', b'fn': b'Chromecast', b'ca': b'4101', b'st': b'0', b'bs': b'FA8FCA8CEB73', b'nf': b'1', b'rs': False})
2019-03-03 12:39:54 DEBUG (SyncWorker_11) [pychromecast.socket_client] [Chromecast:8009] Resolved service Chromecast-1793ed462f1a8ee6357021d90d4c38b2._googlecast._tcp.local. to 192.168.178.25:8009
2019-03-03 12:39:54 DEBUG (SyncWorker_11) [pychromecast.socket_client] [Chromecast:8009] Connecting to 192.168.178.25:8009

Any ideas what to do next?

Thanks in advance!

Roy

It appears HA is having trouble connecting to your Hue hub at 192.168.178.20

I noticed that. I didn’t expect it to be of such importance for booting. To make sure, I changed the IP address in the configuration.yaml. Didn’t seem to help. I’m still getting the err_connection_refused…

Crazy question:

Did you restore backup to a computer with the same internal ip address or a different one? If a different address, did you update the rules in your router?

Thanks for helping me! :slight_smile:

My router gives the IP address based on the RPi’s mac address. The internal IP address of the Raspberry is the same as always. I also checked the other settings: my domain points to my home IP address. The router points both ports 8123 and 443 to the internal IP address of the Raspberry.

I’m running out of ideas…

Linux firewall on your HA server?
If it is network related, a network packet capture with tshark or wireshark may give clues.

The audit2allow command can check if it is an selinux issue.

Can you tell me how to execute this test?

Is it even possible that suddenly a linux firewall pops up out of the blue, to block (almost) all communication? I never installed a firewall on hassio. Or is a firewall part of the hassio package?

The backup I restored has always worked, also after a reboot. Now suddenly I’m getting this strange behaviour. Theoretically it shouldn’t be something caused by hassio because the files and configurations were working. But nothing’s changed in the internet/router settings either.

OK, I made a few assumptions. Let’s back up a bit. What type of Hassio installation do you have?

For instance, I am currently running Hassio.in a virtual machine on Windows but will soon migrate to Hass.io on a RPI.

Some people run Hass.io on Linux.

Sorry for the confusion.

I’m running the 32-bit Hass.io image on a RPi 3B+.

I’m considering an Intel NUC with Ubuntu running Hass.io on a Virtualbox VM. But that’s something for the future.

In the next few weeks I am planning on installing Hass.io (likely 64 bit) on a RPI 3B+ I just ordered it this past weekend.

Is it possible the image on the SD card got corrupted? If you have not already tried, try another reboot. That would trigger an fsck (filesystem check) if it thinks it is needed.

Not being able to connect to the Hue bridge shouldn’t cause the UI not to load. It’s probably something else but I don’t see anything suspicious in the logs.

I don’t know the cause of your problem but I can tell you the Hass.io snapshot restore feature doesn’t work very well. It worked for me maybe one out of the five times I used it. Sometimes it would partially restore and stop, so I would need to run the restore again for the remaining Hass.io add-ons it missed.

I feel like I ran into your issue before after doing a Hass.io restore. In the end, I started from a fresh install of Hass.io and copied my \config directory over, and re-installed Hass.io add-ons manually. That was the safest way for me to get Home Assistant up and running again.

If you need to find your configs for certain Hass.io add-ons, you can open the snapshot file using an archive manager like 7-zip. Navigate through the directories and you’ll find your hass.io addon and config file there.

2 Likes

Is it possible the image on the SD card got corrupted? If you have not already tried, try another reboot. That would trigger an fsck (filesystem check) if it thinks it is needed.

I rebooted many times. I guess that should’ve triggered the filesystem check by now. I’m starting to believe that the files indeed are corrupted.

I don’t know the cause of your problem but I can tell you the Hass.io snapshot restore feature doesn’t work very well. It worked for me maybe one out of the five times I used it. Sometimes it would partially restore and stop, so I would need to run the restore again for the remaining Hass.io add-ons it missed.

I’ll try comparing the files on the RPI after the backup restore and the files inside the backup folder and let you know.

Okay, so, when I compare the RPi files through Samba, I’m seeing these folders:

  • addons [empty]
  • backup [contains only my snapshot file]
  • config [contains all files from the backup, no missing files]
  • share [empty]
  • ssl [containing 2 files: fullchain.pem, privkey.pem]

Inside the backup file, I’m seeing these folders:

  • a0d7b954_nodered [files I can’t find on the RPI]
  • a0d7b954_sonweb [files I can’t find on the RPI]
  • a0d7b954_ssh [files I can’t find on the RPI]
  • addons_local [empty]
  • core_configurator [files I can’t find on the RPI]
  • core_letsencrypt [files I can’t find on the RPI]
  • homeassistant [same files as on the RPI config folder]
  • share [empty]
  • ssl [exactly the same files as on the RPI ssl folder]
  • snapshot.json [I guess this contains the snapshot info, not important for restoring]

Should the a0d7b954 addon folders be inside the addon folder on the RPi?

My \addons folder is empty, though I have several Hass.io addons installed. So I guess that is normal.

You can spend hours trying to find the root cause, or you could start over with a fresh install and copy files from \config over. I really think you should start over…

Sometimes HA just dies–that happened to me yesterday. Samba share was still working (though stopped working sporadically), but SSH wasn’t, and accessing the web interface was spotty. I could access the HA site for one minute, then go offline for a long time. I was able to access the logs during the brief period it was online and saw HA was failing to communicate to everything, but didn’t find a source. So I started over again and reformatted my SD card, installed HA with the exact same configuration, sensors, Hass.io addons, custom Lovelace cards and components, and everything is working fine now. I never found the issue, but at least I have a working HA instance for now.

Some people have said that 32 bit Hassos is more stable than the 64-bit version.
what has been your experience?

I guess I’m gonna do that. I ordered an Intel NUC. I hope running Hass.io on a virtual machine will lead to a more reliable backup system, in case my files got corrupted again.

@anon34565116: I’ve tried installing the 64-bit first, but have never been able to get it working. I think that was because of the wifi settings in the network file. I ended up using the 32-bit version on eth0. That 32-bit version has always (for 6 months or so) been stable, until now. I’m not sure what advantages the 64-bit version offers. 32-bit supports up to 4GB of RAM. That’s way more than the RPi offers, so 32-bit should do fine. But, whatever you choose, now I’m recommending you to backup often and write the files to another HDD (or dropbox).

Perhaps Hassbian would be a better option.

I have a feeling HassOs is not reliable.

But with Hassbian there’s no docker environment right? Is it possible to install the addons then?

By backing up HassOS often on the VM I’ll always be able to restore it in case of a corrupted filesystem. I’m then avoiding the snapshot system of Hassio itself, which might not work as great.

Doing more research. Using an OS like Raspian and then using the Hassio installer would likely be a better choice.

I have not researched Linux options for Pi I just know Raspian is popular.

Keep me posted! :wink:

I’m going to look into the Intel NUC with Ubuntu installed, running Hassio on a Virtualbox VM. I’ll let you know about my experience with that. A NUC is more expensive than a RPi of course, but they say it’s a hell of a lot faster also. I’m looking forward to seeing my lights turning on faster than 5 seconds after a motion detection :smile: