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.

Help convince Plex developers to support unRAID

Featured Replies

Any idea?

 

 

Yeah, stop Plex from running and then disconnect the mount before trying to shut down.

  • 2 weeks later...
  • Replies 159
  • Views 45.1k
  • Created
  • Last Reply

... so,

 

***  "OS X and Windows releases are up for download, Linux releases will follow shortly!" ***

 

has just been tweeted today.

 

I am still struggling to get this up and running - I can access the web interface but cannot add stuff. I suppose it has got something to do with the fact that I don't have a cache drive.

 

Any chance that the updated version could work without a cache drive or will I need one no matter what?

 

Edit: unRAID/Slackware now available - http://t.co/E7i42hL

Nice fix to make life easier for unRAID servers.

 

FIX: [Linux] You can now use the environment variable PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR to specify where all of the media server’s user files go (library, plug-ins, logs, etc.)

Hi,

 

I've just upgraded the Slackware version, running on unRAID, and it looks like the structure of the Library has changed between the releases.

 

Previously, the Library contained 3 directories:

root@The-Vault:/mnt/Static/Plex/Library# ls -l
total 0
drwxr-xr-x 3 root root  88 2011-06-13 09:25 Application\ Support/
drwxr-xr-x 3 root root  80 2011-06-13 09:25 Caches/
drwxr-xr-x 3 root root 208 2011-06-13 11:56 Logs/

Within "Application Support", there was a single directory:

root@The-Vault:/mnt/Static/Plex/Library# ls -l Application\ Support/
total 0
drwxr-xr-x 7 root root 208 2011-06-13 09:27 Plex\ Media\ Server/

Now after starting the latest version, it looks like "Plex Media Server" has relocated to the Library root:

root@The-Vault:/mnt/Static/Plex/Library# ls -l
total 0
drwxr-xr-x 3 root root  88 2011-06-13 09:25 Application\ Support/
drwxr-xr-x 3 root root  80 2011-06-13 09:25 Caches/
drwxr-xr-x 3 root root 208 2011-06-13 11:56 Logs/
drwxr-xr-x 5 root root 160 2011-07-28 11:50 Plex\ Media\ Server/

Just a heads up, that you might want to move the "Plex Media Server" directory as part of the upgrade.

 

** UPDATE **

Actually, everything moved to "Plex Media Server", because that's where the Logs are now being written.

 

** More UPDATE **

And after moving to 0.9.3.5 the Cache directory is now there as well:

root@The-Vault:/mnt/Static/Plex/Library/Plex Media Server# ls -l
total 5
drwxr-xr-x  3 root root  80 2011-07-29 07:17 Cache/
drwxr-xr-x  3 root root 256 2011-07-29 07:17 Logs/
drwxr-xr-x  3 root root  80 2011-07-28 13:06 Media/
drwxr-xr-x  4 root root  96 2011-07-28 13:53 Metadata/
drwxr-xr-x  7 root root 200 2011-07-28 11:50 Plug-in\ Support/
drwxr-xr-x 22 root root 776 2011-07-28 11:49 Plug-ins/
-rw-------  1 root root 132 2011-07-29 17:17 Preferences.xml
drwxr-xr-x  2 root root  48 2011-07-28 13:06 Scanners/

 

Cheers.

Time to have another go with the new version :)

Time to have another go with the new version :)

There was another new version released, 0.9.3.5  ;D

 

Cheers.

Nice fix to make life easier for unRAID servers.

 

FIX: [Linux] You can now use the environment variable PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR to specify where all of the media server’s user files go (library, plug-ins, logs, etc.)

 

How do we use this? Can we add PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/Plex/Library in start.sh or go config? With the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, are symlinks still necessary?

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/Plex/Library

In the "go" script.  Then the symlinks are no longer needed.

 

But note that the layout of the Plex library changed between 0.9.2.8 and 0.9.3.4.  See my other post, a couple up.

 

Cheers.

 

So do all we have to do with this release is install in the cache drive and add the environment variable to the go script?

 

EDIT = As soon as I start PMS it add the Library inside the root folder, not on the cache drive.

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/Plex/Library

In the "go" script.  Then the symlinks are no longer needed.

 

But note that the layout of the Plex library changed between 0.9.2.8 and 0.9.3.4.  See my other post, a couple up.

 

Cheers.

 

 

Thanks Eddie. I reinstalled the latest from scratch and I still have the old directory structure of Plex/Library/Application\ Support/

Correction: Eddie was correct about the new folder structure

So do all we have to do with this release is install in the cache drive and add the environment variable to the go script?

 

