TrueNAS 12.0 - Server cannot initialize

Server Version#: 1.23.2.4656
Player Version#: Plex Web- Unknown version.
TrueNAS version: TrueNAS-12.0-U4
Jail version: 12.2-RELEASE
CPU: Intel(R) Xeon(R) CPU E3-1265L V2
Hardware acceleration: disabled.

On a TrueNAS manual jail, installing PMS following [this guide](https://www.reddit.com/r/freenas/comments/eoit3k/plex_install_update_with_manual_plex_update/). The server throw an error after initializing on the WebUI.

On the other hand, if I skipped the PMS_Updater.sh and run the pkg PMS version 1.22.1.4228-724c56e62 by running the following command

> service plexmediaserver_plexpass start

after the step

> sysrc plexmediaserver_plexpass_enable=YES

Everything runs fine. account linked, libraries added and scanned, metadata updated, media played ok. [Except I have to use “Plex TV Series (BETA)” as the TV agent; otherwise, it cannot match any show at all. Let’s save that for another topic.]

If I resume the PMS_Updater.sh installation, everything seems ok except it throws an error whenever I click on the server setting tab.

The server settings page error has other side effects and I had encountered it since May. It was the primary reason I have to reinstall the PMS again.

PMS_Updater.sh strikes again!

There’s been some churn in the Plex build tooling, and whether or not LD_LIBRARY_PATH needs to be set in the environment for Plex to run correctly.

That’s accounted for in the FreeBSD pkg - the provided RC script makes sure that Plex works correctly.

But if you use PMS_Updater.sh, you’re breaking the FreeBSD packaging. You’re orphaning the pkg, and there’s no guarantee that the old RC script is still correct for the new Plex binaries.

Modify your /usr/local/etc/rc.d/plexmediaserver_plexpass script to export LD_LIBRARY_PATH:

On line ~56 you’ll see this:

export SCRIPTPATH="/usr/local/share/plexmediaserver-plexpass"

Add a new line after it, so it looks like this:

export SCRIPTPATH="/usr/local/share/plexmediaserver-plexpass"
export LD_LIBRARY_PATH="${SCRIPTPATH}/lib"
2 Likes

Thank you very much!

It works!

Where should I report this bug? Or could you report it?

The maintainer of the FreeBSD pkg is aware and running it down with the Plex team. :slight_smile:

Server settings unavailable - #90 by feld

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.