acolomba / blackvuesync

Hands-off synchronization of recordings from a BlackVue dashcam with a local directory over a LAN. Standalone script or docker image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
synology-docker

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

In my NAS, the folder is there
owner

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)

Screenshot 2023-01-27 at 3 25 05 PM

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.