Jump to content


Photo

0.9.6.3 for unRAID


  • Please log in to reply
168 replies to this topic

#1 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 05 June 2012 - 11:54 AM

Hi,

since 0.9.6.3 there is a unRAID (Slackware) installation package. (V5.x only)

It will install the plex media server to "/usr/local/plexmediaserver"
and creates the default installation settings in "/boot/config/plugins/plexmediaserver/plex_settings.cfg"
since 0.9.6.6 to "/boot/config/plugins/plexmediaserver/settings.ini"


You can edit your settings via unRAID Webinterface (Settings->Network Services->Plex Media Server)

Attached File  pms_nettwork_settings.png   26.33KB   1124 downloads
Attached File  pms_settings.png   32.26KB   831 downloads



RECOMMENDATION: don't use hidden folders for your Library or Tmp directory, use "cache only" shares...


to start PMS:
"/etc/rc.d/rc.plexmediaserver start" or restart your server or stop/start your array

to stop PMS:
"/etc/rc.d/rc.plexmediaserver stop" or stop your array

INSTALLATION
  • copy PlexMediaServer-*-unRAID.txz to /boot/extra/ (this installs PMS on every reboot)
  • install with installpkg /boot/extra/PlexMediaServer-*-unRAID.txz
  • edit the settings file to your needs. (see above)

If you used an other plugin before...., delete the corresponding *.plg file and reboot your server, else you have two PMS installed.

UPDATE
  • stop PMS
  • cd /boot/extra
  • removepkg PlexMediaServer-your-old-version-unRAID.txz
  • rm PlexMediaServer-your-old-version-unRAID.txz
  • wget http://plex-download...ecf4-unRAID.txz
  • installpkg PlexMediaServer-0.9.6.6.200-b75ecf4-unRAID.txz
  • start PMS

or





Have FUN

#2 local.bin

local.bin

    Dedicated Member

  • Members
  • PipPipPip
  • 268 posts
  • Location: South of England.

Posted 05 June 2012 - 12:32 PM

Thanks spidi, much appreciated.

To be clear, this build doesn't work with Plex plugins for v5b is that correct?

Cheers

Xperia Z Ultra (4.2.2)

Xperia Tablet Z (4.2.2)

Sony GS7 x 2 (Firmware 3.2)

Galaxy Tab 7.7 3G (4.1.2)

Synology 1512+

Unraid (5.x)


#3 Soul

Soul

    Dedicated Member

  • Members
  • PipPipPip
  • 276 posts
  • Location: Maidenhead, UK

Posted 05 June 2012 - 12:38 PM

So what's the difference between this method of running Plex and the current method of downloading/extracting the tarball and using one of the couple of existing unRAID plugins to start/stop the PMS etc?

Is this build tuned for unRAID and therefore safer/better?

(I'm just trying to understand if it's worth switching :) )

#4 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 05 June 2012 - 01:10 PM

its the slackware way of install packages.

I try to integrate the plugin webpage (to enable/disable PMS).

at the moment its only easier to install than the tar.gz files.

@local.bin not with mine at least

#5 jubei

jubei

    Dedicated Member

  • Members
  • PipPipPip
  • 302 posts

Posted 05 June 2012 - 01:32 PM

Having issues starting it with the RC script:

/etc/rc.d/rc.plexmediaserver start
chown: missing operand after `:users'

EDIT

nvm, got past that (had to specify top level folder, not App support) but now it just hangs when starting it. I made sure it was set to enabled in the cfg file.

EDIT2
Okay rebooted with the commands in my GO script. Looks like it's hung on "Change owner of existing Plex Media Server Library Directory". That might take a while :)


EDIT3
Okay finally started. Thx!

AppleTV 3 | Roku 3 | Plex Media Server on unRAID | (2) Mac Mini's | OpenELEC w/ PleXBMC | iPad Mini | iPhone 5


#6 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 05 June 2012 - 01:36 PM

Having issues starting it with the RC script:

/etc/rc.d/rc.plexmediaserver start
chown: missing operand after `:users'


