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

Also upgraded and working fine. Thanks spidi!

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

For the life of me I can't get this working,

 

if I use sofr link then the soft link it creates is just recursive

 

/mnt/user/.custom/plex/plex -> /mnt/user/.custom/plex/

 

even if I remove the hidden folder I get exactly the same result.

Also the plex directory is blank so looks like the rsync or maybe even before that is not working.

 

 

Ok have from the problem but not the fix,

This is related to the Something is Wrong Message

 

Basically you can't the Plex plugin and bubbaQ's Sysstat at the same time, plex will not start

 

 

 

  • Author

can you give me the output of:

egrep -i plex /var/log/syslog
...
cat /boot/config/plugins/plex/plex_settings.cfg

 

thanks

 

 

Ok, next issue :D for people who followed my posts, i had crashes with Plex Media Server at random, not related to memory usage. Since 0.9.5.2 this seems to have stopped.

 

However... transcoding seems to break at random. When i start the media server, transcoding from any format to my iphone works perfectly..then at random it breaks... last time this seems to have happened is when i did a manual media scan, but it may be unrelated.

 

- After it breaks, when i select a video on my iphone, i DO see the transcoding process start on the unraid box It just doesn't stream and returns an error message on the iphone after 5-10 seconds or so.

- When i stop and start Media Server, everything works fine again, typically for >8 hours and <24 hours.

- I also just found out (While creating this post!) that there is a rogue .srt file in the tmp folder. These shouldn't be there when nothing is streamed. When i delete the srt everything works again !!! Seems like a plex bug. Anyone seen this before?!

 

I may raise this to plex, but would like to know if this is a known issue.

Ok have from the problem but not the fix,

This is related to the Something is Wrong Message

 

Basically you can't the Plex plugin and bubbaQ's Sysstat at the same time, plex will not start

 

 

 

 

I do have both running right now, but did notice that if I leave Sysstat running, that if Plex has to be started again that it won't as you describe.  I had to reboot to get it to work again...

  • Author

yes you are right, after installing the sysstat plugin, PMS doesn't start any more.

you can't su to the user unraid-plex.

 

but I don't know what causes this.

 

At the moment you can't use systat if you want to use Plex. 

back to give this another whirl...

 

can't get the plex media manager to actually detect files despite seeing the unraid server and folders... anyone know why?

So it appears the leak issue has gotten worse for me since the 0.9.5.2 update. Before I wouldn't see it get above 500 for a few weeks. In one day I'm up to 1700. Not using soft links, but other than that nothing has changed in regards to the installation. Any thoughts?

 

(I did install cache_dirs and have it caching my Movies, TV and Music Shares...)

have you followed this rules:

http://wiki.plexapp.com/index.php/PlexNine_PMS_NamingGuide

 

do you have the right permissions? (nobody:users)

 

there are a bunch of things that can be wrong, you have to give me more information.

 

yeah plex works fine with my files on my mac, windows machine just not working on unraid

- I also just found out (While creating this post!) that there is a rogue .srt file in the tmp folder. These shouldn't be there when nothing is streamed. When i delete the srt everything works again !!! Seems like a plex bug. Anyone seen this before?!

 

SRT files are just sidecar files for subtitles...

  • Author

yeah plex works fine with my files on my mac, windows machine just not working on unraid

 

I think its a permission problem.

 

I would say, create a temporary movie folder. Put some movies in it.

and do:

chown -R nobody:users /path/to/tmpmoviefolder

If you add this folder to plex, it has to work.

So it appears the leak issue has gotten worse for me since the 0.9.5.2 update. Before I wouldn't see it get above 500 for a few weeks. In one day I'm up to 1700. Not using soft links, but other than that nothing has changed in regards to the installation. Any thoughts?

 

(I did install cache_dirs and have it caching my Movies, TV and Music Shares...)

Some people have reported that cache_dirs does affect the memory leak, but others have the same problem without running cache_dirs.  Have you been using the web manager a lot lately?  I get a 4 MB increase every time I access one of the sections.  For example, when I was organizing my media into collections, that definitely caused the process to grow much faster than usual.  1700 seems awfully high for one day, however.  Where is your tmp located?

 

I don't believe that the Plex devs are actively working on the leak, since it only appears to affect unRAID users.  One idea I have been thinking about would be to implement a cron job similar to the other PMS plugin, but where it would be more proactive than reactive.  For instance, if the cron could check to see if the process exceeds a user-set threshold (i.e. 1 GB), at a user-set time (i.e. 2 am every n days), it would stop and restart the process... Unfortunately I don't know how to build that.

you can ignore plex from being cached by cache_dirs ...

that's how i have set it up

no need for cache_dirs to cache that context as i never go in there to watch for somthing

 

 

Just downloaded 0.9.5.2, attempting to make changes to e.g. install directory/library dir.  However, every time I hit "Apply", it just refreshes the page and none of my changes are saved.  Viewing the /boot/config/plugins/plex/plex_settings.cfg, I can verify that none of the changes have been saved.

 

Is anyone else experiencing this?

  • Author

can you show me your plex_settings.cfg?

can you show me your plex_settings.cfg?

 

Thanks for the quick reply!

 

Here's the output from cat:

