Hi everyone,
I am on rapsberry pi 3 and I have used home assistant with this raspberry in the past, but I needed to make a clean install and now it is not working.
With this command , the container restarts all the time:
docker run -d --name="home-assistant" --restart unless-stopped -v /config-hass-config:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
the “docker log” says the following:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/src/homeassistant/homeassistant/__main__.py", line 331, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 281, in main
args = get_arguments()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 64, in get_arguments
import homeassistant.config as config_util
File "/usr/src/homeassistant/homeassistant/config.py", line 19, in <module>
from homeassistant import auth
File "/usr/src/homeassistant/homeassistant/auth/__init__.py", line 18, in <module>
from .mfa_modules import MultiFactorAuthModule, auth_mfa_module_from_config
File "/usr/src/homeassistant/homeassistant/auth/mfa_modules/__init__.py", line 12, in <module>
from homeassistant import data_entry_flow, requirements
File "/usr/src/homeassistant/homeassistant/requirements.py", line 14, in <module>
import homeassistant.util.package as pkg_util
File "/usr/src/homeassistant/homeassistant/util/package.py", line 13, in <module>
import pkg_resources
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 74, in <module>
from pkg_resources.extern import appdirs
ValueError: source code string cannot contain null bytes
[finish] process exit code 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
I have tried with multiple config locations and several container versions and the error is always the same.
Thanks