Jump to content

Issues with Docker Permissions.


Recommended Posts

negativzeroe
Posted (edited)

So I began to notice that subtitles were not being downloaded to the media directory as set in emby server. So I investigated and noticed that the user/group nobody/nogroup had a uid/pid of like 65532 or something so I went in and changed it to 1000 like my passed docker uid/pid. But for some reason it's still showing access denied in the logs, pulled latest image, restarted, chmod 775, nothing. Relevant info attached.

EDIT, adding screenshot showing user emby on host is in group with gid 1000.

post-23438-0-00594200-1583309286_thumb.png

post-23438-0-88981700-1583309292_thumb.png

embylog.txt

post-23438-0-27869700-1583309419_thumb.png

Edited by negativzeroe
mastrmind11
Posted

hang on, how have you set up your volumes?  what does your docker run command look like?  you shouldn't even have to check permissions inside the container, permissions will be inherited from the uids you set in your run command.  Check the actual volume permissions outside the container.

  • Like 1
negativzeroe
Posted

docker run \
    --name emby \
    --restart unless-stopped \
    --net=local \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=America/Chicago \
    -p 8096:8096 \
    -p 8920:8920 \
    -v /home/administrator/apps/emby:/config \
    -v /mnt/media/tvshows:/tvshows \
    -v /mnt/media/movies:/movies \
    -v /mnt/media/music:/music \
    -v /mnt/media/.photos:/photos \
    -v /mnt/media/nuggets:/nuggets \
    -v /mnt/media/.adult:/adult \
    -v /home/administrator/apps/nextcloud:/nextcloud \
    -v /mnt:/mnt \
    -v /home/administrator/apps/letsencrypt/keys/letsencrypt:/ssl \
    -d emby/embyserver:latest

 

My volumes are mounted on local drives. My UID for my admin user is 1000.

When I ran docker exec -it emby ls -l , I saw that home was set to nobody:nogroup and that my volumes were 1000:1000. Running docker exec -it emby cat /etc/passwd and group showed that the user nobody was not that uid so I changed it. Based on that logic, the container user's permissions should reflect 1000 which is my host admin.

 

mastrmind11
Posted

docker run \

    --name emby \

    --restart unless-stopped \

    --net=local \

    -e PUID=1000 \

    -e PGID=1000 \

    -e TZ=America/Chicago \

    -p 8096:8096 \

    -p 8920:8920 \

    -v /home/administrator/apps/emby:/config \

    -v /mnt/media/tvshows:/tvshows \

    -v /mnt/media/movies:/movies \

    -v /mnt/media/music:/music \

    -v /mnt/media/.photos:/photos \

    -v /mnt/media/nuggets:/nuggets \

    -v /mnt/media/.adult:/adult \

    -v /home/administrator/apps/nextcloud:/nextcloud \

    -v /mnt:/mnt \

    -v /home/administrator/apps/letsencrypt/keys/letsencrypt:/ssl \

    -d emby/embyserver:latest

 

My volumes are mounted on local drives. My UID for my admin user is 1000.

 

When I ran docker exec -it emby ls -l , I saw that home was set to nobody:nogroup and that my volumes were 1000:1000. Running docker exec -it emby cat /etc/passwd and group showed that the user nobody was not that uid so I changed it. Based on that logic, the container user's permissions should reflect 1000 which is my host admin.

 

ok, but what are your permissions on the folders outside of the container?  ls -l and paste here

negativzeroe
Posted

ok, but what are your permissions on the folders outside of the container?  ls -l and paste here

1000:1000 775

 

 

post-23438-0-22628600-1583339020_thumb.png

mastrmind11
Posted

that's truly bizarre.  and this just started happening, or you just now noticed it happening?

negativzeroe
Posted

I just noticed it, when my wife said the subtitles were off I saw the path. I know it has before but am unsure of when the change took place.

mastrmind11
Posted

have you tried to remove the container and spin another one up?

negativzeroe
Posted (edited)

Yup. Removed the image too. Also just noticed that I cannot delete a movie either.

Edited by negativzeroe
negativzeroe
Posted (edited)

And you're using the official docker? https://hub.docker.com/r/emby/embyserver

Your run command looks like you're using https://hub.docker.com/r/linuxserver/emby instead

 

Not sure if it matters, but I've got no issues running official emby

It's mostly the same syntax but it is official emby. I'll try rewriting it tonight and test.

 

Edit, yeah so I changed PUID and PGID to UID and GID and added GIDLIST and it works now. Mah bahd.

Edited by negativzeroe
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...