Jump to content

[Docker] Plex Media Server: Can't install Plug-ins from Windows


MuppetRules

Recommended Posts

Cache Drive:

250 SSD

 

File system:

Btrfs

 

Dockers Tested:

needo & limetech

 

Issue:

Essentially, I'm unable to install plug-ins manually from a Windows workstation because of restrictive permissions:

 

Directories: rwxr-xr-x 1 999 users

Files: -rw-r--r-- 1 999 users

 

I've tried needo and the official Plex Media Server from limetech, and both have this issue i.e., all the directories are 755 and all the files are 644. I can install Plex channels but to install any user supported plug-ins I have to SSH into the unRAID box and then do a wget.

 

Question: Am I doing something wrong here or is this by design?

Link to comment

Thanks scottc.

 

gfjardim inserts "chown -R nobody:users /home" in all his install scripts while I haven't found something similar in needo or official limetech install scripts. Might be a good idea to include this.

 

# Configure user nobody to match unRAID's settings
export DEBIAN_FRONTEND="noninteractive"
usermod -u 99 nobody
usermod -g 100 nobody
usermod -d /home nobody
chown -R nobody:users /home

 

gfjardim: https://github.com/gfjardim/docker-containers/blob/master/nzbget/install.sh

Link to comment

Thanks scottc.

 

gfjardim inserts "chown -R nobody:users /home" in all his install scripts while I haven't found something similar in needo or official limetech install scripts. Might be a good idea to include this.

 

# Configure user nobody to match unRAID's settings
export DEBIAN_FRONTEND="noninteractive"
usermod -u 99 nobody
usermod -g 100 nobody
usermod -d /home nobody
chown -R nobody:users /home

 

gfjardim: https://github.com/gfjardim/docker-containers/blob/master/nzbget/install.sh

 

 

I noticed this a couple days ago, the user should be 99 instead of 999.  Also, I thought about how this will affect other existing users coming from needo or the current limetech plex container where all the folders/files are created by user 999 and using 755/644 permissions... so I wrote this block of code to 'upgrade' the user/permissions that'll execute in the container before starting up Plex:

 

umask 000
# Fix permission if user is 999
if [ -d /config/Library ]; then
if [ "$(stat -c "%u" /config/Library/)" -eq "999" ]; then
	echo "Fixing Plex Library permissions"
	chown -R 99:100 /config/Library/
	chmod -R 777 /config/Library/
fi
fi

 

I didn't push this out yet because I haven't tested the various scenarios yet. 

Link to comment

in the install.sh file there's this

 

# Fix a Debianism of plex's uid being 101
usermod -u 999 plex && usermod -g 100 plex

 

is that supposed to be

 

# Fix a Debianism of plex's uid being 101
usermod -u 99 plex && usermod -g 100 plex

?

 

Bingo, that's part of the fix along with the permission upgrade block.  Here's the pending fix in my staging tree:

https://github.com/limetech/dockerapp-plex/blob/staging/install.sh

 

Link to comment

in the install.sh file there's this

 

# Fix a Debianism of plex's uid being 101
usermod -u 999 plex && usermod -g 100 plex

 

is that supposed to be

 

# Fix a Debianism of plex's uid being 101
usermod -u 99 plex && usermod -g 100 plex

?

 

Bingo, that's part of the fix along with the permission upgrade block.  Here's the pending fix in my staging tree:

https://github.com/limetech/dockerapp-plex/blob/staging/install.sh

 

cool, i noticed you use gdebi, i use that sometimes when compiling in one container for use in another, in conjunction with fpm packager because it will read a dependency list.

Link to comment

in the install.sh file there's this

 

# Fix a Debianism of plex's uid being 101
usermod -u 999 plex && usermod -g 100 plex

 

is that supposed to be

 

# Fix a Debianism of plex's uid being 101
usermod -u 99 plex && usermod -g 100 plex

?

 

Bingo, that's part of the fix along with the permission upgrade block.  Here's the pending fix in my staging tree:

https://github.com/limetech/dockerapp-plex/blob/staging/install.sh

 

cool, i noticed you use gdebi, i use that sometimes when compiling in one container for use in another, in conjunction with fpm packager because it will read a dependency list.

 

Neat.  If you don't use or have gdebi, one trick you can do is:

 

dpkg -i package_name.deb
apt-get -f install

 

The apt-get line will install any dependencies needed by package_name.deb (just like gdebi would)

Link to comment

Cache Drive:

250 SSD

 

File system:

Btrfs

 

Dockers Tested:

needo & limetech

 

Issue:

Essentially, I'm unable to install plug-ins manually from a Windows workstation because of restrictive permissions:

 

Directories: rwxr-xr-x 1 999 users

Files: -rw-r--r-- 1 999 users

 

I've tried needo and the official Plex Media Server from limetech, and both have this issue i.e., all the directories are 755 and all the files are 644. I can install Plex channels but to install any user supported plug-ins I have to SSH into the unRAID box and then do a wget.

 

Question: Am I doing something wrong here or is this by design?

 

Thanks for reporting this, the permissions should be corrected after you 'check for updates' and update Limetech's Plex Docker App.  I just pushed the updated version out.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...