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

@gbdesai

the plugin chown the Library and the temp folder (except /tmp) to unraid-plex.

 

only read permissions are needed on the media files. so no chown there.

 

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

Nice, thanks!

First of all spidi just want to say thank you for a brilliant plugin! Works brilliantly!

 

Im posting to ask a bit of advice if possible... Im relatively new to Linux, and very new to unRAID. Ive set up my server, installed your ( brilliant) plugin, and also installed Transmission package via unMenu.

 

My questions is this.... How does your Plex plugin get called to stop when I stop the array?! Is it to do with the rc.* scripts?! The reason I ask, (and apologies if this is too off of topic! ) is with your plugin installed my array stops perfectly. With Transmission installed it hangs until I manually run the stop script.

 

I have a feeling its something to do with a called a rc.* script but im just after a bit of guidance so i can adjust the Transmission package to stop gracefully like your Plex plugin.

 

Many many thanks in advance!

First of all spidi just want to say thank you for a brilliant plugin! Works brilliantly!

 

Im posting to ask a bit of advice if possible... Im relatively new to Linux, and very new to unRAID. Ive set up my server, installed your ( brilliant) plugin, and also installed Transmission package via unMenu.

 

My questions is this.... How does your Plex plugin get called to stop when I stop the array?! Is it to do with the rc.* scripts?! The reason I ask, (and apologies if this is too off of topic! ) is with your plugin installed my array stops perfectly. With Transmission installed it hangs until I manually run the stop script.

 

I have a feeling its something to do with a called a rc.* script but im just after a bit of guidance so i can adjust the Transmission package to stop gracefully like your Plex plugin.

 

Many many thanks in advance!

I already answered this question in the Transmission thread!

First of all spidi just want to say thank you for a brilliant plugin! Works brilliantly!

 

Im posting to ask a bit of advice if possible... Im relatively new to Linux, and very new to unRAID. Ive set up my server, installed your ( brilliant) plugin, and also installed Transmission package via unMenu.

 

My questions is this.... How does your Plex plugin get called to stop when I stop the array?! Is it to do with the rc.* scripts?! The reason I ask, (and apologies if this is too off of topic! ) is with your plugin installed my array stops perfectly. With Transmission installed it hangs until I manually run the stop script.

 

I have a feeling its something to do with a called a rc.* script but im just after a bit of guidance so i can adjust the Transmission package to stop gracefully like your Plex plugin.

 

Many many thanks in advance!

I already answered this question in the Transmission thread!

 

Apologies Prostuff, Im just trying to get my heard around unRaid more than anything, and please dont think im being rude or difficult... Im just trying to minimize my unraid setup to one interface, preferably the default WebGUI... And to that end I just want all my additional processes to stop with one click of the stop array button, and not in my case having to load unMENU, and select User Scripts.

 

Since the Plex Plugin can do this, I was just curious why I couldnt use the rc.unraid_transmission script to do the same! If anything, Im simply after more understanding of how the start stop process interacts with other additional services to the core AFP, SAMBA ect... :)

Since the Plex Plugin can do this, I was just curious why I couldnt use the rc.unraid_transmission script to do the same! If anything, Im simply after more understanding of how the start stop process interacts with other additional services to the core AFP, SAMBA ect... :)

The Plex addon is a "proper" plugin using the unRAID plugin architecture.  Anything done through unMenu is not... short and simple.  unRAID did not have plugins until 5.0b11 so there was/is nothing unMenu can/could tie into.

 

If you want Transmission to stop on the press of the stop button in the unRAID webGUI then you will have to write a Transmission plugin for unRAID 5.0b11 or newer.

I've switched from stokkes version to this one. It's working perfectly fine but it still crashes after ~20 hours. I haven't done a lot of investigating yet (I will later when i find some time) but i'd assume its still the memory leak.

 

With stokkes version i had a cron running on plex.sh but am not sure how this plugin starts plex? Hope someone can point me in the right direction !

  • Author

in the previous versions of this plugin I had a cronjob build in.

 

but since I use soft links, it doesn't happen any more (crashes I mean, and I haven't heard it from others yet)

 

do you use hidden directorys to store the Library?

if so I would suggest you create an user share with cache only.

and move your library and your tmp folder there.

 

in the previous versions of this plugin I had a cronjob build in.

 

but since I use soft links, it doesn't happen any more (crashes I mean, and I haven't heard it from others yet)

 

do you use hidden directorys to store the Library?

