Skip to content

Instantly share code, notes, and snippets.

@maeneak
Last active November 8, 2024 11:33
Show Gist options
  • Save maeneak/851e883eca7cddd7114f7eaed201ca9d to your computer and use it in GitHub Desktop.
Save maeneak/851e883eca7cddd7114f7eaed201ca9d to your computer and use it in GitHub Desktop.
HASSIO (Home Assistant Supervised) for Synology DSM 7 (Unsupported Installation but allows updates and fully functional)
version: '3'
services:
hassio:
image: homeassistant/amd64-hassio-supervisor
container_name: hassio_supervisor
privileged: true
security_opt:
- seccomp:unconfined
- apparmor:unconfined
environment:
- HOMEASSISTANT_REPOSITORY=homeassistant/qemux86-64-homeassistant
- SUPERVISOR_SHARE=/PATH/TO/FOLDER/A
- SUPERVISOR_NAME=hassio_supervisor
volumes:
- /PATH/TO/FOLDER/A:/data
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/dbus:/var/run/dbus
@maeneak
Copy link
Author

maeneak commented Aug 12, 2021

To refresh installation docker-compose down then docker-compose up --detach.
Supervisor will not remove containers on docker-compose down.
Use:
docker rm $(docker stop $(docker ps --filter name=hassio* -q))
docker rm $(docker stop $(docker ps --filter name=homeassistant -q))

@maeneak
Copy link
Author

maeneak commented Sep 2, 2021

Best to upgrade system by using the method above. This will pull the latest images and avoid any confilcts

@dwl99
Copy link

dwl99 commented Sep 9, 2021

I've managed to install HASSIO using your guide but whenever I try to install any add-ons I get an error message "XXXXX blocked from execution, system is not healthy" which I suspect is due to the obsolete version of Docker that comes bundle with DSM7. IIRC this didn't seem to be an issue in DSM6. Any suggestions?
Thanks

@draftpunk
Copy link

draftpunk commented Sep 9, 2021

I've managed to install HASSIO using your guide but whenever I try to install any add-ons I get an error message "XXXXX blocked from execution, system is not healthy" which I suspect is due to the obsolete version of Docker that comes bundles with DSM7. IIRC this didn't seem to be an issue in DSM6. Any suggestions?
Thanks

I faced the same issue and found the following workaround: home-assistant/supervisor#2288 (comment)

add jobs.json {"ignore_conditions": ["healthy"]} in the hassio folder just above config. This ignores unhealthy conditions

Occasionally the supervisor container will crash for some reason, but overall it is working fine.

@dwl99
Copy link

dwl99 commented Sep 9, 2021

I've managed to install HASSIO using your guide but whenever I try to install any add-ons I get an error message "XXXXX blocked from execution, system is not healthy" which I suspect is due to the obsolete version of Docker that comes bundles with DSM7. IIRC this didn't seem to be an issue in DSM6. Any suggestions?
Thanks

I faced the same issue and found the following workaround: home-assistant/supervisor#2288 (comment)

add jobs.json {"ignore_conditions": ["healthy"]} in the hassio folder just above config. This ignores unhealthy conditions

Occasionally the supervisor container will crash for some reason, but overall it is working fine.

Thanks for your quick reply, that worked perfectly after I rebooted the NAS, a HA restart wasn't sufficient.

@dwl99
Copy link

dwl99 commented Sep 9, 2021

To refresh installation docker-compose down then docker-compose up --detach.
Supervisor will not remove containers on docker-compose down.
Use:
docker rm $(docker stop $(docker ps --filter name=hassio* -q))
docker rm $(docker stop $(docker ps --filter name=homeassistant -q))

Sorry, I'm a bit confused - which of these procedures and in what order should we follow for an upgrade?

@FloMaetschke
Copy link

Sorry, I'm a bit confused - which of these procedures and in what order should we follow for an upgrade?

have you tried:

docker-compose down
docker rm $(docker stop $(docker ps --filter name=hassio* -q))
docker rm $(docker stop $(docker ps --filter name=homeassistant -q))

i also added
docker rm $(docker stop $(docker ps --filter name=addon* -q))
here

