Plex Media Server plugin for unRAID (v0.3 - Aug 7 2011)


Recommended Posts

  • Replies 197
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hey,

 

Ever since I've installed Plex Server on UnRaid the process will randomly quit. I'm having trouble finding out why.

 

The PMS 'full' Plugin is installed, 0.3.

 

Any help would be appreciated.

 

Aug  9 14:11:21 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug  9 14:11:23 Tower plexunraid: INFO Successfully started Plex.
Aug 10 07:46:50 Tower plexunraid: INFO reading configuration settings
Aug 10 07:46:50 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 07:46:50 Tower plexunraid: INFO Plex binary was found!
Aug 10 07:46:50 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 07:46:50 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 07:46:50 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 07:46:50 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug 10 07:46:52 Tower plexunraid: INFO Successfully started Plex.
Aug 10 09:50:01 Tower plexunraid: INFO reading configuration settings
Aug 10 09:50:01 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 09:50:01 Tower plexunraid: INFO Plex binary was found!
Aug 10 09:50:01 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 09:50:01 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:01 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO reading configuration settings
Aug 10 09:50:02 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 09:50:02 Tower plexunraid: INFO Plex binary was found!
Aug 10 09:50:02 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:02 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug 10 09:50:04 Tower plexunraid: INFO Successfully started Plex.

 

Link to comment

Hey,

 

Ever since I've installed Plex Server on UnRaid the process will randomly quit. I'm having trouble finding out why.

 

The PMS 'full' Plugin is installed, 0.3.

 

Any help would be appreciated.

 

Aug  9 14:11:21 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug  9 14:11:23 Tower plexunraid: INFO Successfully started Plex.
Aug 10 07:46:50 Tower plexunraid: INFO reading configuration settings
Aug 10 07:46:50 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 07:46:50 Tower plexunraid: INFO Plex binary was found!
Aug 10 07:46:50 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 07:46:50 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 07:46:50 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 07:46:50 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 07:46:50 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug 10 07:46:52 Tower plexunraid: INFO Successfully started Plex.
Aug 10 09:50:01 Tower plexunraid: INFO reading configuration settings
Aug 10 09:50:01 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 09:50:01 Tower plexunraid: INFO Plex binary was found!
Aug 10 09:50:01 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 09:50:01 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 09:50:01 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:01 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO reading configuration settings
Aug 10 09:50:02 Tower plexunraid: INFO Verifying that Plex Media Server binary exists in /usr/local/plex/
Aug 10 09:50:02 Tower plexunraid: INFO Plex binary was found!
Aug 10 09:50:02 Tower plexunraid: INFO Attempting to see if Application Support folder exists.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO Attempting to see if Temporary folder exists.
Aug 10 09:50:02 Tower plexunraid: INFO Application Support folder already exists. Attempting to see if it is writeable.
Aug 10 09:50:02 Tower plexunraid: INFO Temporary folder is writeable!
Aug 10 09:50:02 Tower plexunraid: INFO Received input from user to start Plex. Attempting to start Plex.
Aug 10 09:50:04 Tower plexunraid: INFO Successfully started Plex.

 

 

This has been known to happen. I've mentioned it to the Plex developers but it's a difficult issue to track down. What's important to note is that the logging provided by the plugin I've released is ONLY for the plugin and not for Plex itself.

 

You will want to attach your Plex Media Server.log file (make sure to do this right after the crash, before you restart Plex).. I can take a look at it to see if anything weird is happening. I'm trying to track it down myself but it's not something easy to do and definitely won't be fixed in the next few weeks that's for sure.

 

Link to comment

Its annoying becuase you never know when it will happen. Looking at the PMS log all I could see was a reference to killing the process but not why.

 

