Home Assistant Supervised (previously known as Hass.io) on Synology DSM as native package (not supported or working atm)

I added a folder hass.io/audio/external. This allowed me to start the homeassistant docker manually. The hassio_audio container continues to recycle.

Excerpt from supervisor log:

2020-03-03 17:01:51	stderr	e[32m20-03-03 17:01:51 INFO (SyncWorker_0) [supervisor.docker.audio] Start Audio homeassistant/amd64-hassio-audio with version 5 - 172.30.32.4e[0m
2020-03-03 17:01:47	stderr	e[32m20-03-03 17:01:47 INFO (SyncWorker_8) [supervisor.docker.dns] Start DNS homeassistant/amd64-hassio-dns with version 1 - 172.30.32.3e[0m
2020-03-03 17:01:38	stderr	e[32m20-03-03 17:01:38 INFO (MainThread) [supervisor.misc.forwarder] Start DNS port forwarding to 172.30.32.3e[0m
2020-03-03 17:01:38	stderr	e[32m20-03-03 17:01:38 INFO (MainThread) [supervisor.dns] Start CoreDNS plugine[0m
2020-03-03 17:01:38	stderr	e[32m20-03-03 17:01:38 INFO (SyncWorker_0) [supervisor.docker.interface] Clean hassio_audio applicatione[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (MainThread) [supervisor.audio] Start Audio plugine[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (SyncWorker_3) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-dns with version 1e[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (SyncWorker_2) [supervisor.docker.interface] Attach to homeassistant/amd64-hassio-audio with version 5e[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (MainThread) [supervisor.host.apparmor] AppArmor is not enabled on hoste[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}e[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (MainThread) [supervisor.host.sound] Update PulseAudio informatione[0m
2020-03-03 17:01:37	stderr	e[33m20-03-03 17:01:37 WARNING (MainThread) [supervisor.dbus.nmi_dns] No DnsManager support on the host. Local DNS functions have been disabled.e[0m
2020-03-03 17:01:37	stderr	e[33m20-03-03 17:01:37 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.e[0m
2020-03-03 17:01:37	stderr	e[33m20-03-03 17:01:37 WARNING (MainThread) [supervisor.dbus.hostname] No hostname support on the host. Hostname functions have been disabled.e[0m
2020-03-03 17:01:37	stderr	e[33m20-03-03 17:01:37 WARNING (MainThread) [supervisor.dbus.systemd] No systemd support on the host. Host control has been disabled.e[0m
2020-03-03 17:01:37	stderr	e[32m20-03-03 17:01:37 INFO (MainThread) [__main__] Setup Supervisore[0m
2020-03-03 17:01:35	stderr	e[32m20-03-03 17:01:35 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connect Supervisor to hassio Networke[0m
2020-03-03 17:01:35	stderr	e[32m20-03-03 17:01:35 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/amd64-hassio-supervisor with version 207e[0m
2020-03-03 17:01:35	stderr	e[32m20-03-03 17:01:35 INFO (MainThread) [__main__] Initialize Supervisor setupe[0m
2020-03-03 17:01:29	stdout	[services.d] done.
2020-03-03 17:01:29	stdout	[services.d] starting services
2020-03-03 17:01:29	stdout	[cont-init.d] done.
2020-03-03 17:01:29	stdout	[cont-init.d] udev.sh: exited 0.
2020-03-03 17:01:28	stderr	[17:01:28] INFO: e[32mUpdate udev informationse[0m
2020-03-03 17:01:27	stdout	[cont-init.d] udev.sh: executing... 
2020-03-03 17:01:27	stdout	[cont-init.d] executing container initialization scripts...
2020-03-03 17:01:27	stdout	[fix-attrs.d] done.
2020-03-03 17:01:27	stdout	[fix-attrs.d] applying ownership & permissions fixes...
2020-03-03 17:01:27	stdout	[s6-init] ensuring user provided files have correct perms...exited 0.
2020-03-03 17:01:27	stdout	[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

hassio_audio log:

2020-03-03 20:12:37	stdout	[s6-finish] sending all processes the KILL signal and exiting.
2020-03-03 20:12:34	stdout	[s6-finish] sending all processes the TERM signal.
2020-03-03 20:12:33	stdout	[s6-finish] waiting for services.
2020-03-03 20:12:33	stdout	[cont-finish.d] done.
2020-03-03 20:12:33	stdout	[cont-finish.d] executing container finish scripts...
2020-03-03 20:12:33	stdout	[cont-init.d] adjust-audio-group.sh: exited 1.
2020-03-03 20:12:32	stdout	[cont-init.d] adjust-audio-group.sh: executing... 
2020-03-03 20:12:32	stdout	[cont-init.d] executing container initialization scripts...
2020-03-03 20:12:32	stdout	[fix-attrs.d] done.
2020-03-03 20:12:32	stdout	[fix-attrs.d] persistent-data: exited 0.
2020-03-03 20:12:32	stdout	[fix-attrs.d] persistent-data: applying... 
2020-03-03 20:12:32	stdout	[fix-attrs.d] applying ownership & permissions fixes...
2020-03-03 20:12:32	stdout	[s6-init] ensuring user provided files have correct perms...exited 0.
2020-03-03 20:12:31	stdout	[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

1 Like

It is a problem with supervisor 207/hassio_audio version 7.
There is already a fix for this in hassio_audio version 8.
@fredrike it is discussed on discord in the dev_supervisor channel. Please have a look.

Adding a new folder external in hass.io/audio/ helps to start HA Core manually again.

But hassio_audio keeps “bootlooping”

1 Like

https://version.home-assistant.io/stable.json still reports “207” as stable.

Very strange, I upgraded from 106.0 -> 106.4 and that worked fine…

The workaround is to create empty folder ‘external’ inside /(hassio_folder)/audio/external

2 Likes

I already had the “external” and “internal” folders hass.io/audio folder. Anything other suggestion to get it working again?

same problem.

Thanks , and wonderful answer :slight_smile:

Please note: Running Home Assistant (previously known as Hass.io) on a Synology NAS is not supported by us.

So no idea…

See here for a possible solution: Hassio fails to start after upgrade to 106.5

In short: there is a script running haywire when the host does not have the group audio (which is the case for most NAS systems, but not for “standard” Linux devices). Adding that group fixes the issue.

I upgraded from 105 to 106.5 and had issue to start home assistant.
Creating group audio did solve bootloop issue in my installation.

@vasjek - can you share your groups.yaml? I can’t get it working

@fredrike maybe you can add this to the package: synogroup --add audio

as reference: https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_Administration_CLI_Guide.pdf

1 Like

I think Fizzbblizz and vasjek are talking about the groups of DSM. Please correct me if I’m wrong.

PSA: to fix the latest supervisor update do this

Step 1: create a new folder named “external” in your “hass.io/audio” folder
Step 2a: create group “audio” with no user via DSM
or
Step 2b: create group “audio” via ssh with synogroup --add audio

1 Like

Step 1 worked for me. HA is working fine.
But the docker container Hassio-Audio:8 is bootlooping every 20sec.
Adding the audio group to dsm didn‘t help so far.
Does anybody know what this is for?

Yes, DSM (or better Unix groups in the underlying Linux system).

Use ssh to get to a shell in your DSM, then do a cat /etc/group and make sure the audio group is listed there. If it is not, you did not create the group. On my DSM, the Unix group was created by using the control panel and adding a group.

Hi Fredrik!

I did the following actions, and ended up with some problems:

I got my synology ds 218+ the other day, and quickly set it up with docker, and home assistant, as i realized this is not what i wanted, and Hassio is, i uninstalled it, and set up Hass.io through your package!

altough, DSM package manager says hass.io Beta is running, i cant access the site throgh IP:8123, i am getting: ERR_CONNECTION_REFUSED
Also in DSM notification panel, im getting this message a few minutes after rebooting the NAS saying Hassio_DNS har stopped working.

Checking the docker containers after the hassio install, i see “Homeassistant” is not running, and cant be started, Hassio audio is stuck in a reboot-loop. And Hassio DNS also loops.

Any ideas?

Currently uninstalling everything on the NAS except my UniFI cloud key to start over!

Hm i suspect my initial hass.io install was corrupted, due to the repository being very unstable.

Trying to re-install the package again now, im getting a message in the package manager saying the package is missing from the repo.

Trying to access the URL manually, im getting a 502 bad gateway static cloudflare error rmessage.