docker-compose up --detach

@FloMaetschke
Copy link

FloMaetschke commented Sep 28, 2021 via email

@dwl99
Copy link

dwl99 commented Sep 28, 2021

Thanks - my Home Assistant Core version was outdated but I successfully updated it via the "update" button! I didn't want to risk it with the Supervisor version.

@exigency1
Copy link

Starting hassio_supervisor ... error

ERROR: for hassio_supervisor Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists

ERROR: for hassio Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists
ERROR: Encountered errors while bringing up the project.

Please help. Thank you

@dwl99
Copy link

dwl99 commented Oct 17, 2021

Starting hassio_supervisor ... error

ERROR: for hassio_supervisor Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists

ERROR: for hassio Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists ERROR: Encountered errors while bringing up the project.

Please help. Thank you

You need to create a folder in your NAS, give it the appropriate permissions then edit the script with the path to the folder. For instance, the line in my docker-compose.yaml reads
- SUPERVISOR_SHARE=/volume1/hassio

@exigency1
Copy link

Starting hassio_supervisor ... error
ERROR: for hassio_supervisor Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists
ERROR: for hassio Cannot start service hassio: Bind mount failed: '/PATH/TO/FOLDER/A' does not exists ERROR: Encountered errors while bringing up the project.
Please help. Thank you

You need to create a folder in your NAS, give it the appropriate permissions then edit the script with the path to the folder. For instance, the line in my docker-compose.yaml reads - SUPERVISOR_SHARE=/volume1/hassio

Thanks :-)

@dwl99
Copy link

dwl99 commented Feb 16, 2022

I keep getting error messages about hassio supervisor containers stopping unexpectedly every few minutes. When I looked at the running containers thare are several instances of hassio supervisor. Any idea what's going on?
hassio

@Ivan-L
Copy link

Ivan-L commented May 29, 2022

Note that I added the following to the hassio node under services because I wanted the supervisor container to be automatically restarted if it crashes.

restart: always

So:

services:
    hassio:
        image: homeassistant/amd64-hassio-supervisor
        container_name: hassio_supervisor
        privileged: true
        restart: always
        ....

@zkingmax
Copy link

zkingmax commented Aug 3, 2023

Starting at error
/volume1/hassio$ docker-compose up --detach
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dhassio%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied

Please help, thanks

@aroenai
Copy link

aroenai commented Oct 1, 2023

Use this guide instead: https://mariushosting.com/how-to-install-home-assistant-supervisor-on-your-synology-nas/

Hold on, this guide is asking for donations to download a 34 byte/character jobs.json file taken from an issue in the original project's repository? That's ridiculous to have to pay for a file containing {"ignore_conditions": ["healthy"]}

@deviant77
Copy link

Hold on, this guide is asking for donations to download a 34 byte/character jobs.json file taken from an issue in the original project's repository? That's ridiculous to have to pay for a file containing {"ignore_conditions": ["healthy"]}

It does now, but didn't when I originally posted.

@kelps
Copy link

kelps commented Oct 25, 2023

Hi,
I just tried this install method and also the guide from https://mariushosting.com/how-to-install-home-assistant-supervisor-on-your-synology-nas/, but I'm getting an error when I try to open the Add-ons page.

The page stays blank for a while, then it shows a Troubleshooting page.

image

If I look at the network tab on DevTools, I see the it failed to load "...:8123/api/hassio/app/entrypoint.js" with error 502 (Bad Gateway).

I am running DSM 6.2 on Synology 718+. There are 7 hassio containers running.

image

There seems to be some error regarding the Supervisor...

image

image

Any help would be appreciated.

I want to avoid the VM approach, because it'll use a lot more resources from my NAS.

@Kwiatjk
Copy link

Kwiatjk commented Feb 6, 2024

To refresh installation docker-compose down then docker-compose up --detach. Supervisor will not remove containers on docker-compose down. Use: docker rm $(docker stop $(docker ps --filter name=hassio* -q)) docker rm $(docker stop $(docker ps --filter name=homeassistant -q))

Hi,
If i make it on working system i lost all HA setting ?
Where docker-compose.yaml should be placed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment