Permission Issue Starting HA on Synology

So i followed the guide here to install Ha on Synology Nas. I got pass the creation of the hass-daemon file and did the rest of the settings in the guide. Now i got to the part to start the HA service with the command
“sudo /volume1/homeassistant/hass-daemon start”

that returns

Starting Home Assistant …
/bin/sh: /volume1/homeassistant/home-assistant.log: Permission denied

what did i miss to not get the permission to start the service ?

I used this guide: https://home-assistant.io/getting-started/installation-synology/

lets see the owner, group memebership and rights on the homeassistant directory.
ls -l /volume1

I’m guessing something went wrong with the command setting the ownership and rights.

drw-rw-r-- 3 homeassistant users 4096 Dec 29 18:45 homeassistant

Is there a home-assistant.log file in the homeassistant directory? If so who are the owner/group and rights on it?

Actually, I ran nto the same issue as described by the OP. The chmod command in the tutorial makes it so, that the config directory (and subdirs) do not get the executable bit set in the permissions. This is required for directories.

I fixed this by issuing the following:
chmod 755 /volume1/homeassistant/
chmod 755 $(find /volume1/homeassistant/homeassistant/ -type d) # was not sure if symlinks get followed; fixes directory permissions recursively
chmod 664 $(find /volume1/homeassistant/homeassistant/ -type f) # fixes file permissions recursively
chmod 777 /volume1/homeassistant/hass-daemon

5 Likes