Cannot start HA after migrate to Vitual Env

Hi,

I installed HA in Virtual ENV (Ubuntu), based on HA documentation. The fresh install of HA starts properly, but once I pull all my configuration from git, I get the following error and have no idea what’s wrong. Any help would be highly appreciated.

sudo systemctl status home-assistant@tiszavolgyi
● [email protected] - Home Assistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-11-05 19:17:59 PST; 583ms ago
  Process: 1576 ExecStart=/srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant (code=exited, status=1/FAILURE)
 Main PID: 1576 (code=exited, status=1/FAILURE)

Nov 05 19:17:59 Marvin hass[1576]: Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=True debug=False>>
Nov 05 19:17:59 Marvin hass[1576]: Traceback (most recent call last):
Nov 05 19:17:59 Marvin hass[1576]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 512, in __del__
Nov 05 19:17:59 Marvin hass[1576]:   File "/usr/lib/python3.6/asyncio/unix_events.py", line 65, in close
Nov 05 19:17:59 Marvin hass[1576]:   File "/usr/lib/python3.6/asyncio/unix_events.py", line 146, in remove_signal_handler
Nov 05 19:17:59 Marvin hass[1576]:   File "/usr/lib/python3.6/signal.py", line 47, in signal
Nov 05 19:17:59 Marvin hass[1576]: TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object
Nov 05 19:17:59 Marvin systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Nov 05 19:17:59 Marvin systemd[1]: [email protected]: Unit entered failed state.
Nov 05 19:17:59 Marvin systemd[1]: [email protected]: Failed with result 'exit-code'.

Depending what is in your [email protected], but this normally starts HA as the name of the user after the @ (in this case tiszavolgyi).

You would normally need to start the service as home-assistant@homeassistant to get the correct permissions to write to /home/homeassistant/.homeassistant