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

please change the Library directory.

And run plex as root. Does this work?

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

please change the Library directory.

And run plex as root. Does this work?

 

Created new directory using "mkdir /mnt/cache/plex".  Changed the library directory to "/mnt/cache/plex".  Changed "Run as user:" to "root".  Same error.

  • Author

ok, whats the output of:

cd /usr/local/bin/
./plex.sh

ok, whats the output of:

cd /usr/local/bin/
./plex.sh

 

root@Vault:/usr/local/bin# ./plex.sh
./plex.sh: line 3: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-
root@Vault:/usr/local/bin# terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

 

  • Author

vi plex.sh

and remove these lines:

export LC_ALL="en_US.UTF-8"

export LANG="en_US.UTF-8"

 

do you know how to use vi?

 

and try it again.

vi plex.sh

and remove these lines:

export LC_ALL="en_US.UTF-8"

export LANG="en_US.UTF-8"

 

do you know how to use vi?

 

and try it again.

 

This fixed the problem.  Instead of removing the lines, I merely commented them out.  I saw references to these lines earlier, but I thought they only caused a problem with filenames using non-standard characters.  Obviously that was incorrect.  Thanks for working with me on getting this resolved.

  • Author

glad I could help.

 

I recommend to edit the plugin file, otherwise you have to do it every reboot.

Works well. Thank you.

 

For those that follow I installed here

 

Install directory:    /usr/local/plex

Library directory:    /mnt/cache/.apps/plex

Temp directory:  /mnt/cache/.apps/plex/tmp

Run as user:  nobody

 

and had to create the install folders manually and change their ownership (chown) to nobody/users before it would run.

 

Thanks again

 

Works well. Thank you.

 

For those that follow I installed here

 

Install directory:    /usr/local/plex

Library directory:    /mnt/cache/.apps/plex

Temp directory:   /mnt/cache/.apps/plex/tmp

Run as user:   nobody

 

and had to create the install folders manually and change their ownership (chown) to nobody/users before it would run.

 

Thanks again

 

 

Those are my settings as well, with the addition of having to comment out the locale information in the .sh file as well.

I'm trying to get this to start but I am having the same issue that aiden was having before.

 

Install directory:    /usr/local/plex

Library directory:    /mnt/cache/Apps/Plex

Temp directory:  /mnt/cache/Apps/Plex/tmp

Run as user:  nobody

 

My library directory contains my previous Plex library. I might have to start over and do what joeshmoe1 did and see if that works.

  • Author

If you have one, you don't have to start over.

Just set the rights with:

chown -R nobody:users /path/to/your/library/

 

I don't do this in my script, because with a big library it takes about 5 min to do it.

(and I don't think its an good idea to do this every reboot)

 

please check if you have the same issues like aiden with "export LC_ALL="en_US.UTF-8". (see above)

 

n8

spidi,

 

I manage to get it to work with your suggestion above. I also corrected the path of my Library to /mnt/cache/Apps/Plex/Libary which fixed the issue.

 

Thank you very much! I'm slowly switching over all apps that I installed to the new plug in system. Still learning the code for the plugin system. Hopefully someone can port over Airvideo and Subsonic to the new plugin system. :)

  • Author

you have to go to:

 

http://IP:32400/manage

 

or use the Link on the settings page

If you have one, you don't have to start over.

Just set the rights with:

chown -R nobody:users /path/to/your/library/

 

I don't do this in my script, because with a big library it takes about 5 min to do it.

(and I don't think its an good idea to do this every reboot)

You should still be doing this.  Even if it takes a while on the first install it will need to be done.  On subsequent runs it will take very little time since it has already been changed.

you have to go to:

 

http://IP:32400/manage

 

or use the Link on the settings page

 

I'm an idiot... That's worked... thank-you v. much  ;D

  • 2 weeks later...

Not sure if anyone else has the issue of Plex on AppleTV crashing or audio being out of sync, but I read that the fix was for an updated ffmpeg.  I wrote up this tutorial on how to replace the ffmpeg in Plex's dir to the new one

 

http://forums.plexapp.com/index.php/topic/31286-ffmpeg-update-for-unraid/page__gopid__202430#entry202430

 

I went a step further and (hope you don't mind) edited the plg to add the new ffmpeg and new path.  It's working here.  Hope this helps someone.

 

EDIT

Forget it, this doesn't work :(  Sorry all

plex-0.9.3.5-noarch-0.4ds.plg.savestheday.txt

I'm not sure why but I get "We're sorry but there was a problem attempting to play 'name': null" when playing any videos from my TV Shows share. All videos in my Movies share works properly.

 

I never got that error before I moved to the new plug in system. Did anyone experience this issue?

  • Author

no Sorry.

 

but what have you used before?

I ask because, if you haven't set the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR variable,

the directory order is a little bit different.

 

Maybe thats the problem.

 

Forgive me but I figured out why I was getting the NULL error when playing my TV Shows. I changed the season structure of all the TV Shows thereby, the Plex TV Shows library is now pointing to old directory.

 

I had to update my Plex TV Shows library. Not sure why Plex did not update it automatically since I set it to update my Library when it detects changes to my folders.

 

Sorry for the user error.

  • Author

no problem

 

the main thing is its working.  ;)

  • Author

Already updated all my clients  ;)

 

Plugin is nearly ready, i'm waiting only for the new download link.

  • Author

Plugin with the Laika prerelease is ready.

 

If someone wants to try it, say so and I sent you a PM with the link.

 

i'll have a go at it, so link plz ;)

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.