Plex Server Unreachable After FreeNAS server reboot

Status
Not open for further replies.

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Hello everyone,

I'm having trouble reconnecting to my Plex Media Server after rebooting my FreeNAS server as part of a system update (I'm going along with the FreeNAS-9.3-STABLE train). Within the FreeNAS GUI, everything appears to be running fine--it reports my plex jail is up and running, the plugin appears on the left panel, and the "click here to access your Plex Media Server!" popup happens when I click it--but from there, no dice; I get a "fail to open page" error in my browser. Logging in from plex.tv unfortunately does not enable access to the server, either.

My plex plugin is the latest (non-Plex Pass) version of 0.9.12.19. I've installed it via the built-in plugin GUI.

Has this happened to anyone else? Does anyone have any advice? I greatly appreciate any thoughts you may have. At this point, I'm looking at trying a complete plex reinstall that I'm not sure will even work. If I attempt that, though, I'd also appreciate any advice anyone has on how to migrate over my plex library database.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
From your jail, can you ping your router? It's possible the IP for your jail is misconfigured.
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Thanks for your reply! Yes, just tried that and it worked. Doesn't seem to be any issues there. Here's my shell output:

--- 192.168.24.1 ping statistics ---
88 packets transmitted, 88 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.236/0.568/11.403/1.479 ms
root@plexmediaserver_1:/ #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you did enable the plugin from the Plugins > Installed tab right?
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Yes, I switched the service status toggle to on. Have cycled the off and on to no avail.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, I switched the service status toggle to on. Have cycled the off and on to no avail.
Can you cycle it to on, then run the following in the plex jail
Code:
service plexmediaserver onestatus
sockstat | grep plex
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Sure. Here's the output:

root@plexmediaserver_1:/ # service plexmediaserver onestatus
plexmediaserver is running as pid 74911.

root@plexmediaserver_1:/ # sockstat | grep plex
plex Plex DLNA 75075 13 udp4 *:1900 *:*
plex Plex DLNA 75075 14 dgram -> ??
plex Plex DLNA 75075 15 dgram -> ??
plex Plex DLNA 75075 16 tcp4 *:1052 *:*
plex Plex DLNA 75075 17 dgram -> ??
plex Plex DLNA 75075 18 dgram -> ??
plex Plex DLNA 75075 19 udp4 *:14194 *:*
plex Plex DLNA 75075 20 dgram -> ??
plex Plex DLNA 75075 21 dgram -> ??
plex Plex DLNA 75075 22 udp4 *:1562 *:*
plex Plex DLNA 75075 23 dgram -> ??
plex Plex DLNA 75075 24 dgram -> ??
plex Plex DLNA 75075 25 tcp4 *:32469 *:*
plex Plex DLNA 75075 26 dgram -> ??
plex Plex DLNA 75075 27 dgram -> ??
plex Plex DLNA 75075 28 udp4 *:49916 *:*
plex Plex DLNA 75075 29 dgram -> ??
plex Plex DLNA 75075 30 dgram -> ??
plex Plex DLNA 75075 31 udp4 *:11541 *:*
plex Plex DLNA 75075 32 dgram -> ??
plex Plex DLNA 75075 33 dgram -> ??
plex Plex DLNA 75075 34 tcp4 192.168.24.116:29104 192.168.24.63:59446
plex Plex DLNA 75075 35 dgram -> ??
plex Plex DLNA 75075 36 dgram -> ??
plex Plex DLNA 75075 58 tcp4 127.0.0.1:41451 127.0.0.1:53242
plex Plex DLNA 75075 69 udp4 192.168.24.116:12288 192.168.24.1:53
plex python 74912 4 tcp4 *:53242 *:*
plex Plex Media 74911 52 tcp6 *:32400 *:*
plex Plex Media 74911 53 tcp6 *:32401 *:*
plex Plex Media 74911 68 udp4 *:32414 *:*
plex Plex Media 74911 70 udp4 *:32410 *:*
plex Plex Media 74911 71 udp4 *:32412 *:*
plex Plex Media 74911 72 udp4 *:32413 *:*
plex Plex Media 74911 73 udp4 127.0.0.1:21171 *:*
plex Plex Media 74911 74 udp4 192.168.24.116:61730 *:*
plex Plex Media 74911 75 udp4 127.0.0.1:64232 *:*
plex Plex Media 74911 76 udp4 192.168.24.116:52994 *:*
root@plexmediaserver_1:/ #