if so I would suggest you create an user share with cache only.

and move your library and your tmp folder there.

 

Thanks for the quick reply.

 

I don't have a cache drive yet. Currently using my array storage for the library and tmp folder until i do have a cache drive.(no hidden directories)

 

It may be a different issue then. The plex settings page did show plex as running (So i guess the process is running, does this page poll the process directly or check some set flag/files?). I restarted before i actually checked the process with ps. My mistake :)

 

PMS wasn't reachable nor could i log in via my iphone anymore so am not sure whats really going on then. After stopping/starting from the web interface it was working fine again.

 

I'll keep you posted after i get some logs etc.

  • Author

On the webpage I check only if /var/run/plex/plex.pid exists. and this is also the case if the process dies. sorry.

only way to be sure:

ps auxwf | egrep -i \Plex\ Media\ Server | egrep -v "grep|com.plexapp"

 

my VSZ isn't growing over 350MB at the moment, but it hasn't run longer than 48 hours.

On the webpage I check only if /var/run/plex/plex.pid exists. and this is also the case if the process dies. sorry.

only way to be sure:

ps auxwf | egrep -i \Plex\ Media\ Server | egrep -v "grep|com.plexapp"

 

my VSZ isn't growing over 350MB at the moment, but it hasn't run longer than 48 hours.

 

Thanks for all the help, i did see the .pid file (Which is why i asked how the server running message is generated :)). I'll start monitoring memory usage from now on.

I still have a small leak somewhere, but it's very slow (using no hidden directories, tmp and library located on cache drive).  Last time I restarted the process I was around 500 MB running for 4 days.  Really great job on this plugin, spidi!

 

If someone has some free time, can you check to see if you experience the same growth when accessing the web manager?

 

Do a "ps -A", find the PID for Plex Media Server.  Then do a "top -p <pid#>".

 

Access the web manager, click on one of your library sections (i.e., Movies), and see if the virtual memory grows.  Then check another section (like TV, for example), and observe.  Every time I switch between sections, I see a 4MB increase.  Even going back and forth between 2 sections.

 

 

  • Author

yes, I can confirm that.

I've been monitoring since today and haven't seen memory increase. (Stable at 199mB)

I just switched between channels a few times in PMS and don't see any increase.

 

Via the iphone plex app i see ~3 MB (202mB total) added whenever i navigate somewhere but then it drops back to 199mB quickly.

 

Using 0.9.5 plugin with 5b13 unraid.

Here are my five clicks in the web manager:

 

198 to 201

201 to 203 (right back to 201)

201 to 203 (right back to 201)

201 to 204

204 to 204

 

Connected with iPhone: 204 to 212

select section: 212 to 213

start movie (720P MKV): no change

 

selecting sabnzbd channel/queue : 213 to 217

 

 

0.9.5.2 is out. Updated plugin coming!?

  • Author

Update

 

Update to Plex Media Server 0.9.5.2

 

NEW

If you have Problems with hidden directories, you can check the button near Use soft links:.

Then you start PMS with soft links instead of variables.

 

Have Fun....

Everything seems to be running peachy. Haven't had problems with hidden directories (I use /mnt/cache/.custom/plex) so I didn't use the Soft Link option.

 

Thanks, Spidi.

  • Author

In the last version I used soft links as default, this version the variables. If you run in problems now, help should be one check away. ;)

Hmm. PMS craches on me during playback using the variables. moved over to links and will keep an eye on it. I did notice, however, that my memory leak seems to be twice as fast. i.e. each click in the web manager is a bump of at least 4 sometimes as much as 12. Not sure if the change has anything to do with that....

can someone please help me i'm very lost..

 

so i installed the latest plugin and unraid says it's running but i can't see any media on my mac or iphone..

 

i have plex installed on both is there some other setup i need to do?

  • Author

did you configure media over the Plex Webmanager?

thx for the upgrade spidi

 

installed it without any issues as usual :)

 

 

did you configure media over the Plex Webmanager?

 

thanks.. so i added a media folder with movies in it but nothing is being detected... any idea why?

 

i stopped the plug in and rebooted but no i'm getting an error

 

terminate called after throwing an instance of 'std::runtime_error'

what(): locale::facet::_S_create_c_locale name not valid

 

rebooted again and it went away but still the media manager doesn't detect any movies in the folder

  • Author

whats the output of

su unraid-plex -s /bin/bash -c "locale -a"

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.