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.

Plex Media Server

Featured Replies

  • Author

I think I got this problem when I had no wright permissions on the tmp folder.

 

But I think I check that with the plugin.

  • Replies 1.7k
  • Views 411.9k
  • Created
  • Last Reply

your plugin probably needs to create a folder inside the tmp folder and give thatread/write permission for the particular user.

 

Changing permissions on the entire temp folder is not a good idea.

 

 

NOTE: I have no idea what your plugin does, just saying.

  • Author

I only change owners.

but not on the original tmp folder

if  [ $(readlink -f $PLEX_TMPDIR) != "/tmp" ] && [ "$(stat -c %U $PLEX_TMPDIR)"  != "$RUNAS" ]; then
logger -t plex-rc.plex "Plex Media Server: changing owner of $PLEX_TMPDIR to $RUNAS"
chown -R $RUNAS:users $PLEX_TMPDIR
fi

 

Solved.  ffmpeg would not start as it couldn't find libcurl.so.4.  Added /usr/local/plex to /etc/ld.so.conf, reloaded config, restarted plex, and all is well.

 

I also note just a few posts above that the same problem is reported and the solution was adding a line to the go script to add /usr/local/plex to /etc/ld.so.conf.

 

I would have thought that your plugin installer would either place required library files into a more standard location like /usr/local/lib (which would be loaded automatically) or add the library path to /etc/ld.so.conf.

 

I suppose for those wanting to install plex to the cache drive rather than /usr/local, the option to have a unique path in /etc/ld.so.conf would be nice.

 

Either way, perhaps you can update what the 'final answer' is as I'd like to keep as standard of a config as possible.  I.e. had I not been farting around and followed the "standard" current plug-in installation with recommended settings (i.e. binaries at /usr/local; appdata, library, tmp, etc. at something like /mnt/cache/.appdata), then would I still need 'manually' update /etc/ld.so.conf or are you doing this?

 

 

  • Author

I don't know why you have to update your ld.so.conf.

i don't do that and it works for me.

 

Plex uses its own environment with this LD_LIBRARY_PATH variable.

I export this with the installation path. e.g /usr/local/plex

 

so plex should look for all his librarys and binaries there.

 

 

  • Author

I would have thought that your plugin installer would either place required library files into a more standard location like /usr/local/lib (which would be loaded automatically) or add the library path to /etc/ld.so.conf.

 

I provide only the download and the installation of the original Plex Media Server from the official homepage.

and I create some start and stop scripts thats all this plugin does.

 

The libraries (binaries)  are all there where the "developers" of plex wants them to be.

 

 

 

I don't know why you have to update your ld.so.conf.

i don't do that and it works for me.

 

Plex uses its own environment with this LD_LIBRARY_PATH variable.

I export this with the installation path. e.g /usr/local/plex

 

so plex should look for all his librarys and binaries there.

 

I am currently trying to avoid 'cold booting' my array as it's .... well .... busy.  However, I think I'll do so after a bit more housekeeping.  Could be that ffmpeg was using the ld.so.conf library paths and plex was using the env variable.  I'll post results after a 'clean' reboot later today.

 

 

@spidi, stokkes, et. al.

 

Before I forget, ABSOLUTELY AWESOME WORK FROM ALL OF YOU.  My hat is off and I bow in your general direction.  SABnzb, SB, CP, and now Plex all working PERFECTLY.  My little home media server is close to perfection in no small part due to your efforts.

 

Of course, kudos to Tom as well as without him...

 

 

using beta 5 12a

 

installed the plug and i see it on the web gui..

 

but also get an error

 

Nov 19 18:13:20 Server su[22711]: Successful su for unraid-plex by root

Nov 19 18:13:20 Server su[22711]: + ??? root:unraid-plex

Nov 19 18:13:20 Server plex-rc.plex: starting PMS

Nov 19 18:13:20 Server su[22713]: Successful su for unraid-plex by root