Thank you so much for your help.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Looks like it is running, and is listening on port 32400 IPv6.
Not sure that is normal, but I'm assuming to access it you'd need to specify the IPv6 URL for the plugin. While the link you're trying to click is an IPv4 address.
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Hmm. Thanks so much for your help. Best to just disable IPv6 then? Not sure how to disable IPv6 though...I think it is disabled, as I don't have it set to autoconfigure. Do you have any thoughts?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm. Thanks so much for your help. Best to just disable IPv6 then? Not sure how to disable IPv6 though...I think it is disabled, as I don't have it set to autoconfigure. Do you have any thoughts?
Not sure. There settings on the Jails tab. But maybe someone else can weigh in cause I don't know much about IPv6
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Can anyone else weigh in? Not having any luck at this point accessing my media server.

If no advice on that, any on how to recover the plex server database?

Thanks.
 

chrisada

Explorer
Joined
Dec 1, 2015
Messages
58
Within the FreeNAS GUI, everything appears to be running fine--it reports my plex jail is up and running, the plugin appears on the left panel, and the "click here to access your Plex Media Server!" popup happens when I click it--but from there, no dice; I get a "fail to open page" error in my browser.

What URL does the 'click here to access' brings you to? Is it ipv4 on port 32400 or ipv6?

Sent from my Nexus 6P using Tapatalk
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

chrisada

Explorer
Joined
Dec 1, 2015
Messages
58
Can anyone else weigh in? Not having any luck at this point accessing my media server.

If no advice on that, any on how to recover the plex server database?

Thanks.
It sure looks like you have ipv6 turned on, which somehow is causing this problem. As was already suggested, please try to disable this by going to the Jail screen in FreeNAS UI, click "Edit Jail" (spanner icon on the bottom) and remove all ipv6 values.

Or, perhaps try the instructions here: https://forums.freenas.org/index.php?threads/26608/
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Thank you everyone. I have tried the first idea (removing all IPv6 values) without luck but will now try the instructions in the link. I'll update with the results once I have a go.
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Ok, I've tried the steps in the link. I think it should work, but unfortunately the "/usr/pbi/plexmediaserver-amd64/plexdata/Plex Media Server/Preferences.xml" file doesn't exist...I think the Preferences.xml file must have moved in the newer Plex Media server version (the post was from this past January). In particular, plexdata is not a folder anymore. Does anyone know where to look instead for the newer Plex version? I'm running 0.9.12.19.

Thank you all for any help you can provide. I really appreciate it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, I've tried the steps in the link. I think it should work, but unfortunately the "/usr/pbi/plexmediaserver-amd64/plexdata/Plex Media Server/Preferences.xml" file doesn't exist...I think the Preferences.xml file must have moved in the newer Plex Media server version (the post was from this past January). In particular, plexdata is not a folder anymore. Does anyone know where to look instead for the newer Plex version? I'm running 0.9.12.19.

Thank you all for any help you can provide. I really appreciate it.
A few versions ago I moved plexdata to /var/db/plexdata
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
Thanks for the help! I found the current location of the Preferences.xml file and successfully edited it. Here's my current output from the sockstat | grep plex:

