Hey commuity,
I am using a nanopi m4v2 (aarch64, Rock64 Chip) with armbian 4.4 installed. Now I tried again to install Home Assistant with the supervisior. At the beginning of the year, I used this guide “Hass.io via Docker”, but the install-script changed. Before, the install-script installed the HA Core and the supervisior docker. Now with the new script it is only installing the supervisior docker.
So I installed the HA core with docker pull:
docker run \
--name=homeassistant \
-v /srv/dev-disk-by-label-DATA/server/homeassistant:/config \
-e TZ=Europe/Berlin \
--restart unless-stopped \
--net=host \
homeassistant/home-assistant:stable
The normal Home Assistant is working fine.
So after this I used the new install script from here with all the requirements:
curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s -- -m qemuarm-64 -d "/srv/dev-disk-by-label-DATA/server/homeassistant"
but the supervisior docker is restarting all the time. The log of the container says:
Supervisior docker log
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main,
return _run_code(code, main_globals, None,,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code,
exec(code, run_globals),
File "/usr/src/supervisor/supervisor/__main__.py", line 40, in <module>,
coresys = loop.run_until_complete(bootstrap.initialize_coresys()),
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete,
File "/usr/src/supervisor/supervisor/bootstrap.py", line 55, in initialize_coresys,
coresys = CoreSys(),
File "/usr/src/supervisor/supervisor/coresys.py", line 61, in __init__,
self._docker: DockerAPI = DockerAPI(),
File "/usr/src/supervisor/supervisor/docker/__init__.py", line 77, in __init__,
self.network: DockerNetwork = DockerNetwork(self.docker),
File "/usr/src/supervisor/supervisor/docker/network.py", line 24, in __init__,
self.network: docker.models.networks.Network = self._get_network(),
File "/usr/src/supervisor/supervisor/docker/network.py", line 84, in _get_network,
return self.docker.networks.create(,
File "/usr/local/lib/python3.8/site-packages/docker/models/networks.py", line 156, in create,
resp = self.client.api.create_network(name, *args, **kwargs),
File "/usr/local/lib/python3.8/site-packages/docker/api/network.py", line 153, in create_network,
return self._result(res, json=True),
File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 267, in _result,
self._raise_for_status(response),
File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 263, in _raise_for_status,
raise create_api_error_from_http_exception(e),
File "/usr/local/lib/python3.8/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception,
raise cls(e, response=response, explanation=explanation),
docker.errors.APIError: 500 Server Error: Internal Server Error ("Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o hassio -j DOCKER: iptables v1.8.2 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain FORWARD,
(exit status 4)"),
20-08-16 12:53:56 ERROR (MainThread) [asyncio] Unclosed client session,
client_session: <aiohttp.client.ClientSession object at 0x7f92014eb0>,
20-08-16 12:53:56 ERROR (MainThread) [asyncio] Unclosed client session,
client_session: <aiohttp.client.ClientSession object at 0x7f920250a0>,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[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] udev.sh: executing... ,
[12:54:07] INFO: Update udev information,
[cont-init.d] udev.sh: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
20-08-16 12:54:09 INFO (MainThread) [__main__] Initialize Supervisor setup,
20-08-16 12:54:09 INFO (MainThread) [supervisor.docker.network] Can't find Supervisor network, create new network,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 261, in _raise_for_status,
response.raise_for_status(),
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status,
raise HTTPError(http_error_msg, response=self),
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.40/networks/create,
,
During handling of the above exception, another exception occurred:,
,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main,
return _run_code(code, main_globals, None,,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code,
exec(code, run_globals),
File "/usr/src/supervisor/supervisor/__main__.py", line 40, in <module>,
coresys = loop.run_until_complete(bootstrap.initialize_coresys()),
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete,
File "/usr/src/supervisor/supervisor/bootstrap.py", line 55, in initialize_coresys,
coresys = CoreSys(),
File "/usr/src/supervisor/supervisor/coresys.py", line 61, in __init__,
self._docker: DockerAPI = DockerAPI(),
File "/usr/src/supervisor/supervisor/docker/__init__.py", line 77, in __init__,
self.network: DockerNetwork = DockerNetwork(self.docker),
File "/usr/src/supervisor/supervisor/docker/network.py", line 24, in __init__,
self.network: docker.models.networks.Network = self._get_network(),
File "/usr/src/supervisor/supervisor/docker/network.py", line 84, in _get_network,
return self.docker.networks.create(,
File "/usr/local/lib/python3.8/site-packages/docker/models/networks.py", line 156, in create,
resp = self.client.api.create_network(name, *args, **kwargs),
File "/usr/local/lib/python3.8/site-packages/docker/api/network.py", line 153, in create_network,
return self._result(res, json=True),
File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 267, in _result,
self._raise_for_status(response),
File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 263, in _raise_for_status,
raise create_api_error_from_http_exception(e),
File "/usr/local/lib/python3.8/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception,
raise cls(e, response=response, explanation=explanation),
docker.errors.APIError: 500 Server Error: Internal Server Error ("Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o hassio -j DOCKER: iptables v1.8.2 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain FORWARD,
(exit status 4)"),
20-08-16 12:54:09 ERROR (MainThread) [asyncio] Unclosed client session,
client_session: <aiohttp.client.ClientSession object at 0x7f8bedff40>,
20-08-16 12:54:09 ERROR (MainThread) [asyncio] Unclosed client session,
client_session: <aiohttp.client.ClientSession object at 0x7f8beef130>,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
As bonus, the homeassistant docker says:
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
I think I’m missing something, but I am not a docker expert
I hope someone got an idea how to fix this, want to move from my rpi3 to the nanopi.
Greetings