Issue writing to folder
buzurk26 opened this issue · comments
Hi, Awesome project, cant wait to get it running with my new dr900x
I have added it on my synology NAS, executed the docker-compose as root but I get the following error in the container logs
My Compose file
docker run -d --restart unless-stopped \ -v /volume1/docker/blackvue-sync:/recordings \ -e ADDRESS=172.xx.xx.xx \ -e PUID=$(id -u) \ -e PGID=$(id -g) \ -e TZ="Australia/Sydney" \ -e KEEP=52w \ --name Blackvue-Sync \ acolomba/blackvuesync
Not sure if you figured this out yet, but I ran into the same error message when first getting things setup on my Synology.
I did not use a docker compose file at all -- just found this project in the registry using the Synology UI. So then I ssh-ed into the NAS as my normal user (which has RW access to the /BlackVue share), ran id
to get that account's uid and gid, and then set those in environment variables in the container's settings:
[drakkhen@mbp ~] % ssh drakkhen@synology.local id
drakkhen@synology.local's password:
Could not chdir to home directory /var/services/homes/drakkhen: No such file or directory
uid=1026(drakkhen) gid=100(users) groups=100(users),101(administrators)
After that it just started working perfectly! My videos sync to the NAS's /BlackVue/XC40 share when the car's parked in the driveway.