damianxd / homebridge-vera

Apache License 2.0
50 stars 38 forks source link

Permission denied on oznu homebridge docker on synology #162

Open mikefoley opened 6 years ago

mikefoley commented 6 years ago

Hi, I'm getting the following error when trying to start Oznu's Homebridge on a Synology.

[2018-3-28 23:18:58] [Vera] Initializing Vera platform...
Error: EACCES: permission denied, mkdir '/root/.veralink'

The only way around it is to create a new terminal and run "chmod -R 755 /root/.veralink/ Unfortunately, if the Docker instance reboots for any reason I have to manually fix this.

Any clues on how to address this? I have tried adding the chmod command to startup.sh and that succeeds but when the plugin runs the error is still there.

I also tried to remove the directory when startup.sh is run so that the plugin can create the directory. I still get the error where it doesn't have permissions to create /root/.veralink. If I log into another shell/terminal and run my chmod command then Homebridge starts up.

Help?

Sweetgenius19 commented 4 years ago

Did you ever figure out a fix for this? I have the exact same problem. Thanks