EDIT = As soon as I start PMS it add the Library inside the root folder, not on the cache drive.

Unless you also re-booted, you also need to issue the command at the prompt.

 

Cheers.

So do all we have to do with this release is install in the cache drive and add the environment variable to the go script?

 

EDIT = As soon as I start PMS it add the Library inside the root folder, not on the cache drive.

Unless you also re-booted, you also need to issue the command at the prompt.

 

Cheers.

I'd rebooted but it didn't make a difference.

I'd rebooted but it didn't make a difference.

Post the relevant Plex lines from "go".

 

And you "are" running 0.9.3.4 or 0.9.3.5 aren't you.   ;D

 

Cheers.

I'd rebooted but it didn't make a difference.

Post the relevant Plex lines from "go".

 

And you "are" running 0.9.3.4 or 0.9.3.5 aren't you.   ;D

 

Cheers.

It works from the command line, just not from the Go script.

 

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.Plex/Library

It works from the command line, just not from the Go script.

 

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.Plex/Library

Strange.  ???

 

Sorry.  Should have said "Post all the relevant Plex lines from "go"".

 

Cheers.

It works from the command line, just not from the Go script.

 

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.Plex/Library

Strange.   ???

 

Sorry.  Should have said "Post all the relevant Plex lines from "go"".

 

Cheers.

 

Thats all I have in there....

Thats all I have in there....

OK, so now I'm officially confused.

 

How are you starting Plex, because you said

It works from the command line, just not from the Go script.

 

** UPDATE **

Are you opening a command window to start if.  If so, then you need the following in the "go" script, instead of the "export":

echo "PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.Plex/Library" >> /etc/profile

The "export" only works if you start Plex from the same script.  For the variable to be set on a new command window, then you need to add it to the profile.

** END UPDATE **

 

Cheers.

OMFG - I just got Plex working on my Samsung TV (LED) - this is so awesome !!!

 

I think it's called a widget or an app - instructions here.

 

:D  I love it !!!  :D

 

untitled.jpg

So do all we have to do with this release is install in the cache drive and add the environment variable to the go script?

 

EDIT = As soon as I start PMS it add the Library inside the root folder, not on the cache drive.

Unless you also re-booted, you also need to issue the command at the prompt.

 

Cheers.

 

This doesn't seem to be working for me either and I also start PMS manually via telnet after a reboot (very rare occurance).

 

I downloaded and installed the update and it seems to be working fine, but after a reboot all the media info is gone. I have individually tried the two lines recommended above in the go script and on the telnet screen both immediately after running start.sh and in a separate session. But i am yet to see a library folder appear in my .Plex folder (cache drive) or for the media info to be saved after a reboot.

 

Any help would be much appreciated as i managed to get the first release working after reading one of the above walkthroughs that included symlink setups.

 

Thanks,

 

Rich

I downloaded and installed the update and it seems to be working fine, but after a reboot all the media info is gone.

Did you read my earlier post about the location of the Library changing with the new version.

 

Unless you move your old library to the new location, it will appear empty, and you'll have to re-add, and scan, your files.

 

Cheers.

where exactly is your Plex Folder (post path)

where exactly is you (copied) library (post path)

I think you've misunderstood.

I did read your earlier post and do realise the libary layout has changed, but i am not trying to move an existing library, i have in fact deleted the previous library folder along with the previous version of PMS and am intentionally starting out with a fresh media scan.

 

My plex folder is located on my cache drive

 

cache/.Plex

 

and as stated above, there is no existing library to copy, so it will be located at its defaulted location (after running an initial scan).

 

My issue is not that a previous library is not appearing, but that after i run an initial scan and then reboot, the scanned media and settings do not appear and adding the aforementioned 'echo' or 'export' commands to either the go script or at the telnet prompt, doesn't seem to be working for me.

 

I hope that clears up the confusion? Any ideas?

Rich, I also have my Plex directory under /mnt/cache/.Plex

 

I modified by start.sh script to include the application support directory.  Not sure this is the best way to do it, but it works for me.

 

#!/bin/sh
#SCRIPTPATH=$(dirname $(python -c 'import sys,os;print os.path.realpath(sys.argv[1])' $0))
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname ${SCRIPT}`
export LD_LIBRARY_PATH="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.Plex/Library
export TMPDIR=/mnt/cache/.tmp
ulimit -s 3000
$SCRIPTPATH/Plex\ Media\ Server

kaiguy, you are a legend!!

 

Thats sorted out my library issues, everything now appears in the .Plex folder and is still there after reboot.

 

Thank you very much  :)

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.