The service does not load

I sent HA to reboot, after it did not start, how to find out where the problem is?

[email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: failed (Result: exit-code) since Sat 2017-08-26 18:15:54 MSK; 1s ago
Process: 1082 ExecStart=/srv/homeassistant/bin/hass (code=exited, status=1/FAILURE)
Main PID: 1082 (code=exited, status=1/FAILURE)

Aug 26 18:15:54 hassbian hass[1082]: File “”, line 2237, in _find_and_load
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 2222, in _find_and_load_unlocked
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 2164, in _find_spec
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 1940, in find_spec
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 1914, in _get_spec
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 2026, in find_spec
Aug 26 18:15:54 hassbian hass[1082]: File “”, line 2065, in _fill_cache
Aug 26 18:15:54 hassbian hass[1082]: OSError: [Errno 74] Bad message: '/srv/homeassistant/lib/python3.4/site-packages/homeassistant’
Aug 26 18:15:54 hassbian systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Aug 26 18:15:54 hassbian systemd[1]: Unit [email protected] entered failed state.

You’ll need the full log, which journalctl gives you.

It’s possible that your problem is a corrupted SD card, which is most likely caused by a low quality power supply.

Often there are such errors

Aug 26 19:44:24 hassbian kernel: EXT4-fs error (device mmcblk0p2): ext4_find_entry:1473: inode #131509: comm dpkg: checksumming directory block 0
Aug 26 19:44:24 hassbian kernel: EXT4-fs error (device mmcblk0p2): ext4_find_entry:1473: inode #131509: comm dpkg: checksumming directory block 0
Aug 26 19:44:24 hassbian kernel: EXT4-fs error (device mmcblk0p2): ext4_find_entry:1473: inode #131509: comm dpkg: checksumming directory block 0
Aug 26 19:44:24 hassbian kernel: EXT4-fs error (device mmcblk0p2): ext4_add_entry:2136: inode #131509: comm dpkg: Directory block failed checksum

It’s possible that the system itself works, but because of poor power supply, some services do not work?

It could be a faulty SD card, but it could also be that the power supply doesn’t sustain 5V, but drops below, or that it can’t sustain the amps required.

At this point, it’s time to back up and restore to a fresh card. While that fresh card is in use you can check to see if the SD card is ok, and if it is then the problem is with your power supply.

Thank you very much I will try.
Can I copy the whole memory card, except for HA there a lot of useful installed?

You could, but you’ve got an unknown amount of corruption there. I’d highly recommend you do a fresh install and copy across the configuration files only.

I’d also suggest you invest in, and test, a backup process. It could be anything as simple as running rsnapshot to a locally attached USB drive, to (more sensibly) backing up to either a remote host or an online service.