Can't start Plex after upgrade

Toydoll

Dabbler
Joined
Sep 17, 2015
Messages
33
Hi

So let's make this a long story short:

1. I upgraded freenas from 11.2 to 11.3U1
Worked fine.
2. Upgraded the jails from 11.2 to 11.3
Did not work at first but after som help from the forum it went well.
3. Upgraded Plex from 1.15.something to the latest, 1.19.1.2589
Did not work at first, see this thread. Managed to get it to work eventually by entering "pkg bootstrap -f".

Now my problem is that I can't get Plex to work, at all. I've tried restarting the iocage and the service, even the whole machine. That did not help.

What little info I can give you:
When I enter "service plexmediaserver_plexpass start" it says:
Code:
Starting plexmediaserver_plexpass.

And yet, when I enter "service plexmediaserver_plexpass status" I get
Code:
plexmediaserver_plexpass is not running.


I have made no other changes on Freenas.
Freenas version: 11.3-U1

I don't know which logs are of use so... here are three that might or might not be relevant.
/usr/local/plexdata-plexpass/Plex Media Server/Logs/Plex Media Server.log
This one has a ton of line in it uring the last minutes. I'll copy the last ones, let me know if the earlier ones are of any use.
Note: The timestamps in the log are from around the time I updated Plex (can't tell if it was before or after). Meaning that it says nothing about my tries to get it to work from today.

Code:
Apr 05, 2020 02:45:49.238 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:45:51.245 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:45:53.256 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:45:55.259 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:45:57.291 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:45:59.299 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:01.305 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:03.349 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:05.352 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:07.352 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:08.179 [0x80c653300] DEBUG - Completed: [192.168.1.113:60307] -2 GET /player/proxy/poll?deviceClass=pc&protocolVersion=1&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (5 live) TLS GZIP 20009ms 5 bytes (pipelined: 225)
Apr 05, 2020 02:46:08.187 [0x80c652e00] DEBUG - Auth: authenticated user 1 as sebkar
Apr 05, 2020 02:46:08.187 [0x80d027d00] DEBUG - Request: [192.168.1.113:60307 (Allowed Network)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=1&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (5 live) TLS GZIP Signed-in Token (sebkar)
Apr 05, 2020 02:46:09.377 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:11.379 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:13.381 [0x80ca5a900] WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99", couldn't check file: "/usr/local/share/plexmediaserver-plexpass/Resources/Plug-ins-782228f99"
Apr 05, 2020 02:46:14.337 [0x80bcd2f00] DEBUG - Shutting down with signal 15 (Terminated)





/Plex/root/var/log/messages
Code:
Last login: Sun Apr  5 12:22:13 on ttys001
/Volumes/iocage/jails/Plex/root/var/log/messages ; exit;
Sebastians-MBP:~ sebastian$ /Volumes/iocage/jails/Plex/root/var/log/messages ; exit;
/Volumes/iocage/jails/Plex/root/var/log/messages: line 1: Jan: command not found


...more of the same lines...


/Volumes/iocage/jails/Plex/root/var/log/messages: line 24: Apr: command not found
/Volumes/iocage/jails/Plex/root/var/log/messages: line 25: syntax error near unexpected token `('
/Volumes/iocage/jails/Plex/root/var/log/messages: line 25: `Apr  5 03:19:38 Plex root: /usr/sbin/service: WARNING: $growfs_enable is not set properly - see rc.conf(5).'
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]





/iocage/log/Plex-console
Code:
Sun Apr  5 12:10:18 CEST 2020

Stopping cron.
Waiting for PIDS: 18487.
.
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
32-bit compatibility ldconfig path: /usr/lib32
Setting hostname: Plex.
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether ac:1f:6b:31:41:eb
    hwaddr 02:69:d0:00:06:0b
    inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting plexmediaserver_plexpass.
Starting cron.

Sun Apr  5 12:33:50 CEST 2020


It's a good thing this community is so nice, I have no idea how I would survive otherwise, so thanks!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
It's probably quicker to just make a new Plex jail and copy your data over (or better still separate it out of the jail if you didn't already).
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
That. Use danb35's script, or my fork of it (I think mine works better on 11.3); use the instructions on the forums to rsync your metadata over.

I am literally now putting the finishing touches on a video about that. If I can figure out YouTube, that should be available tonight, in roughly 8-10 hours.
 

anmnz

Patron
Joined
Feb 17, 2018
Messages
286
FWIW: I had the same problem yesterday after upgrading Plex and fixed it with pkg install libidn2 in the Plex jail.

I turned up rc.conf logging in the jail, found an error message saying curl couldn't run because the libidn2 library was missing, installed the package, and Plex started and has been behaving normally.

(I'm only mentioning this in case it's of interest, not as a recommendation. I shall be rebuilding the Plex jail from scratch as I don't want it in this odd state where I don't really know why it broke or what might break next time...)
 
Joined
Jan 4, 2014
Messages
1,644
Looks like there is a problem with the 1.19.1.2589 package. A workaround is to downgrade back to 1.18.8.2527. I'm using @danb35's script. This is what I had to do to revert back.