Aug 10, 2011 09:50:02 [0xb5aa76d0] INFO - Plex Media Server v0.9.3.5-c3e763f
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Opening database session to library, SQLite 3.7.6.2, threadsafe=1
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Listening on port 32400
Aug 10, 2011 09:50:02 [0xb5aa76d0] INFO - Killing orphaned Plug-in: Plex Plug-in [com.plexapp.system] (pid: 20758)
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Machine token is 0a5ec3e834d9ecded2eff3dd6924eb24d48d8b14
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Setting up scheduled updates
Aug 10, 2011 09:50:02 [0xb5aa76d0] INFO - Refreshing paths watched by LibraryUpdateManager
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - LibraryUpdateManager will start watching /mnt/user/movies
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - LibraryUpdateManager will start watching /mnt/user/tv
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Checking for blacklisted version for Framework.bundle (version 2fed6f2)
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Checking for blacklisted version for System.bundle (version 2fed6f2)
Aug 10, 2011 09:50:02 [0xb5aa76d0] DEBUG - Installing plug-in: AllMusic
Aug 10, 2011 09:50:02 [0xb5aa76d0] WARN - Couldn't install AllMusic, the source did not exist.
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - File /mnt/cache/.plex/Plex Media Server/Plug-ins changed: -1 => 1312993513.
Aug 10, 2011 09:50:02 [0xb1744b70] DEBUG - Waiting for inotify notifications...
Aug 10, 2011 09:50:02 [0xb1a32b70] DEBUG - Starting scheduled updates, every 3600 seconds
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - Scanning for plug-ins in /mnt/cache/.plex/Plex Media Server/Plug-ins
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - Starting plug-in /mnt/cache/.plex/Plex Media Server/Plug-ins/System.bundle.
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - [com.plexapp.system] Setting plug-in to always running (daemon mode).
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - Starting file watcher for com.plexapp.system
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - Spawned plug-in com.plexapp.system with PID 22540
Aug 10, 2011 09:50:02 [0xb1168b70] DEBUG - [com.plexapp.system] Sent command: GET /:/prefixes
Aug 10, 2011 09:50:03 [0xb1456b70] DEBUG - HTTP request to: http://www.plexapp.com/plex/blacklisted/2fed6f2
Aug 10, 2011 09:50:03 [0xb1456b70] DEBUG - Writing new preferences file.
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - Reading 290 bytes in the body, code is 200
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - [com.plexapp.system] Plug-in running on port 46809.
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG -  * Plug-in handles prefix: /system
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - Read configuration for [com.plexapp.system], had 1 prefixes
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - Updating [com.plexapp.system] in the database, it has changed.
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - Done with 1 synchronous plug-in starts, starting the rest in parallel.
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - Updating the list of agents known by the system.
Aug 10, 2011 09:50:06 [0xb1168b70] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/agents
Aug 10, 2011 09:50:06 [0xb5aa76d0] DEBUG - Image transcode cache directory: /mnt/cache/.plex/Plex Media Server/Cache/PhotoTranscoder

Link to comment

I had version 0.1 installed (which was working), then I switched to version 0.3.

 

Now I get the error :

 

/usr/local/plex//Plex Media Server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/plex//Plex Media Server)

/usr/local/plex//Plex Media Server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/plex/libsoci_core-gcc-3_0-3.0.0.so)

/usr/local/plex//Plex Media Server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/plex/libboost_program_options.so.1.46.1)

/usr/local/plex//Plex Media Server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/plex/libboost_regex.so.1.46.1)

/usr/local/plex//Plex Media Server: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/plex/libfreeimage.so.3)

root@Tower:/boot/custom/plex# /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11'

 

I tried to switch back to version 0.1 but it still fails to load.

I had this error before when I tried to install Plex manually. Then I installed the package "C" compiler & development tools and Plex worked.

 

Now I don't know how to get plex running again...

 

I just got it running again. Removed v01 and replaced it with v03. I also Remonde the autostart. Now it starts again.

Link to comment

