mstinaff / PMS_Updater

Shell script for updating the Plex Media Server inside the FreeNAS Plex plugin
MIT License
442 stars 90 forks source link

Plex will not start after update #33

Closed statik1983 closed 1 year ago

statik1983 commented 5 years ago

Running Freenas 11.1-U7, with Plex installed originally from Plugins GUI and then updated with PMS-Updater for years. Was not getting the latest Plex update for some time, so decided to update PMS-Updater. After doing this and running the update script Plex will not start, issue number one. Second issue, when trying to run the script to revert back to older Plex version 1.14 that I had previously working fine I get the following output:

root@plexmediaserver_1:/ # ./PMS_Updater.sh -v -f -n
/lib/libc.so.7: version FBSD_1.5 required by /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/lib/libpython2.7.so.1 not found
Using URL https://plex.tv/api/downloads/5.json
Downloading https://plex.tv/api/downloads/5.json
--2019-02-24 07:40:22-- https://plex.tv/api/downloads/5.json
Resolving plex.tv (plex.tv)... 63.32.177.143, 52.31.211.151, 54.171.147.115, ...
Connecting to plex.tv (plex.tv)|63.32.177.143|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Last-modified header missing -- time-stamps turned off.
--2019-02-24 07:40:22-- https://plex.tv/api/downloads/5.json
Reusing existing connection to plex.tv:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘/tmp/5.json’

5.json [ <=> ] 24 --.-KB/s in 0s

2019-02-24 07:40:23 (3.43 MB/s) - ‘/tmp/5.json’ saved [24]

Download Complete
Searching https://plex.tv/api/downloads/5.json for the FreeBSD download URL .....Could not find a FreeBSD download link on page http s://plex.tv/api/downloads/5.json
root@plexmediaserver_1:/ #

statik1983 commented 5 years ago

Had to revert back to 1.14.

./PMS_Updater.sh -l PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2 -v -a -f

kryndis commented 5 years ago

See this comment from the Plex forums for how to fix it by modifying your plexmediaserver rc file under /usr/local/etc/rc.d inside the jail: https://forums.plex.tv/t/i-updated-to-plexmediaserver-1-15-0-659-9311f93fd-and-now-i-cant-access-server-setting/377180/14

Made the modifications from that post (note that it doesn't contain the 'export TMPDIR="/tmp"' line that was in my rc file. Recommend leaving that line if you have it and simply inserting the added identification variable lines above it, along with the change to the LD_LIBRARY_PATH export) and I now have Plex running perfectly at version 1.15.1.710.

Not sure if making these modifications automatically based on the intended installation version found by PMS_Updater is outside the scope of the project or not. I'll let one of the regular contributors decide if this should be added to the script.

statik1983 commented 5 years ago

Has anyone else tried this and confirmed it worked?

afoliaco commented 5 years ago

not working form me

raitono commented 5 years ago

I was having a similar issue. Media agents were no longer retrieving metadata and I was not able to access any settings, I only received a message saying "Server settings are not available." I'm not sure when it started, because I don't access settings often and didn't notice any other interruption. I am currently on version 1.15.2.793.

I made the changes according to @kryndis 's comment above and restarted the server. I am now able to access the settings and agents are working again.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.