HA will not Start

Hello
This morning I woke up to find we lost power, after power was restored I was unable to log into HA, I am running Hassbian image with duckdns and letsencrypt. I found that HA doesn’t appear to be starting at all. So I found a backup I did about a month ago and still did not start, I checked the log and there is nothing at all. I loaded a set up from about 3 months ago that I had done with Full Raspbian and the All in one installer and has duckdns and letsencrypt installed as well. And it starts. I really don’t want to run the Full Raspbian one. is there anything I can do to get my current one back up? Thanks

Just a shot in the dark and depends on your backups. Is the first backup you mention a full SD card image backup or just config files? My thought is maybe the DB is locked or corrupt. Possibly it was writing when power was lost. It sounds like your second backup is a full SD card image and it will obviously utilize a different DB.

All are full SD card Backups. I have been checking and restarting all day I got this a little bit ago.

17-03-10 13:06:39 WARNING (Thread-11) [homeassistant.components.recorder] Ended unfinished session (id=17 from 2017-03-10 13:22:46.995141)
17-03-10 13:06:39 WARNING (Thread-11) [homeassistant.components.recorder] Found unfinished sessions

If you run sudo systemctl status [email protected] -l what info do you get?

@Mike_D

pi@raspberrypi:~ $ sudo systemctl status [email protected] -l ● [email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; ena bled)
Active: active (running) since Fri 2017-03-10 13:15:40 EST; 5min ago
Main PID: 679 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/home-assistant@homeassis tant.service
└─679 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass

Mar 10 13:15:55 raspberrypi hass[679]:
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.core] Bus:Handling <Event component_loaded[L]: component=introduction>
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.bootstrap] Setting up recorder
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.bootstrap] Setting up mqtt
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.core] Bus:Handling <Event service_registered[L]: service=publish, doma in=mqtt>
Mar 10 13:15:55 raspberrypi hass[679]: 17-03-10 13:15:55 INFO (MainThread) [home assistant.core] Bus:Handling <Event component_loaded[L]: component=mqtt>
Mar 10 13:15:56 raspberrypi hass[679]: 17-03-10 13:15:56 INFO (MainThread) [home assistant.loader] Loaded remote.harmony from homeassistant.components.remote.har mony
Mar 10 13:15:56 raspberrypi hass[679]: 17-03-10 13:15:56 INFO (MainThread) [home assistant.bootstrap] Setting up remote
Mar 10 13:15:56 raspberrypi hass[679]: 17-03-10 13:15:56 INFO (MainThread) [home assistant.components.remote] Setting up remote.harmony

if you run it again does it move passed setting up your harmony remote?

no same thing

@Mike_D you think its in my harmony remote

Possible: This error “Found unfinished sessions” is mentioned in the below thread.

Search results for 'Ended unfinished session' - Home Assistant Community - Returns a lot of DB isssue related threads.

I just unplugged my Harmony Remote and it looks like it went past the remote but HA still does not start

pi@raspberrypi:~ $ sudo systemctl status [email protected] -l ● [email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: active (running) since Fri 2017-03-10 13:36:14 EST; 5min ago
Main PID: 681 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
└─681 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass

Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.bootstrap] Setting up frontend
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.bootstrap] Setting up logbook
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=log, domain=logbook>
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logbook>
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.loader] Loaded remote.harmony from homeassistant.components.remote.harmony
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.bootstrap] Setting up remote
Mar 10 13:36:37 raspberrypi hass[681]: 17-03-10 13:36:37 INFO (MainThread) [homeassistant.components.remote] Setting up remote.harmony
Mar 10 13:36:38 raspberrypi hass[681]: 17-03-10 13:36:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state device_tracker.cathyphone=home; longitude=-83.76789, gps_accuracy=0, latitude=42.984868, entity_picture=/local/cathy.jpg, source_type=router, friendly_name=Cathy @ 2017-03-10T13:36:38.340925-05:00>, old_state=<state device_tracker.cathyphone=not_home; entity_picture=/local/cathy.jpg, source_type=None, friendly_name=Cathy @ 2017-03-10T13:36:36.982378-05:00>, entity_id=device_tracker.cathyphone>
Mar 10 13:36:38 raspberrypi hass[681]: 17-03-10 13:36:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state group.all_devices=home; hidden=True, auto=True, entity_id=(‘device_tracker.cathyphone’, ‘device_tracker.warmachine’, ‘device_tracker.pat92316’, ‘device_tracker.amazon8a3a5ed9c’, ‘device_tracker.deesipod5g’, ‘device_tracker.androidd8e7a68334c8c466’, ‘device_tracker.kindle394504c4a’), order=2, friendly_name=all devices @ 2017-03-10T13:36:38.349218-05:00>, old_state=<state group.all_devices=not_home; hidden=True, auto=True, entity_id=(‘device_tracker.cathyphone’, ‘device_tracker.warmachine’, ‘device_tracker.pat92316’, ‘device_tracker.amazon8a3a5ed9c’, ‘device_tracker.deesipod5g’, ‘device_tracker.androidd8e7a68334c8c466’, ‘device_tracker.kindle394504c4a’), order=2, friendly_name=all devices @ 2017-03-10T13:36:37.182096-05:00>, entity_id=group.all_devices>

I’d say give it a few minutes it may still be loading items. If you still can’t access check status again and see if it got stuck somewhere else. I’m still leaning toward a possible DB issue. The hang ups could be due to issues writing to the DB.

I was just reading in the Forum maybe my Harmony remote got a new IP I dont know if I made it static or not, and since I lost power it gave it a new IP.

Ahh yes, absolutley possible.

@Mike_D Thank you for your help it was the IP I cant believe out of ALL the devices I have that was the only one I didn’t give a Static IP thanks again

Awesome. Glad you got it sorted out.

I get the same issue on my setup today.
When I look in the log file, this is what I get:

2017-11-21 19:31:55 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=241 from 2017-11-21 18:22:26.179600)
2017-11-21 19:32:07 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-11-21 19:32:40 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-11-21 19:32:45 WARNING (SyncWorker_12) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway

Not sure what caused it.

The only thing that is new on the network is installation of VLC media player on one of the client computers, and a setup of Digoo M1Z camera.

I have removed the camera and VLC is not startet.

Has any one else experienced similar issues after installation of VLC?
Can I manually close the session id=241?

I lost my login and samba, force a hard reboot and saw this is the log.
2018-01-04 18:42:44 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=80 from 2018-01-04 07:17:15.327578)

Is there a way to get more from hassio in terms of persistent logs?

Having the same problem. Did you manage to fix it by any chance?

@AlexKalopsia My problem was my IP to my harmony hub, It changed when I lost power and Home Assistant was looking for it on a different IP from my config.yaml. I set my harmony hub back to the other IP and set it to static and all worked fine