FreeBSD Plex Media Server does not start, nothing in the error logs

Server Version#: 1.20.3.3483
Player Version#: Unknown

uname -a
FreeBSD ambient.027esc.net 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64

I did not install Plex into a jail. I installed it via packages.

I’m not sure where to go for troubleshooting. I thought it was working. I removed it and reinstalled it. It still won’t start.

Any suggestions? Google points to issues about FreeBSD 10…

-JJ

I have the same problem!

Plex seems to depend on readline.so.7
freebsd 12.2 only seems to have readline 8 available.

running pkg check -B gives the following output
/usr/local/share/plexmediaserver-plexpass/Resources/Python/lib/python2.7/lib-dynload/readline.so - required shared library libreadline.so.7 not found

Ignore that, we ship all that’s needed for PMS and python.

In fact if that was the problem the logs would be full of errors related to python/system bundle.

@Sjostrand are you sure you have the same issue? As in the server was claimed at one point but can’t connect to it? Is it listed in you’re devices?

I’m sorry, i meant to go back to correct my “findings”, but i couldn’t find the post :wink:

I did a sanity check with PKG and got an error about dependencies… and jumped to faulty conclusions. I get the same error after doing a rollback to last working copy of Plex media server. So that’s definitely not it… sorry.

I’m running in a standard Jail on Truenas. I updated my jail to 12.2 and plex stopped working, the service just wouldn’t start, there is nothing in any logs under plex’s log folder.
I tried creating a fresh jail… then I could get an empty database running, claim the server and “use it”, But as soon as I switched to use “my” database, the service would again refuse to start!

I’ve rolled back (thank you snapshots) and now everything is working again on the old jail

Hum I wonder if its 12.2, I haven’t run it there yet, my host is on 12.2 but jails are in 12.1, we also build in 11.3 to keep support for FreeNAS, Do you guys knwo if Truenas is using 12.2 now too?

I did test a while ago but it was in beta builds that where on 12.0 IIRC.

btw if the service refuses to start its not the same issue, perhaps its best to open a new thread and I’ll try to follow up there.

On a machine running TrueNAS-12.1-Nightlies, the kernel is FreeBSD 12.2.

FreeBSD truenas.local 12.2-STABLE FreeBSD 12.2-STABLE 4bcd4d07518(freenas/12-stable) TRUENAS  amd64

An older jail running a 12.1 environment and Plex from .tar.bz has been working fine. I just updated the jail to 12.2 successfully, too.

Additionally, a fresh jail with a 12.2 environment and Plex from pkg install plexmediaserver is also working fine. I was able to claim it and add media.

Was able to confirm this is something with 12.2 possibly, at least this was my experience on Truenas 12.0 and with a jail running 12.2

I setup a new 12.2 jail and installed the latest Plexpass version 1.20.4.3517 and Plex server refused to start in the jail. I then created a second jail using 12.1 and had no issues and the Plex server started correctly.

OK in that case I would suggest you stick to 12.1 for now.

If you still have access to the old jail can you see if PMS is segfaulting? If you can you try to run it directly? Theres a start.sh script in /usr/local/share/plexmediaserver that should help with that.

Sorry about the delay, I was able to successful start PMS after using the script. But I am unable to start the service normally.

That’s odd but might suggest it doesn’t like something in your DB.

Make sure there’s no leftover processing running from starting via start.sh (maybe restart the Jail).

Then restart using the rc.d the service and get PMS logs, they should be in $Jail_Root/Plex Media Server/Logs

Also look in /var/log/messages, if PMS is segfaulting it should be logged there.

Here are the logs.

Messages Logs

Nov 24 20:55:40 Plex-Test newsyslog[1274]: logfile first created
Nov 24 20:55:40 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 20:58:54 Plex-Test syslogd: exiting on signal 15
Nov 24 20:59:19 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 21:06:42 Plex-Test syslogd: exiting on signal 15
Nov 24 21:08:51 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 21:09:10 Plex-Test syslogd: exiting on signal 15
Nov 24 21:12:50 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 21:16:19 Plex-Test pkg-static[4237]: pkg-1.15.10 installed
Nov 24 21:17:58 Plex-Test pkg[4294]: plexmediaserver-plexpass-1.20.4.3517 installed
Nov 24 21:21:03 Plex-Test syslogd: exiting on signal 15
Nov 24 21:21:34 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 21:23:12 Plex-Test dhclient[5121]: receive_packet failed on epair0b: Device not configured
Nov 24 21:23:12 Plex-Test dhclient[5121]: ioctl(SIOCGIFFLAGS) on epair0b: Operation not permitted
Nov 24 21:23:12 Plex-Test dhclient[5121]: Interface epair0b no longer appears valid.
Nov 24 21:23:12 Plex-Test dhclient[5121]: No live interfaces to poll on - exiting.
Nov 24 21:23:12 Plex-Test dhclient[5121]: exiting.
Nov 24 21:23:12 Plex-Test dhclient[5121]: connection closed
Nov 24 21:23:12 Plex-Test dhclient[5121]: exiting.
Nov 24 21:23:12 Plex-Test syslogd: exiting on signal 15
Nov 24 21:24:06 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 24 21:28:03 Plex-Test syslogd: exiting on signal 15
Nov 24 21:30:02 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel
Nov 26 14:11:12 Plex-Test syslogd: exiting on signal 15
Nov 26 14:11:47 Plex-Test syslogd: kernel boot file is /boot/kernel/kernel

Plex Media Server Log

(File removed)

I think you posted the same log twice.

You are right, sorry about that, for some reason it wouldn’t let me post the log as code, saying too many character in body even thought I formatted it as code, weird. But I attached the log file .

You might also need the main FreeNAS /var/log/messages, or maybe run dmesg from the host. If it’s segfaulting I think that goes to the host kernel and gets logged there, not inside the jail.

thanks @Volts yeah for /var/log/messages it needs to be from the host not jail (sorry I should have clarified)

That’s only one PMS logs (the dir should have a a few more) but I don’t see evident crashes… are you sure PMS is stopping? Or is it maybe just not reachable from web? which could be a different issue?

Check sockstat -l46 and confirm its actually not running, if it is, then something else is up, the logs show a epairb interface so you are using vnet which is needed.

btw have you tried on a new clean jail but still 12.2? does that work?

Perhaps there something in the DB PMS is not liking, but again nothing in the log seems to suggest that.

oh actually

Nov 26, 2020 14:11:48.650 [0x80ae2ba00] DEBUG - HTTP 401 response from GET https://plex.tv/media/providers?X-Plex-Token=
Nov 26, 2020 14:11:53.531 [0x80e087a00] DEBUG - HTTP 401 response from GET https://plex.tv/media/providers?X-Plex-Token=

this might indicate the server somehow as a bad token, which would make it not show in the web app (at least not from app.plex.tv) you might need to re-sign it via the local bundled web app.

Yeah I can see a server recently disconnected and its FreeBSD, I’ll DM some details :slight_smile:

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