I updated to PlexMediaServer-1.15.0.659-9311f93fd and now I can't access server setting

Awesome, have not had any issues before with plex and have not used plex for more than a year so totally novice. thanx @lolotlse

You welcome

Are you still having issues with the newer version though?

FYI I repeat my self but I strongly recommend you guys use the port/pkg system rather that a custom script!

Best option is to just use pkgng in a iocage jail.

This way you can just rung pkg upgrade as soon as the port is updated and built (which should take more than 2 days)

EDIT: In fact in newer version AFAIK they are just using iocage-plugins so that’s what they do, they probably point to their own repo though.

Did the 1.15.x versions get pulled from pkg repos? I am on 1.14.1.5488 in my freenas jail and it has been a while since the 1.15.x releases, but pkg still reports my 1.14.x version as the latest available.

<host> # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
<host> # pkg info | grep plexmediaserver
plexmediaserver-plexpass-1.14.1.5488 Plex Media Server component

UPDATE: ignore this, the freebsd kg config was set to quarterly in the new jail I set up on 11.2.

Finally Its work.
Stop plex. Becareful some pids could not be kill by the process. Force kill Them
service plexmediaserver_plexpass stop
Kill process not kill kill -9 pid
Modify the rc.d on /usr/local/etc/rc.d/plexmediaserver_plexpass
Modify this line export LD_LIBRARY_PATH="${SCRIPTPATH}/lib" OK
Give ownership to plex
chown -R plex:plex /usr/local/share/plexmediaserver-plexpass
Start your plex
service plexmediaserver_plexpass start

Enjoy
I hope it could be help somebody

1 Like

You don’t need and shouldn’t really touch the permissions on the install dir.

With my freenas 11.2
For me I don’t know why but my plex server not work if dont touch perms. Because yesterday i had try make the same change without change permissions and not work.

Another Change i make fresh install pluginV2 freenas plexplass and use PMS_Update.sh

If you are going to start a fresh plex jail, I would suggest following mike’s recommendation and using pkg to install the ports version directly. It will save you a lot of hassle and pretty much all of the issues mentioned in this thread.

This step is only required for the 11.x iocage jails and even then, only if you want to update PMS on every new release rather than quarterly. Modify /etc/pkg/FreeBSD.conf. Replace quarterly in the url with “latest”.:

  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

And then just install from pkg:
pkg install plexmediaserver
(or if you are using the plex pass version)
pkg install plexmediaserver-plexpass

And finally set it to autostart:
sysrc plexmediaserver_plexpass_enable=YES

And now you have a fully functional plex jail.

If you dont want to have to bother executing the upgrades, you can add a crontab entry in the jail to do it for you:
0 4 * * * env ASSUME_ALWAYS_YES=YES pkg upgrade plexmediaserver >> ~/plexupgrade.log
(or for plex pass)
0 4 * * * env ASSUME_ALWAYS_YES=YES pkg upgrade plexmediaserver-plexpass >> ~/plexupgrade.log

Summary

DO NOT USE
I fixed my installation. For those on FreeNAS 9.10, this should work, but your configuration may be different. See my original post about the problems I encountered. Many thanks to those who have replied, but Ultimately @crossRT’s post (here) guided me in the right direction.

  1. Turn off Plex (you can do this via the plug-ins menu in FreeNAS)
  2. (Optional and Recommended) Make a snapshot of your existing/working install (There is lots of documentation around on how to do this).
  3. Using SSH, go into your Plex jail.
  4. Modify /usr/local/etc/rc.d/plexmediaserver with your favorite text editor
  5. Locate the following line: export LD_LIBRARY_PATH="/usr/pbi/plexmediaserver-amd64/lib/compat:${SCRIPTPATH}"
  6. And change it to: export LD_LIBRARY_PATH="/usr/pbi/plexmediaserver-amd64/lib:${SCRIPTPATH}"
  7. Update Plex to the latest (in my case, I used PMS_Updater, the pre-iocage version).
  8. The script should theoretically auto-start Plex, but if it doesn’t, you can start it from the Plugins menu in FreeNAS.
  9. At this point both Plex and it’s settings page should be working.

I’m not an expert with FreeBSD/FreeNAS, so I’ll try and help where I can if anyone encounters issues, but I can’t promise anything.

Edit: Oh boy, spoke too soon. My server settings are inaccessible. Will update this post when I find the fix.

Edit 2: I was pointing to the wrong path for my lib folder, but I’m back to square one with the same exact issue in my original post. I think there is a dependency issue. Can anyone here confirm they have 1.15 working on FreeNAS 9.10? (Based on FreeBSD 10.3)

I have it working fine on both a 9.10 jail and an 11.2 jail using the method I described above your post. I am running both because I am transitioning over to 11.2 jail setups. The plugin jails for freenas caused too much frustration for me so I have been running this way for a couple years now.

If anyone in the future hits this thread looking for tips on how to manually update Plex (specifically the FreeNAS plugin, but it’s semiuniversal), or having trouble using methods mentioned elsewhere, I made several short, un-narrated videos on doing so manually – see my post on the FreeNAS forums: https://www.ixsystems.com/community/threads/cant-update-plex-on-freenas-11-2.72133/post-503553

These videos/instructions literally are manual (i.e. don’t require using anyone else’s script) using the update’s actual .tar.bz2 file and replacing the old resources with new ones. (Inspired by these old instructions for the previous jail system.)

1 Like

Thank you, this worked for me as well!

To avoid using vi (where I destroy everything I touch) I ran pkg install nano at my jail terminal to install nano and then ran nano /usr/local/etc/rc.d/plexmediaserver to edit the file.

1 Like

This seems also be effecting me but the /lib edit to the rc.d does not work for me.
the service wont start at all. had to revert to 1.14.1 and everything was good.
putting my name here to follow developments.

I am running FreeNAS 11.1-U7 and I followed the steps to update my rc.d and Plex does not start.
I think this only applies to FreeNAS 11.2. Has anyone been able to get this working for 11.1 ?

I’m on FreeNAS-11.1-U7 and the path update worked as intended. I was also able to update to Version 1.15.3.858 using the same 'ole unmodified PMS_updater.sh as well. So i can confirm its working.

If you are having trouble, try manually typing the modified LD_LIBRARY_PATH (not copy paste) in your config to ensure you didn’t pull a hidden character or something. Also it needs to be exactly the same as the example. *nix based platforms are case sensitive.

I ended up getting this to work with a slight variation:

Modify the rc.d on /usr/local/etc/rc.d/plexmediaserver_plexpass
Modify this line export LD_LIBRARY_PATH="${SCRIPTPATH}/lib:$LD_LIBRARY_PATH"

I restarted the jail and was able to access the server settings. I was using the plexpass FreeNAS plugin for version 1.15.2.793.

This doesn’t make much sense, we should only need ${SCRIPTPATH}/li: you are supposedly appending to an existing LD_LIBRARY_PATH but that should be empty on run time.

Try sh -x /usr/local/etc/rc.d/plexmediaserver_plexpass start and look at the output it will be:

export 'LD_LIBRARY_PATH=/usr/local/share/plexmediaserver-plexpass/lib'

Understood, but the change made it work, so there is something to this… :slight_smile:

I’ll try the sh -x test and see what it shows.

Ok, so I went back and looked at what I did; aside from the edit to LD_LIBRARY_PATH, I also chown’ed all of /usr/local/share/plexmediaserver-plexpass to plex:plex (was previously owned by root).

I ran the sh -x test and as mikec_pt notes: the value is the same.

When looking at what files were created in the plex directory, there are several .pyc files (among other things) that were created/updated now vs the package creation date.