I’m new to HA and Ubuntu, so please excuse the noobiness. I have HASSIO 0.93.2 running in docker on Ubuntu 18.04 and I’m struggling with folder permissions.
I’m trying to create a camera snapshot and I keep getting the error:
Can’t write ‘/photos/doorbird.jpg’, no access to path!
I’ve tried giving everyone full control to the folder inside the container and added it to the whitelist_external_dirs (although its not external, it is in the config folder).
I just created the folder in /usr/share/hassio/homeassistant using mkdir photos. I removed the whitelist from configuration.yaml because the way I understood it, that is only necessary if you want to include folders that aren’t inside the config folder.
Here is my automation (using the UI):
Action Type: Call Service
Service: camera.snapshot
Service Data:
If photos is in the config folder then try
“filename”: “photos/doorbird.jpg”
If that doesn’t work you may need to whitelist photos folder
or “filename”: “/config/photos/doorbird.jpg” as the config folder is in the root of the Home Assistant container…
@ jwilliams could you please paste your configuration on both, the whitelist and the automation, i’m having the same problem but nothing is working, tried everything, thanks
Thank you! It solved also my problem. I find it weird HA can’t write in its own folder while it is able to modify its config files, log file, zwave config file etc. But well, glad this trick with whitelist worked for me!
Hi Dears,
I have similar problem having the images in location1: usr/share/hassio/share/motioneye
creating a shell_command to move the images from location1 to /config/www/ the script fail with code 127.
Adding usr/share/hassio/share/motioneye in the whitelist_external_dirs report an error in the configuration verification:
‘’‘not a directory @ data[‘whitelist_external_dirs’][0]’’’
any idea on how to access dirs outside /config?
My hassio is installed in docker in ubuntu 19