Maybe a stupid question, :-[

 

but i only can dowload a .tar file from the dropbox from user Stokkes.

 

put it on the flash drive, in an ''extra'' directory an tried the installpkg command ''installpkg plex-0.3-i386-unRAID.tar''

 

and get this error in Telnet box

 

''Cannot install plex-0.3-i386-unRAID.tar:  file does not end in .tgz, .tbz, .tlz, or .txz''

 

a .tar file is by my knowledge a kind of compressed file/package RAR / ZIP file.

 

So i tried With 7-Zip and winRaR to see with kind of uncompressed file it would output (maybe a .tgz file) and it did'nt.

 

 

 

Link to comment

Maybe a stupid question, :-[

 

but i only can dowload a .tar file from the dropbox from user Stokkes.

 

put it on the flash drive, in an ''extra'' directory an tried the installpkg command ''installpkg plex-0.3-i386-unRAID.tar''

 

and get this error in Telnet box

 

''Cannot install plex-0.3-i386-unRAID.tar:  file does not end in .tgz, .tbz, .tlz, or .txz''

 

a .tar file os by my knowledge a kind of compressed file/package RAR / ZIP file.

 

So i tried With 7-Zip and winRaR to see with kind of uncompressed file it would output (maybe a .tgz file) and it did'nt.

 

 

 

 

 

Use Firefox to download it and you will be fine.

Link to comment

Thank you for the nice work. I have installed and got it running. However, a few questions if somebody could answer:

- Is there any way to play VIDEO_TS files using Plex App for iPad? If this is not possible, could PMS do some live conversion using ffmpeg or other packages (like Air Video)?

- Is there any way to include the mpeg-ts (transport stream) files in the directory? At the moment I include the path which is full of .ts files, but Plex manager insists saying that the directory in empty.

Link to comment

Thank you for the nice work. I have installed and got it running. However, a few questions if somebody could answer:

- Is there any way to play VIDEO_TS files using Plex App for iPad? If this is not possible, could PMS do some live conversion using ffmpeg or other packages (like Air Video)?

- Is there any way to include the mpeg-ts (transport stream) files in the directory? At the moment I include the path which is full of .ts files, but Plex manager insists saying that the directory in empty.

I think these question would be better address on the Plex forum.

 

This forum is more about the installation of the Plex server on unRAID.

 

Cheers.

Link to comment
  • 2 weeks later...

I don't know if this is actually a question for them.  I originally had plex installed via the method in this thread http://lime-technology.com/forum/index.php?topic=9902.0.  I had no issues but I was running as root which caused other issues for me.  I then tried the plugin version and had the issue with it dieing after a day.  On a whim I tried going back to the original way but adding su nobody -c  to fix my other issue.  I'm now working for 72 hours so I have to think its something the plugin is doing differently.

Link to comment

there is a long thread going on about this in the plex support forum. some people using this plugin have that problem but there are also some people who don't use this plugin, who also have that problem.

 

i myself had no crash for about a week now but didn't change anything.

it's some kind of memory leak and the plex developers are not sure yet, what's causing it.

Link to comment

Is there anybody running this with Plexbmc addon for XBMC?

I am.  It works well, but I've been having issues with embedded subtitles either not showing up, or showing up without being asked for.  Aside from the already mentioned random program halt, which I have experienced twice, it's a great solution for everything.

Link to comment

Hi All,

 

I've got an interesting problem with this plugin (v0.3).

I've downloaded both the full and light versions, and the issue is the same on both.

 

I've tried the default install from the full package, and put my plex library on both a data drive (/disk1) and also on the cache drive (/mnt/cache/.plexlib).

I've also used the light package, and pointed it at the untarred Plex archive on /disk1/plex and /mnt/cache/.plex. In this case, the library was in /disk1/plexlib or /mnt/cache/.plexlib.

 

The problem is this. Certain seasons of some shows simply don't show up in the library. As an example, I've got all 4 seasons of Enterprise, and when scanned Season 3 doesn't show up in the library.

 

If I start Plex from it's own start.sh script (from the same install directory), then it detects Season 3 of Enterprise, and displays it in the library.

 

My user.conf looks like this:

# Customized Plex Media Server configuration file for the unRAID-Plex plugin.
# DO NOT MAKE CHANGES TO THIS FILE.  THEY WILL BE OVERWRITTEN.
#
PLEX_INSTALLED_DIR="/mnt/cache/.plex"
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/cache/.plexlib"
TMPDIR="/mnt/cache/.plextmp"
RUNAS="root"

 

init.sh is as follows:

#!/bin/sh

# Start Plex using runas user from configuration
su root -s /bin/sh -c "/boot/custom/plex/plex.sh &> /dev/null &"

 

and plex.sh:

#!/bin/sh

# We load our configuration file here
source /boot/custom/plex/user.conf

# Now we export the variables required for Plex Media Server to run
export LD_LIBRARY_PATH="${PLEX_INSTALLED_DIR}"
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
export TMPDIR="${TMPDIR}"
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

# Set the maximum stack size. DO NOT CHANGE THIS
ulimit -s 3000

# Start Plex Media Server or check for version
if [ "$1" = "--version" ]; then
$PLEX_INSTALLED_DIR/Plex\ Media\ Server --version
else
$PLEX_INSTALLED_DIR/Plex\ Media\ Server
fi

 

My start.sh script from the .plex directory looks like this:

#!/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 TMPDIR=/mnt/cache/.plextmp
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/cache/.plexlib
ulimit -s 3000
./Plex\ Media\ Server

 

 

When I look at the log files from the scanner, then Season 3 is clearly being parsed when using the server plugin, but it just doesn't display in the library.

Does anyone have any ideas what might be going on here?

 

I can provide log files from the scanner for both cases, if that helps.

 

Link to comment

@Bagpuss: check if you have error messages in your scanner log file like these:

UnicodeEncodeError: 'ascii' codec can't encode character u'xc0' in position 48: ordinal not in range(128)

 

if yes, add these lines to your plex.sh

 

export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"

 

I do indeed have 5 messages like this in the log. Will try adding those lines and will report back later.

 

Thanks.

Link to comment

@Bagpuss: check if you have error messages in your scanner log file like these:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xc0' in position 48: ordinal not in range(128)

 

if yes, add these lines to your plex.sh

 

export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"

 

Are changes to plex.sh persistent or will they disappear on reboot?  If they are not persistent, how do we get those lines (which I need as well) into the script permanently?

 

EDIT: I'll answer my own question, I didn't see at first that those files are on the flash drive...  so it seems that init.sh and plex.sh are persistent.  So another question, I know there is a RUNAS variable in user.conf, does that mean that I can simply run /boot/custom/plex/init.sh in my go script and not have to run su nobody -c "/boot/custom/plex/init.sh" to ensure the process runs as nobody?

 

EDIT2: Nevermind again, I think I see that init.sh calls plex.sh as nobody in my case...  I find that posting a question I may be struggling with for weeks is the quickest way for me to find my own answer... very strange indeed.

Link to comment

Hmmm. Maybe that's what's happening to me.  Only 1 of my 20 drive array is spinning down these days.  In my log it doesn't appear that the system even attempts to spin down the other drives.  I am also using Cache_Dirs to minimize drive spin up, but it seems like something else is going on.  Maybe I should turn off update library on changes and see if that improves things...

Link to comment

Hmmm. Maybe that's what's happening to me.  Only 1 of my 20 drive array is spinning down these days.  In my log it doesn't appear that the system even attempts to spin down the other drives.  I am also using Cache_Dirs to minimize drive spin up, but it seems like something else is going on.  Maybe I should turn off update library on changes and see if that improves things...

 

I did that but it seems to make no difference, luckily it only leaves two disks spun up but it's certainly reducing the awesomeness of UNRAID if the disks don't spin down.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.