can you show me your settings file?
/boot/config/plugins/plexmediaserver/plex_settings.cfg

#7 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 05 June 2012 - 01:42 PM

Having issues starting it with the RC script:

/etc/rc.d/rc.plexmediaserver start
chown: missing operand after `:users'

EDIT

nvm, got past that (had to specify top level folder, not App support) but now it just hangs when starting it. I made sure it was set to enabled in the cfg file.


did you run it as root before? if so I think it changes the owner of your Library. this can took a while...

#8 Mike

Mike

    Member

  • Members
  • PipPip
  • 59 posts

Posted 05 June 2012 - 06:42 PM

Ok, I'm trying to get this going as well..

I've copied PlexMediaServer-0.9.6.3.140-9c9f5ce-unRAID.txz into the extras folder. I ran the script to install it, and I've edited the plex_settings.cfg file to match where my existing library and tmp files are (which happens to be /mnt/cache/plex and /tmp/plex).

I then executed the START command, but nothing seems to be happening.

I am getting an error (which I believe is from the old script)

The error is: /etc/rc.d/rc.plex: line 211: /usr/local/plex/Plex Media Server: No such file or directory

----

Do I need to remove all unnecessary parts of the former script in order to get this to run cleanly? If so, can you point out which files and folders I should be removing so as to cause as little confusion going forward as possible?

edit: I did finally get it all working.. Just had to add a '/' to the end of my path for my library, and deleted all the old plugin stuff, then rebooted. Found my library, all appears to be working.. I'm a happy camper. Now on to some DLNA testing.

Thanks

Mike

Mike

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Plex Media Server running on UNRAID Server with 17.75 TB (15 TB REAL STORAGE) (Quad Core 2.6GHZ XEON Processor)

Using 4 Roku Clients, 2 HP Touchpads (Android 4.1 Based), 2 iPad Minis, Samsung Galaxy S3

SickBeard, Couch Potato, Headphones, SABNZBD


#9 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 05 June 2012 - 07:28 PM

Ok, I'm trying to get this going as well..

I've copied PlexMediaServer-0.9.6.3.140-9c9f5ce-unRAID.txz into the extras folder. I ran the script to install it, and I've edited the plex_settings.cfg file to match where my existing library and tmp files are (which happens to be /mnt/cache/plex and /tmp/plex).

I then executed the START command, but nothing seems to be happening.

I am getting an error (which I believe is from the old script)

The error is: /etc/rc.d/rc.plex: line 211: /usr/local/plex/Plex Media Server: No such file or directory

----

Do I need to remove all unnecessary parts of the former script in order to get this to run cleanly? If so, can you point out which files and folders I should be removing so as to cause as little confusion going forward as possible?

edit: I did finally get it all working.. Just had to add a '/' to the end of my path for my library, and deleted all the old plugin stuff, then rebooted. Found my library, all appears to be working.. I'm a happy camper. Now on to some DLNA testing.

Thanks

Mike


you have to use /etc/rc.d/plexmediaserver start

#10 Rodger Combs

Rodger Combs

    Transcoder Engineer

  • Plex Employee
  • PipPipPip
  • 149 posts

Posted 05 June 2012 - 08:55 PM

I'd love to see a PLG for this.

#11 Rodger Combs

Rodger Combs

    Transcoder Engineer

  • Plex Employee
  • PipPipPip
  • 149 posts

Posted 06 June 2012 - 02:58 AM

AUGHK. plex_check_dirs can cause some major problems during startup if either of the 2 paths points to a user share. If either dir doesn't exist, don't try to create it; that'll just break stuff. Instead, log an error and die. Creating a dir in /mnt/user prematurely can prevent shfs from ever mounting, which breaks ALL THE THINGS.
Also, register an event listener for disks_mounted to start Plex and another for unmounting_disks to stop Plex.

#12 Rodger Combs

Rodger Combs

    Transcoder Engineer

  • Plex Employee
  • PipPipPip
  • 149 posts

Posted 06 June 2012 - 04:14 AM

(DISREGARD THIS, I COOK SOCKS)

#13 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 06 June 2012 - 06:38 AM

AUGHK. plex_check_dirs can cause some major problems during startup if either of the 2 paths points to a user share. If either dir doesn't exist, don't try to create it; that'll just break stuff. Instead, log an error and die. Creating a dir in /mnt/user prematurely can prevent shfs from ever mounting, which breaks ALL THE THINGS.
Also, register an event listener for disks_mounted to start Plex and another for unmounting_disks to stop Plex.


plex_check_dirs does his job if you start plex, and if you start plex and your array is not up, thats your problem......

and as I mentioned before, its work in progress...

#14 Loophole

Loophole

    Member

  • Members
  • PipPip
  • 59 posts

Posted 06 June 2012 - 11:25 AM


Having issues starting it with the RC script:

/etc/rc.d/rc.plexmediaserver start
chown: missing operand after `:users'


