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
I’m sorry, i meant to go back to correct my “findings”, but i couldn’t find the post
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.
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.
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
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.
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.
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.