Can't update plex anymore

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
As the title says, I have plex running in a jail on TrueNAS-12.0-U2.1. I set up that jail a few months ago and made cron job so that it would upgrade plex (using the PMS_Updater) whenever a new release was available. A few ago I noticed that my plex hadn't been upgraded. I tried to then upgrade it manually but I get this error:

root@plexmediaserver:~ # cd /usr/local/PMS_Updater
root@plexmediaserver:/usr/local/PMS_Updater # sh PMS_Updater.sh -v -a
sed: /Plex Media Server/Preferences.xml: No such file or directory

and complains about "libpython2.7.so.1" not found

Do I need to upgrade my jail? My iocage jail is running 12.2-RELEASE-p3. Everything working fine about a month ago but I updated my TrueNAS server once in that month.
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
`libpython2.7.so.1` is still packaged with the plex tarball
`PlexMediaServer-1.22.2.4282-a97b03fad-FreeBSD-amd64.tar.bz2` is the newest from the website
does the script still have problems if manually downloaded then installed via the script?
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Yes, doing a manual download of the plex installer via fetch works and I can install it with the script fine then. When installing I still get this error though

sed: /Plex Media Server/Preferences.xml: No such file or directory

but the install still completes and plex is upgraded. Is python broken the installer or in my iocage jail?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
Have you set the config directory?

sysrc plexmediaserver_plexpass_support_path="/some_path/goes/here"

You can check it with sysrc plexmediaserver_plexpass_support_path
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Have you set the config directory?

sysrc plexmediaserver_plexpass_support_path="/some_path/goes/here"

You can check it with sysrc plexmediaserver_plexpass_support_path

I just checked it and get an sysrc error:

sysrc: unknown variable: 'plexmediaserver_plexpass_support_path'
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
sysrc: unknown variable: 'plexmediaserver_plexpass_support_path'
OK; so the question is, where are the plex config files... the default location (when you haven't specified one) is "/Plex Media Server/" ... but you say that directory isn't there? or doesn't contain the Preferences.xml ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
Maybe you're not running the plexpass version?
sysrc plexmediaserver_support_path
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
The "/Plex Media Server/" directory is there but only contains a Logs directory.

Code:
sysrc plexmediaserver_support_path


gives the same error as
Code:
sysrc plexmediaserver_plexpass_support_path
can't find the Preferences.xml file anywhere.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
698

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
My version of jail was 12.2-RELEASE-p3 but I updated it to 12.2-RELEASE-p6 now but the error still persists.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
The problem is that it can't find your plex config (seems you're saying it has gone missing), so the updater script can't work (and I'm not sure how plex can be working either in that case).

Was it ever mounted from outside the jail?
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
No, it was never mounted outside the jail. This fresh jail I set up a few months ago because my older one was busted. I used this guide to set it up and the cron job.

 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
I don't think there's a problem with the updater... I think the problem is with your plex install.

Is plex runnning?
 

André Fettouhi

Contributor
Joined
Nov 12, 2016
Messages
108
Yes, it is running just fine. Updating it through the script simply doesn't anymore unless I do a manual download as you suggested previously and the run the script with -l flag.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
Yes, it is running just fine.
How sure are you that you're looking for the Preferences.xml in the jail? If you can't find one, I don't get how plex is running.
 

elorimer

Contributor
Joined
Aug 26, 2019
Messages
194
PMS_Updater.sh has a recent commit addressing this. The problem is in the extraction of the token from Preferences.xml, not from how plex is installed.

Easy fix for me was to edit line 9 of the script adding "config/" like so:
Code:
PLEXTOKEN="$(sed -n 's/.*PlexOnlineToken="//p' config/Plex\ Media\ Server/Preferences.xml | sed 's/\".*//')"
 
Last edited:
Top