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

<!-- event handler -->
<FILE Name="/etc/cron.daily/checkplex" Mode="0770">
<INLINE>
<![CDATA[
#!/bin/sh
/etc/rc.d/rc.plex restart
logger -t plex-cron "Restart of Plex Media Server by cron (if enabled) at $(date)" 
]]>
</INLINE>
</FILE>

 

you can put something like that in your plg file

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

Thanks Spidi, going to add this myself as while plex isn't crashing for me, performance is definitely degrading after a few days of use, especially from myplex.  Have been restarting manually to resolve (latest Plex beta 0.9.6.whatever)  Looks like cron.daily is set to run at 4:40am, so that's perfect!

Thanks spidi! So I added those lines to my plugin but I just wanted to make sure exactly what it does. It looks like it will just restart PMS everyday at 4:40 am? Is there anything else I need to do? Enable or disable something? Not sure where I can enable/disable cron.daily and how to edit that.

  • Author

you can't disable cron, but you can disable the plugin (webinterface). this way plex doesn't start if you don't want to.

 

but keep in mind. if you insert this cron it will start plex if your array ist up or not. I don't know what happens if you shutdown your array and plex will start at 4:40.

 

Sorry, one last question. How do I know if it is working correctly? I just checked my syslog and there was nothing in the logs for 4:40 am.

Hi Spidi,

 

You are welcome to use the code from my WebServer/iTunes plugins for viewing of specific plex log files.

 

Cheers

I'am a newbie with the installation, but it's needed to create an user called unraid-plex to run correctly? or isn't necesary

 

Regards from Spain

 

there has to be a structure like this:

root@nas:/mnt/cache/appdata/plex/Library/Application Support/Plex Media Server# ls -al
total 9
drwxr-xr-x  9 unraid-plex users  296 2012-04-15 21:27 ./
drwxr-xr-x  3 unraid-plex users   88 2011-11-02 20:47 ../
drwxr-xr-x  3 unraid-plex users   80 2011-11-17 22:03 Cache/
drwxr-xr-x  3 unraid-plex users  432 2012-04-15 11:49 Logs/
drwxr-xr-x  3 unraid-plex users   80 2011-11-01 17:37 Media/
drwxr-xr-x  6 unraid-plex users  144 2011-11-01 17:41 Metadata/
drwxr-xr-x  7 unraid-plex users  200 2011-11-01 17:52 Plug-in\ Support/
drwxr-xr-x 30 unraid-plex users 1072 2012-04-15 19:08 Plug-ins/
-rw-------  1 unraid-plex users  563 2012-04-15 21:27 Preferences.xml
drwxr-xr-x  2 unraid-plex users   80 2012-04-07 11:22 Scanners/
-rw-r--r--  1 unraid-plex users 1237 2012-04-01 12:53 dlnaclientprofiles.xml

  • Author

it isn't.

 

when you first installed this plugin it already created one.

 

 

hi. i installed the plugin and it is working find with me.

 

# plex configuration

SERVICE="enable"

PLEX_INSTALLDIR="/usr/local/plex"

PLEX_LIBRARYDIR="/mnt/disk1/plex"

PLEX_TMPDIR="/mnt/disk1/plex/tmp"

RUNAS="unraid-plex"

PLEX_USE_UTF="false"

 

and now i have questions as i'm new to the unraid system

 

1. why some people use different locations for the install,library and temp?

 

2. are my sittings mentioned up fine? or any better recommendation

 

3. should i change my install location?

 

4. i see some people use dot in the url like /mnt/disk1/.custom/Plex what does the dot mean ?

 

5. how to install the beta DLNA version? http://plex-downloads.s3.amazonaws.com/0.9.6.0/PlexMediaServer-0.9.6.0.11-ba33da9-unRAID.tar.bz2

 

 

Thank you.

hi. i installed the plugin and it is working find with me.

 

# plex configuration

SERVICE="enable"

PLEX_INSTALLDIR="/usr/local/plex"

PLEX_LIBRARYDIR="/mnt/disk1/plex"

PLEX_TMPDIR="/mnt/disk1/plex/tmp"

RUNAS="unraid-plex"

PLEX_USE_UTF="false"

 

and now i have questions as i'm new to the unraid system

 

1. why some people use different locations for the install,library and temp?

 

2. are my sittings mentioned up fine? or any better recommendation

 

3. should i change my install location?

 

4. i see some people use dot in the url like /mnt/disk1/.custom/Plex what does the dot mean ?

 

5. how to install the beta DLNA version? http://plex-downloads.s3.amazonaws.com/0.9.6.0/PlexMediaServer-0.9.6.0.11-ba33da9-unRAID.tar.bz2

 

 

Thank you.

 

1. some use their array for library, some use an SSD or so (Like me..) so some freedom to choose where to install :)

2. seem ok to me. I would personally avoid using my array though.

3. no, do not touch this.

4. hidden folders, e.g. on a cache drive in unraid this ensures the data isnt removed and written to the array.

5. ive attached a version i made for my own use to this post; No warranty! Make sure you follow update steps properly as per spidi instructions.

plex-media-server-plugin-noarch-0.2-ds_096.zip

Thank you Mithrandir for the clarifications

 

regard the DLNA version. which installation steps did you mean. did you mean the same instructions in the first post?

 

Thank you.

Mithrandir,, Thank you very much. the DLNA version is working now as it should :)

 

btw. are you using the SSD to avoid spinning the HDD?

 

Thanks