Nov 19 18:13:20 Server su[22713]: + ??? root:unraid-plex

Nov 19 18:13:22 Server plex-rc.plex: Check 1: Plex has NOT started yet, something is maybe wrong!

Nov 19 18:13:24 Server plex-rc.plex: Check 2: Plex has NOT started yet, something is maybe wrong!

Nov 19 18:13:26 Server plex-rc.plex: Check 3: Plex has NOT started yet, something is maybe wrong!

Nov 19 18:13:28 Server plex-rc.plex: Check 4: Plex has NOT started yet, something is maybe wrong!

Nov 19 18:13:30 Server plex-rc.plex: Check 5: Plex has NOT started yet, something is maybe wrong!

 

i don't have a cache drive installed

 

using this as my library /mnt/disk3/.plex/Lib

and this as my temp /mnt/disk3/.plex/tmp

 

any advice on where to go from here? i'm quite the noob with anything that requires touching code

  • Author

first, don't use hidden folders (e.g. /.plex).

second, maybe you have the issue with language export of en_US.UTF-8.

 

open the plugin and search for this line:

(su $RUNAS -s /bin/bash -c "(cd $PLEX_INSTALLDIR; export LD_LIBRARY_PATH=$PLEX_INSTALLDIR; export TMPDIR=$TMP_LINK; export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6; export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; ulimit -s 3000; ./Plex\ Media\ Server) &")&

 

delete the red marked entries and try it again.

Spidi,

 

If you don't recommend using a hidden directory, how do you prevent the mover from moving the library directory on the cache to the protected array?  Install the unraid-mover-exclude-underscore package from unMenu and change paths to "_" instead of "." ?

 

Thanks!

The latest series of unRAID 5.x Beta has the ability to mark what folders on the cache drive are shares and which one's are not.

does something like removeplg exist ?

would like to upgrade from previous version without having to reboot ...

 

 

 

  • Author

@BRiT thats what I mean ;)

 

@sacretagent

 

you don't have to deinstall the old one.

 

Only disable PMS and install the new one with "installplg plex-media-server-0.9.5.1-....plg"

 

but only if you mean an old version of my plugin.

than you have to follow the update instruction of the first post. (with remove old plugin, I mean delete the old pluginfile thats all)

 

 

 

 

 

hey spidi

 

no dice

 

installplg /boot/config/plugins/plex-media-server-noarch-0.9.5.1-ds.plg
installing plugin: plex-media-server-noarch-0.9.5.1-ds

Warning: simplexml_load_file(): I/O warning : failed to load external entity "/boot/config/plugins/plex-media-server-noarch-0.9.5.1-ds.plg" in /usr/local/sbin/installplg on line 13
xml parse error

 

sure it is something stupid :(

bah found it

stoopid things happen when you copy paste and don't verify

the new version has a b in the title

 

it should be

installplg /boot/config/plugins/plex-media-server-noarch-0.9.5.1b-ds.plg

 

;) ;)

  • Author

Ok, I hope it works to your satisfaction.

upgrade went succesfull

 

only worrying part was the time it took to start up again ...

took forever to chown my existing folders to unraid_plex user :P

 

good that i always keep top open to see what is going on ;)

 

little question .... anybody has issues with myplex ?

get "myplex can not connect to your server"

routing should be OK...

 

gonna try to restart my router later on ....  could be that...  just wondering if somebody has it working ?

one question:

Is the server still able to go to (S3) sleep after the install of the PMS? Or will it be always on?

  • Author

@pan!c

 

sorry, can't answer that, my server is always on (24/7)

Ok, is there a stop comand I could add to the S3 sleep script then? To stop PLEX before I send the server to sleep...

  • Author

/etc/rc.d/rc.plex stop

 

it will shutdown plex

only worrying part was the time it took to start up again ...

took forever to chown my existing folders to unraid_plex user :P

 

I didn't chown, left it as nobody and it works great.  Is there a need to change it?

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.