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

on both, these

(DEFAULT_PLEX_MEDIA_SERVER_HOME="/usr/local/plexmediaserver"

DEFAULT_PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/tmp/Library")  are only used if no /boot/config/plugins/plexmediaserver/plex_settings.cfg is present.

My /boot/config/plugins/plexmediaserver/plex_settings.cfg is present and reads as follows:

 

# plex configuration

DEFAULT_ENABLED="true"

DEFAULT_RUNAS="unraid-plex"

DEFAULT_TMPDIR="/mnt/users/plugin_data/pms/tmp"

DEFAULT_PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/users/plugin_data/pms/library"

 

  • Replies 1.7k
  • Views 411.9k
  • Created
  • Last Reply
  • Author

then on this side is all clear...

then on this side is all clear...

 

I should also mention that I did a '/etc/rc.d/rc.plexmediaserver restart' and it retained my settings.  I am going to try a reboot of the unRAID server and I will post the results.

then on this side is all clear...

 

I should also mention that I did a '/etc/rc.d/rc.plexmediaserver restart' and it retained my settings.  I am going to try a reboot of the unRAID server and I will post the results.

 

Yeah, it came back up and the Plex Media Manager does not know about where my movies or tv_shows are located now.  I can add them back in and it will stay there until I reboot.  Are there any logs I can look at to help solve this?

I have been having some of the same problems when loading new media. I have to reboot just get Plex to notices them there. However, the odd part is it reset the share permissions each time it reboots or I manually restart PLEX. Any ideas why? In addition, I have the autoupdates turned on and the update every 15mins turned on but still not finding any of the new stuff.

 

Thanks

  • Author

DEFAULT_PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/users/plugin_data/pms/library"

 

I think I found your problem.....

DEFAULT_PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/users/plugin_data/pms/library"

 

it has to be:

DEFAULT_PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/mnt/user/plugin_data/pms/library"

 

 

I think you are right.  I have made the fix and will test it after this big file copy gets finished as I am moving data from one array to another.  Thank you for pointing it out!

That did it.  It's always amazing to me how one letter or comma or semi-colon can throw off things and painful when you can't find it. :)

Okay, I've been trying to switch off of WWs/Influencer plug-in mods to the official Spidi install and I just can't seem to get it to work.

 

Removed all traces of the Plex plugin install from

 

/boot/config/plugins

 

Tossed the file from Plex downloads in the directories it needs to go in, pointed it to my old library and tried to start. It never does.

 

/mnt/user/Apps/Plex/

&

/mnt/user/Apps/Plex/temp

 

Set it to a new directory, also on the cache-only Apps share.

 

/mnt/user/Apps/Plex_Library_Test

& 

/mnt/user/Apps/Plex_Library_Test/temp

 

Still no good. Here's the system logs.

 

Jul  2 09:23:54 Helios pms: Starting Plex...
Jul  2 09:23:54 Helios su[13048]: Successful su for unraid-plex by root
Jul  2 09:23:54 Helios su[13048]: +  root:unraid-plex
Jul  2 09:23:56 Helios pms: Check 1: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:23:59 Helios pms: Check 2: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:02 Helios pms: Check 3: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:05 Helios pms: Check 4: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:08 Helios pms: Check 5: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:11 Helios emhttp: shcmd (216): :>/etc/samba/smb-shares.conf
Jul  2 09:24:11 Helios emhttp: shcmd (217): cp /etc/netatalk/AppleVolumes.default- /etc/netatalk/AppleVolumes.default
Jul  2 09:24:11 Helios emhttp: Restart SMB...
Jul  2 09:24:11 Helios emhttp: shcmd (218): killall -HUP smbd
Jul  2 09:24:11 Helios emhttp: shcmd (219): ps axc | grep -q rpc.mountd
Jul  2 09:24:11 Helios emhttp: _shcmd: shcmd (219): exit status: 1
Jul  2 09:24:11 Helios emhttp: Start AFP...
Jul  2 09:24:11 Helios emhttp: shcmd (220): /etc/rc.d/rc.atalk start |& logger
Jul  2 09:24:11 Helios logger: starting appletalk daemons:  cnid_metad afpd
Jul  2 09:24:11 Helios emhttp: shcmd (221): cp /etc/avahi/services/afp.service- /etc/avahi/services/afp.service
Jul  2 09:24:11 Helios avahi-daemon[12695]: Files changed, reloading.
Jul  2 09:24:11 Helios avahi-daemon[12695]: Loading service file /services/afp.service.
Jul  2 09:24:11 Helios emhttp: shcmd (222): cp /etc/avahi/services/smb.service- /etc/avahi/services/smb.service
Jul  2 09:24:11 Helios avahi-daemon[12695]: Files changed, reloading.
Jul  2 09:24:11 Helios avahi-daemon[12695]: Service group file /services/smb.service changed, reloading.
Jul  2 09:24:11 Helios emhttp: shcmd (223): /usr/local/sbin/emhttp_event svcs_restarted
Jul  2 09:24:11 Helios emhttp_event: svcs_restarted
Jul  2 09:24:12 Helios avahi-daemon[12695]: Service "Helios" (/services/afp.service) successfully established.
Jul  2 09:24:12 Helios avahi-daemon[12695]: Service "Helios-SMB" (/services/smb.service) successfully established.
Jul  2 09:24:33 Helios pms: Stopping Plex...
Jul  2 09:24:39 Helios pms: Starting Plex...
Jul  2 09:24:39 Helios su[13373]: Successful su for unraid-plex by root
Jul  2 09:24:39 Helios su[13373]: +  root:unraid-plex
Jul  2 09:24:41 Helios pms: Check 1: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:44 Helios pms: Check 2: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:47 Helios pms: Check 3: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:50 Helios pms: Check 4: Plex has NOT started yet, something is maybe wrong!
Jul  2 09:24:53 Helios pms: Check 5: Plex has NOT started yet, something is maybe wrong!

 