# plex configuration
SERVICE="disable"
PLEX_INSTALLDIR="/usr/local/plex"
PLEX_LIBRARYDIR="/mnt/cache/apps/plex"
PLEX_TMPDIR="/tmp"
RUNAS="unraid-plex"
PLEX_HOME="/var/run/plex/"
PLEX_SET_LINK="false"

 

The above is weird, it appears to have some settings from that install, and some new settings.  I was attempting to change the directories is /mnt/user/apps/plex (apps is a cache-only share).

 

Some background...  I originally installed an older version; it was working great.  Updated to 0.9.5.1a/b? and it wouldn't start up.  Left it alone for a bit since I wasn't going to use plex for a while due to holiday travels, etc.  Just today, I notice that a new version was released, and tried that, and this is when I notice nothing was being saved.

 

Thanks!

-alex

  • Author

 egrep -i plex /var/log/syslog

 

would help too.

 

The settings are looking good for me.

What would you like too change???

 

to start plex you have to set "enable" to yes (in the web interface)

output of log file attached.

 

As for what I'm trying to change, I've been trying to modify the install directory & the library directory.  Both values should be:

 

/mnt/user/apps/plex

 

But nothing sticks no matter how many times I hit apply...

egrep.txt

  • Author

ok, you have already a version of plex installed to /mnt/user/apps/plex.

 

you have two options:

1. delete the old Plex version there. then change the install folder via web interface an hit apply

2. edit the plex_settings.cfg by hand an install plex again (intallplg /boot/config/plugins/plex-.....plg)

 

If I where you I would consider to divide the plex installation folder and the Library folder. if something goes wrong you can delete the installation folder

and your Lib isn't infected or deleted.

 

 

 

 

Many thanks for this great plugin. It's awesome. It made me discover the Plex universe and now, all of my devices, be them iOS devices, HTPC and Macs, act united having one source. The software is incredible; by far the most precise and simple I ever used. So thanks again for having given me this change of using it through unRAID.

 

I have some requests and problems though.

In the last three days Plex Media server had been running it crashed three times. No helpful indication is provided with the syslog. And the last series of info it printed are listed below:

 

Dec 05, 2011 05:44:13 [0xac223b70] DEBUG - File /mnt/disk1/downloads/.plex-library/Application Support/Plex Media Server/Plug-ins changed: 1323059941 => 1323060253.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - Scanning for plug-ins in /mnt/disk1/downloads/.plex-library/Application Support/Plex Media Server/Plug-ins
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - Updating the list of agents known by the system.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/agents
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - HTTP request to: http://127.0.0.1:35336/system/agents
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - [com.plexapp.system] HTTP reply status 200, with 2913 bytes of content.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - The system knows about 13 agents.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - Waiting for all 0 plug-ins to finish starting.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - Done waiting for all plug-ins to start.
Dec 05, 2011 05:44:14 [0xac223b70] DEBUG - Avahi: Adding service Tower
Dec 05, 2011 05:44:14 [0xab08fb70] DEBUG - Avahi ~ change of state for entry group to 0
Dec 05, 2011 05:44:14 [0xab08fb70] DEBUG - Avahi ~ change of state for entry group to 1
Dec 05, 2011 05:44:15 [0xb1bffb70] DEBUG - Request: GET /:/plugins [127.0.0.1] (1 live)
Dec 05, 2011 05:44:15 [0xb1bffb70] DEBUG - It took 0.000000 sec to serialize a list with 20 elements.
Dec 05, 2011 05:44:15 [0xab08fb70] DEBUG - Avahi ~ change of state for entry group to 2
Dec 05, 2011 05:44:15 [0xab08fb70] DEBUG - Avahi: Service 'Tower' successfully established.
Dec 05, 2011 05:44:16 [0xab08fb70] DEBUG - Avahi: Resolved service 'Tower' of type '_plexmediasvr._tcp' in domain 'local' (machine=7ab19f054de18d3e2ab1f8524bf4907443214c7a, version=0.9.5.2-7a18da4 updated=1323060254)
Dec 05, 2011 05:44:16 [0xab08fb70] DEBUG - Avahi: We found existing service Tower

 

I can't figure out what is wrong with it. The only cure for now is just to restart the service from terminal.

Is anybody experiencing the same issue?

 

The request I wanted to make refers to how Plex logs are handled. Wouldn't it be better if they all went under the /var/log/plex/ folder with a logrotate config file that handles their grow? I don't like the idea of spinning up a drive just for analyzing what the server has done/is doing so far.

Can that be adjusted on the plugin part or the thing is tied to how PMS works?

  • Author

Logfiles are created in the library location. (for the moment at least)

I can't change this with any variable.

 

/mnt/disk1/downloads/.plex-library

 

you have your lib in a hidden folder. have you checked "use soft links" in the web interface?

This should fix your problem. If not let me know.

I understand.

 

No, I haven't. I didn't know what it served for and I left it unchecked. I enabled it now. Let's see if it does the trick. I'll let you know if it doesn't.

 

Thanks for your quick response and keep up with your good work!

Spidi...

 

small remark :  if you use the unraid-plex user ... DON"T  use the new permissions script :P or next time you start plex it will chown all your database to unraid_plex again ...

 

in my case it took only 3 hours :(

[me=sacretagent]thinks he is going to put an application drive on the server outside of the array with a rsync to the array to back it up.. just to avoid jokes like this [/me]

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.