did you run it as root before? if so I think it changes the owner of your Library. this can took a while...


Found the cause of this error

in the Check_dirs() method of the rc script there are 2 points that need fixing
In the If that checks the owner of the tmp folder there is a $PLEX_TMP or something similar which should be $DEFAULT_TMP
and in the line below that $RUNAS should be $DEFAULT_RUNAS

This should fix the error As spidi says this is a WIP and we do appreciate all his hard work!

HTH

Loophole

#15 spidi

spidi

    Member

  • Members
  • PipPip
  • 87 posts

Posted 06 June 2012 - 11:32 AM

Found the cause of this error

in the Check_dirs() method there are 2 points that need fixing
In the If that checks the owner of the tmp folder there is a $PLEX_TMP or something similar which should be $DEFAULT_TMP
and in the line below that $RUNAS should be $DEFAULT_RUNAS

This should fix the error As spidi says this is a WIP and we do appreciate all his hard work!

HTH

Loophole


thanks for that, but I found and fixed this already. ;) (I don't like copy and paste, but I do it anyway)

#16 Loophole

Loophole

    Member

  • Members
  • PipPip
  • 59 posts

Posted 06 June 2012 - 11:39 AM

thanks for that, but I found and fixed this already. ;) (I don't like copy and paste, but I do it anyway)

aah I just got down to checking it after work, kids, dinner etc.

I assume the fixes will be reflected in the dl link on the main dl page?

Again thanks for making a nice native plugin for UNRAID

#17 Tobias Hieta

Tobias Hieta

    Plex Dev Team

  • Plex Employee
  • PipPipPipPipPipPip
  • 3646 posts
  • Location: Gävle, Sweden

Posted 06 June 2012 - 11:47 AM

I will make a new build tomorrow, swedish national holiday today :)

Follow me on twitter @tobiashieta or G+


#18 jubei

jubei

    Dedicated Member

  • Members
  • PipPipPip
  • 302 posts

Posted 06 June 2012 - 02:53 PM

did you run it as root before? if so I think it changes the owner of your Library. this can took a while...


Yes I ran as root previously. It did take a while but finally worked.

AppleTV 3 | Roku 3 | Plex Media Server on unRAID | (2) Mac Mini's | OpenELEC w/ PleXBMC | iPad Mini | iPhone 5


#19 Rodger Combs

Rodger Combs

    Transcoder Engineer

  • Plex Employee
  • PipPipPip
  • 149 posts

Posted 07 June 2012 - 11:07 PM

plex_check_dirs does his job if you start plex, and if you start plex and your array is not up, thats your problem......

and as I mentioned before, its work in progress...

The issue is that plex_check_dirs appears to be running at startup, not after array start or when run manually. It works fine if I install manually after startup, though.

#20 NoodleMaps

NoodleMaps

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 08 June 2012 - 01:29 AM

The Scanning of my TV shows won't stop. Been scanning the TV directory for the last 24+ hours. Why would this be?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users