Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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?

file / folder permissions issue.  Just do the following command

 

chown -R nobody.users /mnt/cache/path/to/plex  <- change to the actual path to where you mounted /config in the docker setup

  • Author

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

Have forwarded a note to Eric to look into this for us.

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

?

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. 

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

 

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.

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)

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.

  • Author
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.

 

Did a fresh install and its all working. Thank you for looking into this.

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.