jscoys 147 Posted February 2, 2019 Posted February 2, 2019 Hi guys, I need help from Linux guys because I don't understand at all and it gets me upset. Did the big jump, installed all my stuff as containers! Hurray! I was running with the rpm package my Emby server until now and now I can isolate it and easily update it with containers and yml file. I'm on centos 7, everything ran well and smoothly, excepting Emby for the media permission. I installed 3 services (Sonarr, Radarr, Jackett) and using the dockerroot user with the group "storage" to run my containers. I did the migration by stopping my rpm service and using the same directory I had /var/lib/emby so it could do the migration. I first removed libraries (Movies, TV Shows...) so it was able to recreate everything after with the good path. The issue I have is that it can't write in my media folder I mapped with docker. For the config it's fine, but the other one not. I noticed it changed all permissions for /var/lib/emby for deamon user/group. For the media library I can access it well from the Emby app running in docker, but still receiving errors like: 2019-02-02 09:43:08.871 Error ProviderManager: UnauthorizedAccessException - Access to path /medias/TV Shows/Mr. Robot/fanart.jpg is denied. Will retry saving to /config/metadata/library/eb/eba762beee827f0cbe91c337f3bdcdba/backdrop.jpg The other containers have the same uid and gid and write without any issue in this folder. The folder /medias target a folder (And all subfolders) with root as user and storage as group: drwxrwxr-x 2 root storage I tried also to start emby with uid=0 and gid=0 and same thing. It can't write in the media folder! Could you help me please I'm so desperate!
mastrmind11 722 Posted February 2, 2019 Posted February 2, 2019 what is your run command? who owns the TV Shows folder and sub folders? 1
jscoys 147 Posted February 2, 2019 Author Posted February 2, 2019 in my yml file i have: emby: image: emby/embyserver:beta container_name: emby hostname: Emby_Server restart: always network_mode: mybridge ports: - 8096:8096 - 8920:8920 volumes: # In order to the container uses the same date which is in the host, it is necessary to share /etc/localtime file - /etc/localtime:/etc/localtime:ro - /var/lib/emby:/config - /mnt/media_sharing:/medias devices: - "/dev/dri/renderD128" environment: # The PGID and PUID values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended). - PUID=996 - PGID=1001 - TZ=America/Toronto - GIDLIST=39 the owner of /mnt/media_sharing is root and the group is storage. on my system 996 is my dockerroot user, whi is part of storage (1001)
mastrmind11 722 Posted February 2, 2019 Posted February 2, 2019 how about the answer to question #2? 1
jscoys 147 Posted February 2, 2019 Author Posted February 2, 2019 (edited) how about the answer to question #2?The same, I checked and everything has the same root/storage permissions... all subdirs and Files! That’s why the other containers (Sonarr, Radarr) write in it without any issue... Sent from my iPhone using Tapatalk Edited February 2, 2019 by jscoys
mastrmind11 722 Posted February 2, 2019 Posted February 2, 2019 hmm, that's pretty odd. what happens if you shell into your emby container and try to touch a file in the mount?
jscoys 147 Posted February 2, 2019 Author Posted February 2, 2019 Hum an other specificity of Emby container can't go in the terminal: docker exec -i -t b0ff2a9da45d /bin/bash rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory" Do you have an idea of going into the running container? Thx.
jscoys 147 Posted February 2, 2019 Author Posted February 2, 2019 Ok a lead I took the exact thing from the docker hub and run it with docker only (No docker-compose) and it works! docker run -d \ --volume /var/lib/emby:/config \ --volume /mnt/media_sharing:/medias \ --device /dev/dri/renderD128 \ --publish 8096:8096 \ --publish 8920:8920 \ --env UID=0 \ --env GID=0 \ --env GIDLIST=39 \ emby/embyserver:beta I will manage to find a way to make it work with docker-compose. 1
jscoys 147 Posted February 2, 2019 Author Posted February 2, 2019 So for people who had the same issue, it's basically typo here... where everyone's using params "PUID" and "PGID" Emby is using "UID" and "GID"... So I replaced the two params and then it worked well! It's my fault, on the docker hub it's well written... Thx for your help! At least it's working well now! Made my day!
Stlk filmes 1 Posted November 10, 2019 Posted November 10, 2019 Good morning, see in this photo that the disk is mounted, and in the terminal all the commands I execute do not change anything, and why is that (d ????????) in the team folder and gdrive If you can help thank you, because of this I can not put the movies in the emby library
Luke 42077 Posted November 10, 2019 Posted November 10, 2019 Good morning, see in this photo that the disk is mounted, and in the terminal all the commands I execute do not change anything, and why is that (d ????????) in the team folder and gdrive If you can help thank you, because of this I can not put the movies in the emby library Duplicate posting: https://emby.media/community/index.php?/topic/32218-file-permissions-guide-for-new-linux-users/&do=findComment&comment=805020
Thiago Moreira 0 Posted August 30, 2020 Posted August 30, 2020 On 2/2/2019 at 8:02 PM, jscoys said: Ok a lead I took the exact thing from the docker hub and run it with docker only (No docker-compose) and it works! docker run -d \ --volume /var/lib/emby:/config \ --volume /mnt/media_sharing:/medias \ --device /dev/dri/renderD128 \ --publish 8096:8096 \ --publish 8920:8920 \ --env UID=0 \ --env GID=0 \ --env GIDLIST=39 \ emby/embyserver:beta I will manage to find a way to make it work with docker-compose. Thank you! This works for me as well. This information should be in the docker hub doc, since there's a lot of forum threads about this subject.
Luke 42077 Posted August 31, 2020 Posted August 31, 2020 8 hours ago, Thiago Moreira said: Thank you! This works for me as well. This information should be in the docker hub doc, since there's a lot of forum threads about this subject. Hi, what do you feel is missing from our instructions? https://emby.media/docker-server.html
Stlk filmes 1 Posted September 2, 2020 Posted September 2, 2020 Good morning, I was able to create the virtual disk and enable it on emby if someone just needs to talk!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now