Yes, install will overwrite it. Try edit it after install, then execute
systemctl stop hassio-supervisor.service
systemctl start hassio-supervisor.service
See if there are any error. After that try docker ps
to see if container is running.
Yes, install will overwrite it. Try edit it after install, then execute
systemctl stop hassio-supervisor.service
systemctl start hassio-supervisor.service
See if there are any error. After that try docker ps
to see if container is running.
CoreELEC (official): 19.5-Matrix_rc2 (Amlogic-ng.arm)
-sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Coreelec:~ # systemctl stop hassio-supervisor.service
Warning: The unit file, source configuration file or drop-ins of hassio-supervis or.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Coreelec:~ # systemctl daemon-reload
Coreelec:~ # systemctl stop hassio-supervisor.service
Coreelec:~ # systemctl start hassio-supervisor.service
Coreelec:~ # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5f8574e97862 zyclonite/zerotier "entrypoint.sh -U" 8 days ago Up 13 months 9993-zerotier-one
Coreelec:~ # journalctrl -f
-sh: journalctrl: command not found
Coreelec:~ # journalctl -f
-- Journal begins at Fri 2021-08-06 20:13:19 IST. --
Sep 21 18:28:36 Coreelec systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=127/n/a
Sep 21 18:28:36 Coreelec systemd[1]: hassio-supervisor.service: Failed with result ' exit-code'.
Sep 21 18:28:41 Coreelec systemd[1]: hassio-supervisor.service: Scheduled restart jo b, restart counter is at 23.
Sep 21 18:28:41 Coreelec systemd[1]: Stopped Hass.io supervisor.
Sep 21 18:28:41 Coreelec systemd[1]: Starting Hass.io supervisor...
Sep 21 18:28:41 Coreelec docker[5785]: Error response from daemon: No such container : hassio_supervisor
Sep 21 18:28:41 Coreelec systemd[1]: Started Hass.io supervisor.
Sep 21 18:28:41 Coreelec hassio-supervisor[5797]: /storage/.opt/sbin/hassio-supervis or: line 13: docker: command not found
Sep 21 18:28:41 Coreelec systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=127/n/a
Sep 21 18:28:41 Coreelec systemd[1]: hassio-supervisor.service: Failed with result ' exit-code'.
Sep 21 18:28:42 Coreelec pulseaudio[3287]: W: [pulseaudio] sap.c: sendmsg() failed: Connection refused
Sep 21 18:28:46 Coreelec systemd[1]: hassio-supervisor.service: Scheduled restart job, restart counter is at 24.
Sep 21 18:28:46 Coreelec systemd[1]: Stopped Hass.io supervisor.
Sep 21 18:28:46 Coreelec systemd[1]: Starting Hass.io supervisor...
Sep 21 18:28:46 Coreelec docker[5800]: Error response from daemon: No such container: hassio_supervisor
Sep 21 18:28:46 Coreelec systemd[1]: Started Hass.io supervisor.
Sep 21 18:28:46 Coreelec hassio-supervisor[5811]: /storage/.opt/sbin/hassio-supervisor: line 13: docker: command not found
Sep 21 18:28:46 Coreelec systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=127/n/a
Sep 21 18:28:46 Coreelec systemd[1]: hassio-supervisor.service: Failed with result 'exit-code'.
Sep 21 18:28:51 Coreelec systemd[1]: hassio-supervisor.service: Scheduled restart job, restart counter is at 25.
Sep 21 18:28:51 Coreelec systemd[1]: Stopped Hass.io supervisor.
Sep 21 18:28:51 Coreelec systemd[1]: Starting Hass.io supervisor...
Sep 21 18:28:51 Coreelec docker[5816]: Error response from daemon: No such container: hassio_supervisor
Sep 21 18:28:51 Coreelec systemd[1]: Started Hass.io supervisor.
Sep 21 18:28:52 Coreelec hassio-supervisor[5828]: /storage/.opt/sbin/hassio-supervisor: line 13: docker: command not found
Sep 21 18:28:52 Coreelec systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=127/n/a
Sep 21 18:28:52 Coreelec systemd[1]: hassio-supervisor.service: Failed with result 'exit-code'.
Sep 21 18:28:52 Coreelec pulseaudio[3287]: W: [pulseaudio] sap.c: sendmsg() failed: Connection refused
Sep 21 18:28:57 Coreelec systemd[1]: hassio-supervisor.service: Scheduled restart job, restart counter is at 26.
Sep 21 18:28:57 Coreelec systemd[1]: Stopped Hass.io supervisor.
Sep 21 18:28:57 Coreelec systemd[1]: Starting Hass.io supervisor...
Sep 21 18:28:57 Coreelec docker[5839]: Error response from daemon: No such container: hassio_supervisor
Sep 21 18:28:57 Coreelec systemd[1]: Started Hass.io supervisor.
Sep 21 18:28:57 Coreelec hassio-supervisor[5850]: /storage/.opt/sbin/hassio-supervisor: line 13: docker: command not found
Sep 21 18:28:57 Coreelec systemd[1]: hassio-supervisor.service: Main process exited, code=exited, status=127/n/a
Sep 21 18:28:57 Coreelec systemd[1]: hassio-supervisor.service: Failed with result 'exit-code'.
Right command to install:
bash install.sh -m qemuarm-64
Right line for /storage/.config/system.d/hassio-supervisor.service
:
Environment="PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/storage/.kodi/addons/service.system.docker/bin"
Tested on Transpeed x4 (S905X4):
hassio-supervisor.service - Hass.io supervisor
Loaded: loaded (/storage/.config/system.d/hassio-supervisor.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2022-11-19 20:58:59 UTC; 6min ago
Process: 14169 ExecStartPre=/usr/bin/docker stop hassio_supervisor (code=exited, status=0/SUCCESS)
Main PID: 14170 (bash)
Tasks: 11 (limit: 3698)
Memory: 6.6M
CGroup: /system.slice/hassio-supervisor.service
├─14170 bash /storage/.opt/sbin/hassio-supervisor
├─14192 bash /storage/.opt/sbin/hassio-supervisor
└─14193 docker start --attach hassio_supervisor
Complete script to start supervised Home Assistant on CoreELEC (Tested on Transpeed x4 (S905X4)):
https://gist.github.com/Limych/fcd02fefb895c7d981a5534ab99837e7/raw/install.sh
To run it via SSH use this commands:
wget https://gist.github.com/Limych/fcd02fefb895c7d981a5534ab99837e7/raw/install.sh
bash ./install.sh -m qemuarm-64
@Limych : could you share the complete script again? I’m getting a 404 not found…
I am on S905X3 CE 19ng
I am getting a 404 error too. But when I manually browse to
https://gist.github.com/Limych/fcd02fefb895c7d981a5534ab99837e7/raw/
I can see the contents of the script. I tried copying the script to a file manually created called install.sh in storage/downloads
then I cd to the downloads folder,
chmod +x install.sh
then I try manually
bash ./install.sh -m qemuarm-64
but i get the error
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
: invalid optionne 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
./install.sh: line 3: $'\r': command not found
./install.sh: line 53: syntax error near unexpected token `$'in\r''
'/install.sh: line 53: ` case $arg in
type command
dos2unix install.sh
Ok, I did that. It just went to the next line. Then i issued a “bash ./install.sh -m qemuarm-64” again . It gives the error
ln: /opt/bin/docker: File exists
(
Seems you already have entware docker installed. Maybe you should remove it before running script?
Or open you install.sh script and change ln line to have force argument too like
ln -sf .....
removed docker service installed on CE. I dont know what you mean by entware docker.
bash ./install.sh -m qemuarm-64
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 100 14 0 0 19 0 --:--:-- --:--:-- --:--:-- 19
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
./auto-install-docker-coreelec.bash: line 1: 404:: command not found
deleted /opt/bin/docker folder, so that error went away
then installed the auto-install-docker-coreelec.bash maually from GitHub - tamusiunas/docker-coreelec: Docker 20.10 for CoreELEC distro since the link to the same in the install.sh script is not working.
Then the script ran successfully. But the status of the service shows as below -
hassio-supervisor.service - Hass.io supervisor
Loaded: loaded (/storage/.config/system.d/hassio-supervisor.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-01-29 19:44:16 IST; 806ms ago
Process: 13484 ExecStartPre=/storage/.docker/bin/docker stop hassio_supervisor (code=exited, status=0/SUCCESS)
Process: 13489 ExecStart=/storage/.opt/sbin/hassio-supervisor (code=exited, status=100)
Main PID: 13489 (code=exited, status=100)
anyone can offer any help on this subject?
It is very hard to help in general - only with some specific problems.
Can you gave us exact procedure so someone can repeat the process? From clean installed device.
Thanks for your help so far. I think rather than following my poor steps wouldnt it be easier for you to troubleshoot if you tried the steps of the OP (only 2 steps) and if you are successful you could share how you corrected any errors. That would be easier I think.
So heres what I did on a fresh system
this too doesnt work. So i went to the repo and sourced the correct link which is below and edited that into the install.sh script
bash ./install.sh -m qemuarm-64
Below is the result of that
> bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 2873 100 2873 0 0 7136 0 --:--:-- --:--:-- --:--:-- 7146
> bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
>
> DOCKER_URL: https://github.com/tamusiunas/docker-coreelec/releases/download/v20. 10.16/docker_v20.10.16-4-g4d718932c1.m_coreelec_arm64_20220606183323.tar.gz
> Downloading docker. This may take a while.
>
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
> 100 89.4M 100 89.4M 0 0 7583k 0 0:00:12 0:00:12 --:--:-- 10.8M
>
> Installing Docker
>
> storage/
> storage/.config/
> storage/.docker/
> storage/.docker/bin/
> storage/.docker/cli-plugins/
> storage/.docker/data-root/
> storage/.docker/bin/docker-linux-arm64
> storage/.docker/bin/docker-init
> storage/.docker/bin/docker
> storage/.docker/bin/docker-proxy
> storage/.docker/bin/rootlesskit-docker-proxy
> storage/.docker/bin/dockerd-rootless-setuptool.sh
> storage/.docker/bin/ctr
> storage/.docker/bin/containerd
> storage/.docker/bin/rootlesskit
> storage/.docker/bin/dockerd-rootless.sh
> storage/.docker/bin/runc
> storage/.docker/bin/containerd-shim-runc-v2
> storage/.docker/bin/vpnkit
> storage/.docker/bin/dockerd
> storage/.docker/bin/docker-compose
> storage/.docker/bin/containerd-shim
> storage/.config/docker/
> storage/.config/system.d/
> storage/.config/system.d/service.system.docker.service
> storage/.config/system.d/docker.service
> storage/.config/system.d/multi-user.target.wants/
> storage/.config/system.d/multi-user.target.wants/service.system.docker.service
> storage/.config/docker/daemon.json
>
> Configuring dockerd service
> This may take a while
>
>
> Configuring PATH
>
> docker PATH added to /storage/.profile
>
> Installation is almost finished. You have to reboot the system now to finish it.
> For more information about the package visit https://github.com/tamusiunas/docke r-coreelec
and the following showed on the screen
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[info] Restarting docker service
PING checkonline.home-assistant.io (172.67.68.90): 56 data bytes
64 bytes from 172.67.68.90: seq=0 ttl=53 time=4.601 ms
--- checkonline.home-assistant.io ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 4.601/4.601/4.601 ms
[info] Install supervisor Docker container
[info] Install supervisor startup scripts
[info] Start Home Assistant Supervised
[info] Installing the 'ha' cli
[info] Within a few minutes you will be able to reach Home Assistant at:
[info] http://homeassistant.local:8123 or using the IP address of your
[info] machine: http://192.168.1.117:8123
But there is no home assistant web interface.
and docker status shows as
● hassio-supervisor.service - Hass.io supervisor
Loaded: loaded (/storage/.config/system.d/hassio-supervisor.service; enable
Active: activating (auto-restart) (Result: exit-code) since Mon 2023-01-30
Process: 23862 ExecStartPre=/storage/.docker/bin/docker stop hassio_supervis
Process: 23870 ExecStart=/storage/.opt/sbin/hassio-supervisor (code=exited,
Main PID: 23870 (code=exited, status=100)
I looked at this before and seemed a separate old box running hassio is probably the quickest and easiest solution. Then you can also dedicate it to more server side things without ruining a media player experience. Coreelec can run a lot in the background but controlling you’re smart home kind of warrants an extra box no?
I’m running floor heating from it for 2 seasons now. If device is stable it can do the job just fine.
Current instructions tested on
CoreELEC (official): 20.1-Nexus_nightly_20230205 (Amlogic-ng.arm)
Machine model: Beelink
CoreELEC dt-id: g12b_s922x_beelink_gt_king
docker version 20.10.16 or 22.06.0 beta0
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
It’s a shame that you can’t install add-ons to HA. So unusable for me. But otherwise great, and finally a functional guide.
I am getting this error
So apparently, if HA is installed in Docker, it doesn’t work, what I googled. So it probably has no solution, too bad.
Actually there is a simple solution
echo '{"ignore_conditions": ["healthy"]}' >/var/media/MEDIA/HomeAssistant/jobs.json
systemctl restart hassio-supervisor.service
Don’t know if the warning is serious or not?
About | FAQ | Terms of Service | Privacy Policy | Legal Notice