Playing around some more....

 

Linux 3.0.35-unRAID.
root@Helios:~# ps aux | grep Plex
root     19925  0.0  0.0   2200   644 pts/0    R+   09:46   0:00 grep Plex
root@Helios:~# cd /usr/local/plexmediaserver/
root@Helios:/usr/local/plexmediaserver# ./start.sh
./start.sh: line 8: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
./start.sh: line 11: 20084 Aborted                 ./Plex\ Media\ Server
root@Helios:/usr/local/plexmediaserver#

 

At this point, I'm going through the thread and trying everything I see haha.

 

root@Helios:~# /etc/rc.d/rc.plexmediaserver start
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8): No such file or directory
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

root@Helios:~#

  • Author

I guess you have installed unmenu and  gcc.

 

gcc is the problem it messes up some stuff. you can't export LC_ALL anymore. (no clue why) you have to remove gcc, otherwise it won't work.

Ah HA! That was it!

 

Why on earth gcc was installed, I don't know. I have no idea why it would have been. Hell, I don't even much like having unmenu outside of the fact it's saved me a few times.

 

Thank you! Glad to be on the official beta release.

  • Author

if I remember correctly, than gcc will be installed when you use the email notification, because some dependencies are compiled at startup....

Spidi, I just  reinstalled Plex and I am unable to see the link for the gui settings.

  • Author

its only there if PMS is running

Ok so I have it runing, but now it seems like the permissions for my Library directory have changed and I can't access them like I use to.

  • Author

Ok so I have it runing, but now it seems like the permissions for my Library directory have changed and I can't access them like I use to.

chmod -R g+w /path/to/your/lib/

 

and it should work like you know it

Spidi, is the Library Directory where my media is or is does point to where I want PMS to save data?

  • Author

Spidi, is the Library Directory where my media is or is does point to where I want PMS to save data?

 

where PMS saves his data (NOT your media)

That's what I am doing wrong thinking "Library" is where my media is.  No wonder I am unable to access that folder.

 

I am up and running.  Appreciate all your help Spidi 

Joshzombie, can I ask why the switch? Out of interest more than anything. WW did that one and I've never messed with it, just wondering if there is a problem with it.

 

Sent from my HTC Vivid

Thanks for all your great work on this!

 

Question I'm trying to migrate from another plugin, what folder should I put in for Library Directory

 

My current Plex folder structure is

 

\mnt\user\PlexLib\Plex Media Server\

 

with subdirectories

      Cache          Plug-in Support

      Logs            Plugin-ins

      Media          Scanners

      Metadata

 

Thanks!

Joshzombie, can I ask why the switch? Out of interest more than anything. WW did that one and I've never messed with it, just wondering if there is a problem with it.

 

Sent from my HTC Vivid

 

Two reasons. The main one being I wanted to move to a source supported by the Plex devs. (Or, at least, recognized by them).

 

The other being, I kept having hanging issues in the web GUI when starting/stopping it. It would hang for 5-10 minutes before I could do -anything- with the web GUI. It wouldn't even let me access any other part of servers GUI.

 

 

  • Author

Thanks for all your great work on this!

 

Question I'm trying to migrate from another plugin, what folder should I put in for Library Directory

 

My current Plex folder structure is

 

\mnt\user\PlexLib\Plex Media Server\

 

with subdirectories

      Cache          Plug-in Support

      Logs            Plugin-ins

      Media          Scanners

      Metadata

 

Thanks!

 

normally  you have to move it to this structure:

/mnt/user/PlexLib/Application Support/Plex Media Server\

 

and point to /mnt/user/PlexLib

 

So I've moved to this version of the plex plugin from WW/Influencers - since it's a newer version of Plex that seems to work better with the devices in my house.

 

My only problem is that Plex won't start automatically - the only way I can get it to run is to issue the command after my unraid box boots:

 

root@mediab0x:/usr/local/plexmediaserver# ./start.sh &

 

Any idea why I have to start it manually?

 

Thank you!

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.