plex Plex DLNA 17266 31 udp4 *:37389 *:*
plex Plex DLNA 17266 32 dgram -> ??
plex Plex DLNA 17266 33 dgram -> ??
plex Plex DLNA 17266 34 tcp4 192.168.24.116:26824 192.168.24.63:47636
plex Plex DLNA 17266 35 dgram -> ??
plex Plex DLNA 17266 36 dgram -> ??
plex Plex DLNA 17266 58 tcp4 127.0.0.1:53305 127.0.0.1:13914
plex Plex DLNA 17266 69 udp4 192.168.24.116:39558 192.168.24.1:53
plex Plex DLNA 17266 77 tcp4 127.0.0.1:32400 127.0.0.1:24197
plex python 17256 9 tcp4 *:13914 *:*
plex Plex Media 17255 52 tcp4 *:32400 *:*
plex Plex Media 17255 53 tcp4 *:32401 *:*
plex Plex Media 17255 58 tcp4 192.168.24.116:32400 192.168.24.214:54489
plex Plex Media 17255 67 tcp4 192.168.24.116:32400 192.168.24.214:54490
plex Plex Media 17255 68 udp4 *:32414 *:*
plex Plex Media 17255 69 tcp4 192.168.24.116:32400 192.168.24.214:54491
plex Plex Media 17255 70 udp4 *:32410 *:*
plex Plex Media 17255 71 udp4 *:32412 *:*
plex Plex Media 17255 72 udp4 *:32413 *:*
plex Plex Media 17255 73 udp4 127.0.0.1:18962 *:*
plex Plex Media 17255 74 udp4 192.168.24.116:44912 *:*
plex Plex Media 17255 75 udp4 127.0.0.1:12493 *:*
plex Plex Media 17255 76 udp4 192.168.24.116:52626 *:*



So, all IPv4. Unfortunately, I still cannot connect to the server. It continues to say the server unexpectedly drops the connection. I've tried disabling security, still doesn't work. Ugh.
Any advice?

If not, any thoughts on how to migrate my data out of the current jail to a new plex installation, on a different jail?

Thank you for your time and thoughts. I really appreciate all the help, and for developing this in the first place...it's such a great product, I'm experiencing a great loss missing it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks for the help! I found the current location of the Preferences.xml file and successfully edited it. Here's my current output from the sockstat | grep plex:

plex Plex DLNA 17266 31 udp4 *:37389 *:*
plex Plex DLNA 17266 32 dgram -> ??
plex Plex DLNA 17266 33 dgram -> ??
plex Plex DLNA 17266 34 tcp4 192.168.24.116:26824 192.168.24.63:47636
plex Plex DLNA 17266 35 dgram -> ??
plex Plex DLNA 17266 36 dgram -> ??
plex Plex DLNA 17266 58 tcp4 127.0.0.1:53305 127.0.0.1:13914
plex Plex DLNA 17266 69 udp4 192.168.24.116:39558 192.168.24.1:53
plex Plex DLNA 17266 77 tcp4 127.0.0.1:32400 127.0.0.1:24197
plex python 17256 9 tcp4 *:13914 *:*
plex Plex Media 17255 52 tcp4 *:32400 *:*
plex Plex Media 17255 53 tcp4 *:32401 *:*
plex Plex Media 17255 58 tcp4 192.168.24.116:32400 192.168.24.214:54489
plex Plex Media 17255 67 tcp4 192.168.24.116:32400 192.168.24.214:54490
plex Plex Media 17255 68 udp4 *:32414 *:*
plex Plex Media 17255 69 tcp4 192.168.24.116:32400 192.168.24.214:54491
plex Plex Media 17255 70 udp4 *:32410 *:*
plex Plex Media 17255 71 udp4 *:32412 *:*
plex Plex Media 17255 72 udp4 *:32413 *:*
plex Plex Media 17255 73 udp4 127.0.0.1:18962 *:*
plex Plex Media 17255 74 udp4 192.168.24.116:44912 *:*
plex Plex Media 17255 75 udp4 127.0.0.1:12493 *:*
plex Plex Media 17255 76 udp4 192.168.24.116:52626 *:*



So, all IPv4. Unfortunately, I still cannot connect to the server. It continues to say the server unexpectedly drops the connection. I've tried disabling security, still doesn't work. Ugh.
Any advice?

If not, any thoughts on how to migrate my data out of the current jail to a new plex installation, on a different jail?

Thank you for your time and thoughts. I really appreciate all the help, and for developing this in the first place...it's such a great product, I'm experiencing a great loss missing it.
you can copy your /var/db/plexdata to a working jail. you disabled security in the freenas plex menu, in the left panel?
 

EHA

Dabbler
Joined
May 23, 2014
Messages
10
thanks for the tip on var/db/plexdata c/p to a working jail. I did disable security in the freenas plex menu but it still didn't work.
 
Status
Not open for further replies.
Top