Since yesterday my Plex setup isn’t working.
I have Plex on my Linux Mint PC. It was installed from the package plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb.
I normally watch on my phone (Samsung Galaxy S6) or via Chromecast v2 (streamed from phone).
Today the phone doesn’t seem to find the Plex server. The phone is on the same wifi subnet as the PC.
When I visit http://127.0.0.1:32400/web on the Linux PC (using Chromium 68) I get “Looking for servers… / A server could not be found”
Help please?
Do you still have 1.13.4 handy?
If so please uninstall the binary (don’t purge) and install 1.13.4
Please let me know what you find. I’m tracking a bug.
Hi Chuck
The version I had before wasn’t 1.13.4, it was 1.12.1 (I’m not the most regular updater) - will that do?
Absolutely. This is a simple boolean test.
Older vs Current.
If you can snapshot the failure now
- Restart
- see the failure
- manually capture the logs (Logs directory) in a ZIP / tar gz)
- Swap binaries (stopped of course)
- Start the other version
- See if normal operation returned
- If so, snap another full set the same way.
- Post both , identify clearly please.
I’m roach hunting 
1 Like
After returning to 1.12.1, the same behaviour is observed (web app can’t find server).
Ok Andy… that’s not the smoking gun I was afraid of… Now we can diagnose more calmly.
May I have the logs please?
Go into the file system, drill down into /var/lib/plexmediserver/Library/Application Support/Plex Media Server and make a tar.gz or zip of the ./Logs
dir and attach it. i can look and see what it’s not liking
Logs-1.13.tar.gz (41.0 KB)
Here they are.
Thanks
Andy,
Thanks for the logs.
Am I correct, your server is running on the same machine you’re accessing it from? If so, then accessing it the first time is always done via http://127.0.0.1:32400/web Have you done this and completed the first-run setup wizard ?
Yes, that’s correct. I’m running Plex on the same machine that I’m accessing from, at least for the web app use case.
But when I access via this URL. I don’t get a wizard - I get what appears to be a configured system, but one which doesn’t find the local server.
I have no objection to trashing everything and then recreating my libraries if necessary. I just don’t know how to do that and convince Plex that it’s a clean installation again.
Ok… This tells me the server is sending your browser the Plex/Web browser client (good).
Since you don’t get the sign-in and all that, there’s a MUCH easier way than starting over.
1 Open a terminal window
2 Stop PMS
3 sudo rm -f “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml”
4 Start PMS
5 Open http://127.0.0.1:32400/web in a fresh browser tab.
6 Give it a second to pop up the Welcome, Got-It and then into the Setup Wizard 
Hi Chuck
I followed steps 1-5. When the new window opens, it asks me to log in to my Plex account.
I do that, and I get this:
followed by this when I cancel the Plex pass popup:
I don’t seem to get the setup wizard at any point.
Thanks for your continued patience 
Thank you for that.
Please go grab the logs manually again. I will compare the differences.
This will tell me a lot
Also, do you have a firewall running on the host?
Logs attached.
Logs-1.13.tar.gz (68.0 KB)
Firewall:
$ sudo ufw status
Status: active
To Action From
127.0.0.1 32400 ALLOW 127.0.0.1
You need to unlock all of 127.0.0.1. Without doing so, PMS will not work.
It talks to itself over 127.0.0.1 on many ports transactionally.
Your logs show this is unauthorized. (no / incorrect password because PMS can’t talk correctly)
Aug 13, 2018 18:18:38.480 [0x7f3f4a7ff700] DEBUG - Using X-Forwarded-For: xxxxxxxxx as remote address
Aug 13, 2018 18:18:38.480 [0x7f3f4a7ff700] DEBUG - Request: [192.168.0.150:39912 (WAN)] GET / (7 live) GZIP
Aug 13, 2018 18:18:38.481 [0x7f3f4a7ff700] DEBUG - Completed: [192.168.0.150:39912] 401 GET / (7 live) GZIP 0ms 524 bytes
Aug 13, 2018 18:18:38.481 [0x7f3f4a7ff700] DEBUG - Using X-Forwarded-For: xxxxxxxx as remote address
Aug 13, 2018 18:18:38.481 [0x7f3f4a7ff700] DEBUG - Request: [192.168.0.150:40312 (WAN)] GET / (7 live) GZIP
Aug 13, 2018 18:18:38.481 [0x7f3f4a7ff700] DEBUG - Completed: [192.168.0.150:40312] 401 GET / (7 live) GZIP 0ms 524 bytes
Aug 13, 2018 18:18:38.484 [0x7f3f49ffe700] DEBUG - Using X-Forwarded-For: xxxxxxxxx as remote address
Aug 13, 2018 18:18:38.485 [0x7f3f49ffe700] DEBUG - Request: [192.168.0.150:60050 (WAN)] GET / (7 live) GZIP
Aug 13, 2018 18:18:38.485 [0x7f3f49ffe700] DEBUG - Completed: [192.168.0.150:60050] 401 GET / (7 live) GZIP 0ms 524 bytes
Aug 13, 2018 18:18:38.487 [0x7f3f4a7ff700] DEBUG - Using X-Forwarded-For: xxxxxxxxx as remote address
Aug 13, 2018 18:18:38.488 [0x7f3f4a7ff700] DEBUG - Request: [192.168.0.150:32998 (WAN)] GET / (7 live) GZIP
Aug 13, 2018 18:18:38.488 [0x7f3f4a7ff700] DEBUG - Completed: [192.168.0.150:32998] 401 GET / (7 live) GZIP 0ms 524 bytes
Aug 13, 2018 18:18:38.502 [0x7f3f4a7ff700] DEBUG - Using X-Forwarded-For: xxxxxxx as remote address
Aug 13, 2018 18:18:38.502 [0x7f3f4a7ff700] DEBUG - Request: [10.0.3.1:37252 (WAN)] GET / (7 live) GZIP
Aug 13, 2018 18:18:38.502 [0x7f3f4a7ff700] DEBUG - Completed: [10.0.3.1:37252] 401 GET / (7 live) GZIP 0ms 524 bytes
Aug 13, 2018 18:18:38.507 [0x7f3f4a7ff700] DEBUG - Using X-Forwarded-For: xxxxxxxx as remote address
OK, I:
- shutdown Plex
- changed the firewall:
$ sudo ufw status
Status: active
To Action From
127.0.0.1 ALLOW 127.0.0.1
- removed the existing logs and Preferences.xml
- restarted Plex
- closed my browser and reopened
- browsed to http://127.0.0.1:32400 and got the same result as before
I’ve attached the new logs.
Logs-1.13.tar.gz (12.7 KB)
Andy,
How are you accessing the server? It looks like you’re coming in to it from a remote IP. (29.xx.x)
If this is true, it can’t be setup / run that way.
What is its LAN IP and what is the LAN IP of yours, plus are you indeed local to it?
Yeah, I’m local. I’m using a browser on the same PC. And there are no other machines on the network with Plex server installed (in fact everything else on the network is a phone, tablet, xbox or similar - I am definitely looking at the local instance).
OK, that’s very weird, does it imply something unusual about its network configuration? I’m not at the machine at the moment, but the IP is something like 192.168.0.x (by DHCP from router).
Turn off the firewall completely. Let’s start there
1 Like
Firewall is now off:
$ sudo ufw status
Status: inactive
After removal of Preferences.xml (and previous logs) and machine restart, it’s not working still. I’ve attached the new logs.
Also, here is output of ifconfig:
$ ifconfig
enp3s0 Link encap:Ethernet HWaddr 94:de:80:61:00:8a
inet addr:192.168.0.150 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::96de:80ff:fe61:8a/64 Scope:Link
inet6 addr: fd94:fe22:9cac:3800:96de:80ff:fe61:8a/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28249 errors:0 dropped:0 overruns:0 frame:0
TX packets:14635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13162172 (13.1 MB) TX bytes:2377285 (2.3 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4910 errors:0 dropped:0 overruns:0 frame:0
TX packets:4910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:27277332 (27.2 MB) TX bytes:27277332 (27.2 MB)
lxcbr0 Link encap:Ethernet HWaddr 00:16:3e:00:00:00
inet addr:10.0.3.1 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Logs-1.13.tar.gz (13.2 KB)
Look at your ifconfig
output.
This is what PMS finds.
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - Network interfaces:
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - * 1 lo (127.0.0.1) (loopback: 1)
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - * 2 enp3s0 (192.168.0.150) (loopback: 0)
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - * 2 enp3s0 (192.168.0.6) (loopback: 0)
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - * 3 lxcbr0 (10.0.3.1) (loopback: 0)
Aug 14, 2018 19:49:51.245 [0x7fc2a0256800] DEBUG - Creating NetworkServices singleton.
Where’s the alias?
PMS isn’t in the LXC, is it?
1 Like