Anyone running Plex on 5RC2 yet?  Any issues?  I'm about to take the plunge.

 

Mike

 

I upgraded to RC2, and after attempting to refresh a TV series library, I got this error

 

May 7 09:13:57 UNRAID kernel: Plex Media Serv[11142]: segfault at 0 ip 08081c55 sp b3445b00 error 4 in Plex Media Server[8048000+3ab000]

 

I've never seen that before.. the PMS has halted.  I'm running v0.9.5.3.309-524cf73

I upgraded to RC2, and after attempting to refresh a TV series library, I got this error

 

May 7 09:13:57 UNRAID kernel: Plex Media Serv[11142]: segfault at 0 ip 08081c55 sp b3445b00 error 4 in Plex Media Server[8048000+3ab000]

 

I've never seen that before.. the PMS has halted.  I'm running v0.9.5.3.309-524cf73

 

Try upgrading to v0.9.6.  Im running it just fine on 5.0-rc2.

strange ! when i open the plex client, the Movies tap in plex client appears for seconds and disappears ? any clue. thank you in advance

 

 

update: i think it is a wireless problem. because that happened my my laptop client. but in my connected pc client it is fine.

 

i also have a connection problem when i try to connect to my server (putty) using my laptop (wireless)

 

 

update: using myplex with manually specify the port in plex manager solved the problem :)

 

 

Latest Plex 9.6.1 on RC2 working beautifully. Had massive issues with the transcoder when working from protected array. Once moved on cache drive all worked well. Also placing temporary files on Cache fixed a few issues with memory usage too.

  • Author

@speeding_ant

 

update process worked as well? or do you update yourself?

Spidi

 

i updated with the GUI

but it is not clear to me if we need to stop plex first or not ...

 

anyway what i did...

 

did not stop plex

clicked install

the gui went furry as when he is busy with doing things

after a few minutes the GUI went normal again but was still running old version

checked progress manually in plugins/plex and saw he was still downloading the new package

after +-15 minutes i saw the package was complete and clicked install again....

i guess he installed but was still running old version. os i stopped plex and started again.. after all that everything was OK

 

so we need to have some clarifications and a progress bar of the download in the GUI would be helpfull... package is 51 MB so it takes a bit before it is dlded

 

 

  • Author

PMS stops automatic.

 

- Download new PMS

- stop PMS

- rsync to installadir

- start PMS

 

progress bar would be nice, but how can I do this.

 

 

 

I am running the first DNLA Beta. I tried to upgrade through the gui - but no luck.

 

In my logs I see:

 

May 9 08:59:39 Tower plex-rc.plex: New PMS version found: v0.9.6.1.89-3c84bb7

May 9 08:59:42 Tower plex-rc.plex: wrong md5 checksum

May 9 08:59:42 Tower plex-rc.plex: New PMS version found: v0.9.6.1.89-3c84bb7

 

Will the plugin have tried to download to /boot/config/plugins? - I am not seeing anything there that looks new?

 

Any feedback is welcome - thanks all in advance.

  • Author

yes, in /boot/config/plugins/plex has to be a new file named.

PlexMediaServer-0.9.6.1.89-3c84bb7-unRAID.tar.bz2

 

if its there, please delete it and try again. maybe the download was interrupted.

Thanks for such a quick reply. Definitely something odd going on.

 

root@Tower:/boot/config/plugins/plex# ls -al

total 163804

drwxrwxrwx  2 root root    4096 2012-05-09 10:29 ./

drwxrwxrwx 15 root root    4096 2012-05-03 10:24 ../

-rwxrwxrwx  1 root root 51753025 2011-11-29 04:50 PlexMediaServer-0.9.5.2-7a18da4-slackware131-i386.tar.bz2*

-rwxrwxrwx  1 root root 50098575 2012-03-19 15:10 PlexMediaServer-0.9.5.3.309-524cf73-slackware131-i386.tar.bz2*

-rwxrwxrwx  1 root root 52353384 2012-03-29 07:40 PlexMediaServer-0.9.6.0.11-ba33da9-unRAID.tar.bz2*

-rwxrwxrwx  1 root root 13496320 2012-05-09 10:29 PlexMediaServer-0.9.6.1.89-3c84bb7-unRAID.tar.bz2*

-rwxrwxrwx  1 root root      185 2012-05-09 10:28 plex_settings.cfg*

-rwxrwxrwx  1 root root      164 2012-04-03 11:15 plex_version.cfg*

-rwxrwxrwx  1 root root    4636 2012-03-31 11:16 pms_48px.png*

 

 

Deleted PlexMediaServer-0.9.6.1.89-3c84bb7-unRAID.tar.bz2*

 

Then chose update in the unraid / plex interface

 

May 9 10:29:50 Tower plex-rc.plex: update: wget retuned with an error  (not my typo lol)

 

File above appears again -rwxrwxrwx  1 root root 13496320 2012-05-09 10:29 PlexMediaServer-0.9.6.1.89-3c84bb7-unRAID.tar.bz2*

 

try install again,

 

May 9 08:59:42 Tower plex-rc.plex: wrong md5 checksum

May 9 08:59:42 Tower plex-rc.plex: New PMS version found: v0.9.6.1.89-3c84bb7

 

Looking at the size of the file - it is the same each time.

 

Thoughts? Is there a manual download I can test?

 

 

EDIT - Turns out the flash drive was full and killing the wget... all good once I cleared space.

i'm having the DLNA beta and i updated yesterday by the gui without any problem. after update i restarted the PMS.

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.