AnalogBill wrote: ↑Sun Jun 26, 2022 8:13 am
after deleting and restarting the container I got the same result. --x------
Could the dvr user be the problem? Originally I created a normal user account, with no password, then modified the /etc/passed file:
dvr
1000
default user for HDHomerunDVR:/var/services/homes/dvr:/bin/false
After changing the UID to 1000 the dvr user no longer appears under Users in the Control Panel.
Apologies - I got distracted with work all last week
I think you're right and there is an issue on synology with UID of 1000
Honestly, my recommendation for Synology at this point is to do a build yourself for now.
Don't be too worried - it is actually really easy and you've already demonstrated more than enough skill.
You can remove the bad user by SSH to the NAS and executing
So first things first - you need to grab the docker sources from
https://github.com/demonrik/HDHR-DVR-docker
See the green button saying 'Code' on the above page
You can either download a zip, copy to NAS and unzip to a temporary folder, or install GIT on the nas and clone using one of the clone options provided.
For simplicity I would say do the ZIP
Once you have the ZIP decompressed to a folder on the NAS
Create a new DVR user and look up it's UID/GID (and make sure that user has access to the volumes we're going to use)
Now you need to edit the 'Dockerfile' in the source
Look for
Code: Select all
# Create default user and group & patch up permissions
RUN addgroup -g 1000 dvr
RUN adduser -HDG dvr -u 1000 dvr
And replace the 1000 for the group dvr with the right GID, and the 1000 for the user with the UID, e.g. for a UID of 2300 and GID of 400
Code: Select all
# Create default user and group & patch up permissions
RUN addgroup -g 400 dvr
RUN adduser -HDG dvr -u 2300 dvr
And save
If I remember rightly on Synology you will need to use 'sudo' for most docker commands
SSH to the NAS and cd to the folder above where the sources are.
First we build the Image
Code: Select all
sudo docker build -t localdvr:latest .
Notice we've named tagged this image differently than demonrik....
This is so you can't mistakenly update
Now we run it
You can run it manually on command line with
Code: Select all
sudo docker run --name dvr --network host -d -v <setpath>:/dvrdata -v <RecordPath>:/dvrrec -e DVRUI_PORT=59080 localdvr:latest
replacing <setpath> and <RecordPath> with the right paths.
Or if happier with something like portainer, make sure to click on 'advanced mode' under 'Image Configuration'
Set the Image to our 'localdvr:latest', and disable 'always pull the image'
And proceed to setup the container.
Remember to now add the new Environment variable DVRUI_PORT too (you add in the Env tab of 'advanced container settings')
The reason you want to use the advanced mode is your don't want portainer going off querying dockerhub - you already have the image.