Shell into the Plex jail.

To see the version of Plex installed:

pkg info plexmediaserver-plexpass

It should indicate version 1.19.1.2589.

Delete the installed package:

pkg delete plexmediaserver-plexpass

The previous packages are located in /var/cache/pkg.

Code:
cd /var/cache/pkg
ls

You should see the previous version 1.18.8.2527 (or maybe a slightly later version). Install it.

pkg add plexmediaserver-plexpass-1.18.8.2527.txz

Start the plex service (note the underscore instead of the dash):

service plexmediaserver_plexpass start

Plex should now be operating again on the previous version.

EDIT: I'm not sure what the process is to report package issues, but there's quite a lot of detail about the issue in this Plex forum thread.
 
Last edited:

Spiceman

Dabbler
Joined
Oct 4, 2017
Messages
24
I had same issue with latest Plex pkg. I just rolled it back to my latest jail snapshot.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,974

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Plexmediaserver-plexpass is the beta code. If you want things to be stable, stick with Plexmediaserver.
 
Joined
Jan 4, 2014
Messages
1,644

Spiceman

Dabbler
Joined
Oct 4, 2017
Messages
24
Plexmediaserver-plexpass is the beta code. If you want things to be stable, stick with Plexmediaserver.
That is interesting. I guess i missed that somewhere. Is there a reference or something that plexmediaserver-plexpass is beta? Is that a Plex decision or ?

Not questioning your statement or anything, i just try to stay informed...lol
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
@Spiceman Its just how the package maintainers have labeled things.

plexpass enables several things, among them access to beta code.

From a license standpoint, you need a plexpass sub to download the beta releases. FreeBSD maintainer packages it as plexmediaserver-plexpass.

With or without a PlexPass, the stable code is available, and it is packaged as plexmediaserver. Of course you can use all PlexPass features on stable code.

See https://www.plex.tv/media-server-downloads/ for the two FreeBSD versions, and https://support.plex.tv/articles/201844613-early-access-beta-releases/ for a discussion of beta releases.

Edit: FreeNAS is now clearer about this in the plugin list since 11.3.
 
Last edited:

Spiceman

Dabbler
Joined
Oct 4, 2017
Messages
24
@Spiceman Its just how the package maintainers have labeled things.

plexpass enables several things, among them access to beta code.

From a license standpoint, you need a plexpass sub to download the beta releases. FreeBSD maintainer packages it as plexmediaserver-plexpass.

With or without a PlexPass, the stable code is available, and it is packaged as plexmediaserver. Of course you can use all PlexPass features on stable code.

See https://www.plex.tv/media-server-downloads/ for the two FreeBSD versions, and https://support.plex.tv/articles/201844613-early-access-beta-releases/ for a discussion of beta releases.

Edit: FreeNAS is now clearer about this in the plugin list since 11.3.
@Yorick Interesting. Thanks for the info.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I wish I found this thread earlier. The fix I used was to comment out
Code:
#iocage exec "${JAIL_NAME}" cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/
#iocage exec "${JAIL_NAME}" sed -i '' "s/quarterly/latest/" /usr/local/etc/pkg/repos/FreeBSD.conf
#iocage exec "${JAIL_NAME}" rm -rf /configs
#iocage exec "${JAIL_NAME}" pkg upgrade -y

lines in the script to prevent it from getting the latest version.
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
You can also instruct the script to fetch the stable version, by leaving the PLEXPASS variable at 0, and you won't run into this issue.
 

gdog0

Dabbler
Joined
Mar 2, 2020
Messages
17
Just chiming in, my CRON updated last night and plexmediaserver-plexpass wasn't working this morning. Did a bunch of somewhat blind troubleshooting and googling to no avail. Rolled back my snapshot and it was right back up.

I then saw this:

Ran:
pkg install p5-Locale-libintl
pkg install libidn2

Then updated and restarted and it's working now on the newer version.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,974
Ran:
pkg install p5-Locale-libintl
pkg install libidn2

Then updated and restarted and it's working now on the newer version.
This would be good info to forward to Feld so he can fix the port.
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
plexmediaserver, the stable pkg, was promoted to plexmediaserver-1.18.9.2578 this Sunday. Updated itself automatically (because danb35's script with auto-update), and kept running.

I get the desire for new versions, I do, and - beta code for a Plex that's not a pure testing instance? I'm surprised at folk running plexmediaserver-plexpass as their daily driver.
 
Joined
Jan 4, 2014
Messages
1,644
I'm surprised at folk running plexmediaserver-plexpass as their daily driver.
Don't be too surprised. Some of us are also beta testers for Plex ;)
 

hertzsae

Contributor
Joined
Sep 23, 2014
Messages
118
I believe the reason for the beta version being called plexmediaserver-plexpass is that the plex team used to release two wholly different binaries for free users and plexpass users. If you wanted plexpass features or beta installs, you needed to install the plexpass version. Fairly long ago, they improved it, so that both binaries had plexpass features as long as you logged into it with a plexpass account. Now the only reason to install the plexpass binary is to beta test.
 
Top