So I’ve been running into this issue multiple time today and it is starting to become very annoying.
Basically, whenever I shut down HA using this command
sudo systemctl restart [email protected]
or when I do it via the user interface, HA takes forever to shut down and I have to unplug and plug the raspberry pi back in. The reboot command also does exactly the same thing.
Here is what I see in the systemctl status when this error occurs:
[email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: failed (Result: timeout) since Thu 2017-07-20 19:36:46 CEST; 2min 32s ago
Main PID: 1211
Jul 20 19:33:17 hassbian hass[1211]: 2017-07-20 19:33:17 INFO (MainThread) [homeassistant.components.http] Serving /api/camera_proxy/camera.living_room to 90.43.120.241 (auth: False)
Jul 20 19:33:18 hassbian hass[1211]: 2017-07-20 19:33:18 INFO (Thread-6) [pyicloud.base] Authentication completed successfully
Jul 20 19:33:23 hassbian hass[1211]: 2017-07-20 19:33:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1979182576-10>
Jul 20 19:33:23 hassbian hass[1211]: 2017-07-20 19:33:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_stop[L]>
Jul 20 19:33:29 hassbian hass[1211]: 2017-07-20 19:33:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_close[L]>
Jul 20 19:33:45 hassbian systemd[1]: Stopping Home Assistant for homeassistant...
Jul 20 19:35:16 hassbian systemd[1]: [email protected] stop-sigterm timed out. Skipping SIGKILL.
Jul 20 19:36:46 hassbian systemd[1]: [email protected] stop-final-sigterm timed out. Skipping SIGKILL. Entering failed mode.
Jul 20 19:36:46 hassbian systemd[1]: Stopped Home Assistant for homeassistant.
Jul 20 19:36:46 hassbian systemd[1]: Unit [email protected] entered failed state.
So, what do you think I need to do to fix this issue?
I did a full reset on the PI, set up Hassbian again with all of my files but the issue still occurs.