Solved - Plex after update to 1.16.1321 - connection refused in web gui

Joined
Sep 24, 2015
Messages
5
Hi all,

first of all, english is not my first language, so please bare with me.

Im running Freenas 11.1-U7 with PlexPassMediaServer in a iocage.

Im facing an issue regarding updating Plexmediaserver from version 15.5.994 to 1.16.2.1321.
Im doing a PKG upgrade and the upgrade is running fine.
After the upgrade is complete, im unable to access the web gui at 192.168.1.X:32400/web, I get a connection refused in the browser.
I´ve tried several browsers and computers, the issue persist.
I´ve restarting plexserver and the Freenas server, the issue persist.
Rolling back to a previous snapshot and its working fine again.
I´ve tried updating several times with the same result.

I followed the guide in https://www.youtube.com/watch?v=9rLLsoW7Fbo and tried updating with the steps below without succes, I get the same issue.

1 - load your Plex Server management web-console (running on FreeNAS server)
2 - download the new version from the "Please install manually" link (it's a .tar.bz2 file)
3 - extract both the bz2 and the tar archive using something like 7zip and rename the resulting folder "plexmediaserver"
4 - load your FreeNAS web-console in another tab
5 - go to Services, enable SSH, and edit its configuration to allow the root-user to login
6 - open WinSCP (in Explorer mode if possible)
7 - connect via SSH to your FreeNAS server as the root user
8 - navigate to /mnt/YourJailsPool/iocage/jails/YourPlexJail/root/usr/local/share
9 - open WinSCP's terminal and stop your plex jail (iocage stop plexJailName), and close the terminal **OR** just stop the jail from FreeNAS's Jails section
10 - rename "plexmediaserver" to something else
11 - drag-and-drop your newly extracted/renamed "plexmediaserver" folder into the WinSCP window to upload it
12 - get properties on it, and recursively set root:wheel and mode 775
13 - open the plexmediaserver folder click the "Plex Media Server" file and create a symbolic link to "Plex_Media_Server"
14 - open WinSCP's terminal again and use "chmod -h 775 Plex_Media_Server to make sure your link has the same permissions as the original
15 - also in the terminal, restart your jail "iocage start plex" **or** just restart the jail from FreeNAS's Jails section
16 - don't forget to re-disable root login via ssh



Anybody have an step-by-step guide or a link to a solution?
 
Last edited:

sretalla

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

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
1. in your jail for plex (iocage console plex), install wget and ca_root_nss (pkg install wget ca_root_nss)
2. still in the jail, go to somewhere you have rights, like /usr/local (cd /usr/local) and create a file by running ee (ee PMS_updater.sh)
3. paste the code from the script file on github (https://github.com/ryanakata/PMS_Updater/blob/master/PMS_Updater.sh), then press esc to exit the editor and select to save the file.
4. make the file you just created executable (chmod 755 PMS_updater.sh)
5. run it (./PMS_updater.sh -u <plex.tv_username> -a -v)

Then when you are done entering your password a couple of times, it's updated.

To update next time,
in your jail for plex (iocage console plex), go to the script directory (cd /usr/local) and run it (./PMS_updater.sh -u <plex.tv_username> -a -v)
 
Joined
Sep 24, 2015
Messages
5
After doing ln -sf /lib/libc.so.7 /usr/lib/libdl.so.1, Im getting the error below when running the script:

Using URL https://plex.tv/api/downloads/1.json?channel=plexpass
Downloading https://plex.tv/api/downloads/1.json?channel=plexpass
Password:
--2019-07-21 08:25:21-- https://plex.tv/api/downloads/1.json?channel=plexpass
Resolving plex.tv (plex.tv)... 99.80.242.242, 99.80.231.223, 99.81.213.165
Connecting to plex.tv (plex.tv)|99.80.242.242|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://plex.tv/pms/downloads/5.json?channel=plexpass [following]
--2019-07-21 08:25:21-- https://plex.tv/pms/downloads/5.json?channel=plexpass
Reusing existing connection to plex.tv:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: '/tmp/1.json?channel=plexpass'

1.json?channel=plex [ <=> ] 19.46K --.-KB/s in 0s

Last-modified header missing -- time-stamps turned off.
2019-07-21 08:25:21 (110 MB/s) - '/tmp/1.json?channel=plexpass' saved [19925]

Download Complete
Searching https://plex.tv/api/downloads/1.json?channel=plexpass for the FreeBSD download URL ....../PMS_updater.sh: perl: not found
Could not find a FreeBSD download link on page https://plex.tv/api/downloads/1.json?channel=plexpass
 

Gleepwurp

Cadet
Joined
Mar 22, 2014
Messages
5
Hi Jesper,

in your jail, install perl: pkg add perl5-5.28.2

I just found this thread as I was looking for the same thing, and this last command installed perl and allowed me to complete the Plex upgrade.

G.
 
Joined
Sep 24, 2015
Messages
5
Hi all, thank you for all your help, I was able to update Plex using the steps in this thread :)

1. in your jail for plex (iocage console plex), install wget and ca_root_nss (pkg install wget ca_root_nss)
2. still in the jail, go to somewhere you have rights, like /usr/local (cd /usr/local) and create a file by running ee (ee PMS_updater.sh)
3. paste the code from the script file on github (https://github.com/ryanakata/PMS_Updater/blob/master/PMS_Updater.sh), then press esc to exit the editor and select to save the file.
4. make the file you just created executable (chmod 755 PMS_updater.sh)
5. run ln -sf /lib/libc.so.7 /usr/lib/libdl.so.1
6. run pkg install perl5-5.28.2
7. run ./PMS_updater.sh -u <plex.tv_username> -a -v
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
5. run ln -sf /lib/libc.so.7 /usr/lib/libdl.so.1
6. run pkg install perl5-5.28.2
If you run a freshly installed plugin jail under 11.2, you should normally not need these steps. With older jails from 11.1 or before, perhaps you will.

Also, please remember that if you do a pkg update && pkg upgrade at some point, you need to run the PMS_updater.sh again right after as the plex pkg will effectively get "downgraded" to whatever was last in the quarterly ports.
 

Bmck26

Dabbler
Joined
Dec 9, 2013
Messages
48
I'm having the same issue accessing the webui after upgrading the iocage jail. I'm stuck on step 5, it says Read-only file system when I run ln -sf /lib/libc.so.7 /usr/lib/libdl.so.1 to make the link.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you are still running corral like you say in your sig, it's no great surprise it's not working.

If you are using 11.2-U5 and just forgot to update the sig, you may not need steps 5 & 6 if you created the jail on that version of the OS.
 

Bmck26

Dabbler
Joined
Dec 9, 2013
Messages
48
I'm on the latest stable version, 11.2 with a pluginV2. Step 5 was the only one that didn't work but I'm still not able to get to the WebUI. I'll try rolling back to and trying again
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is the service started?
 

Bmck26

Dabbler
Joined
Dec 9, 2013
Messages
48
I could never figure out why I was able to get the GUI to work again so I reinstalled Plex. If I can't get it to work within a couple of hours then it's faster to just reinstall it since my libraries are complicated.
 
Top