Installing HA Supervised on unsupported system

Due to lack of availability of R Pi I am exploring the possibility of installing HA supervised on alternate, inexpensive hardware.

On coreelec forums I got help from some folks who successfully helped install it on amlogic tv box running coreelec software. Steps are as below. The only issue is that the addons section never loads after the HA supervisor section is updated from within the HA updates section. Can anyone help with this?

HA Core logs show the error - /os/info return code 500

and supervisor logs shows error -

23-04-03 16:58:04 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-03 16:58:08 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 16:58:08 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 16:58:08 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/os.py", line 66, in info
    ATTR_DATA_DISK: self.sys_os.datadisk.disk_used.id,
AttributeError: 'NoneType' object has no attribute 'id'
23-04-03 16:58:16 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/os.py", line 66, in info
    ATTR_DATA_DISK: self.sys_os.datadisk.disk_used.id,
AttributeError: 'NoneType' object has no attribute 'id'
23-04-03 16:58:48 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-03 16:58:48 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-03 16:58:48 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-04-03 16:58:48 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-04-03 16:58:52 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 16:58:52 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 16:58:52 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/os.py", line 66, in info
    ATTR_DATA_DISK: self.sys_os.datadisk.disk_used.id,
AttributeError: 'NoneType' object has no attribute 'id'
23-04-03 17:00:12 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-03 17:00:12 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-03 17:00:13 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-04-03 17:00:13 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-04-03 17:00:16 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 17:00:16 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-03 17:00:16 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/os.py", line 66, in info
    ATTR_DATA_DISK: self.sys_os.datadisk.disk_used.id,
AttributeError: 'NoneType' object has no attribute 'id'

Installed using steps as below…

installentware
# select No for reboot at the end

systemctl restart entware.service

export PATH=/opt/bin:/opt/sbin:$PATH
opkg install jq

mkdir -p /storage/downloads
cd /storage/downloads

# docker version 20.10.16
wget -O auto-install-docker-coreelec.bash https://raw.githubusercontent.com/tamusiunas/docker-coreelec/4e4a10eff1ac10dd108a7d649eb34801a6b7b207/auto-install-docker-coreelec.bash

# docker version 22.06.0 beta0
#wget -O auto-install-docker-coreelec.bash https://raw.githubusercontent.com/tamusiunas/docker-coreelec/97d314c647a74426b9115ff263e462d477339b55/auto-install-docker-coreelec.bash

bash auto-install-docker-coreelec.bash noshutdown

source /storage/.profile

# very important (without HA doesn't start)
# https://developers.home-assistant.io/blog/2022/05/12/s6-overlay-base-images/
sed -i 's|"init": true,|"init": false,|' /storage/.config/docker/daemon.json

systemctl stop docker.service
rm -fr /var/run/docker*
systemctl start docker.service

wget -O install-supervised-hass-on-coreelec.bash https://gist.githubusercontent.com/Limych/fcd02fefb895c7d981a5534ab99837e7/raw/62314f34e716b297706c5cc93774c00d1129ac83/install-supervised-hass-on-coreelec.bash

# overwrite symbolic link creation
sed -i 's|ln -s |ln -sf |' install-supervised-hass-on-coreelec.bash

bash install-supervised-hass-on-coreelec.bash -d /storage/HomeAssistant

systemctl status hassio-supervisor.service -l --no-pager

# after a minute or two port should be open and Ha web interface available
# but then still need few more minutes to get everything set up
netstat -ant | grep 8123


When HA web interface fully started (can be logged in) the next step is needed for installing addons.

# to enable installing addons (don't know if this is safe or not)
# https://community.home-assistant.io/t/unhealthy-system-reported-on-arch-linux/251430/2
echo '{"ignore_conditions": ["healthy"]}' >/storage/HomeAssistant/jobs.json
systemctl restart hassio-supervisor.service

Honestly, that’s never going to end well. You’re constantly going to have problems as the system detects what you’re doing and objects.

If you want to use that hardware for Home Assistant switch to native Docker (HA Container).

1 Like