I have PMS running on Ubuntu 16.04.5 LTS. PMS appears to be running, but is not responding when I go to [IP]:32400/web. It was running fine up until a few days ago. I installed using apt, and do automatic updates. Perhaps a recent update broke something? Please help.
bryan@plex:~$ sudo service plexmediaserver status
[sudo] password for bryan:
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: active (running) since Thu 2018-08-23 16:37:42 MDT; 23h ago
Process: 1357 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
Main PID: 1374 (sh)
Tasks: 5
Memory: 46.9M
CPU: 398ms
CGroup: /system.slice/plexmediaserver.service
├─1374 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
└─1377 /usr/lib/plexmediaserver/Plex Media Server
Aug 23 16:37:42 plex systemd[1]: Starting Plex Media Server for Linux...
Aug 23 16:37:42 plex systemd[1]: Started Plex Media Server for Linux.
bryan@plex:~$
Move the library out of the /media directory and you’ll be a LOT better off.
Mount it in some place you create like /storage. /media is owned by Gnome, Nautilus, and the automounter.
Also, if it’s a physical large, locally mounted drive (mounted in /etc/fstab), you’re ok. If it’s a network mount, PMS will not work over the network (file locking requirements)
Hmm. This is a headless box so I shouldn’t need to worry about gnome stuff, right? I will move it though to see if that resolves it. It is a “local” drive. This is actually a VMware esxi guest.
Please restart the server and let it run about 2 minutes then stop it before you grab the logs.
If it sits idle too long, all the important information will have elapsed from the log buffer
Bry,
It’s running and streaming to a ChromeCast. It is seeing the “WAN” designation indicating VPN. If not, the some modem/router is enforcing DNS rebinding protection against *.plex.direct (private) domain.
This ‘relay’ should not be occurring.
Aug 16, 2018 03:01:30.170 [0x7fa7f5bff700] INFO - [PlexRelay] Allocated port 25258 for remote forward to localhost:32401
There are additional steps to check however please verify DNS rebinding is not blocking normal operation and detection.
If you can establish a normal SSH tunnel with http port forwarding and see the Web UI, then the issue is network and not server.
Hmm, still no luck even with port forwarding over SSH. I think the last time it had successfully connected to my chromecast was 8/16, right? I haven’t been able to successfully stream anything since then.
I run DNSMASQ on my router (Ubiquiti USG). I haven’t explicitly blocked DNS rebinding, but I added rebind-domain-ok=/plex.direct/ to my dnsmasq config.
Rebooted router, etc. after DNSMASQ change. Rebooted Plex ubuntu server. Tried SSH port forward again, as well as from my desktop.
I just resolved a case where there were Plex.tv auth problems because of UK ISP MTU limitations.
The default 1500 MTU was too big for the ISP. I’m reviewing your logs now to look for the same misleading “Jumbo Frames” error message
A few more thoughts. It seems that plex isn’t listening on 32400 at all for some reason.
bryan@plex:~$ sudo netstat -plnt | grep ':32400'
and
bryan@plex:~$ sudo lsof -i :32400
both return no results, yet the PMS service seems to be normal:
bryan@plex:~$ sudo service plexmediaserver status
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: active (running) since Sat 2018-08-25 16:56:16 MDT; 56min ago
Process: 1365 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
Main PID: 1384 (sh)
Tasks: 5
Memory: 46.9M
CPU: 318ms
CGroup: /system.slice/plexmediaserver.service
├─1384 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
└─1387 /usr/lib/plexmediaserver/Plex Media Server
Aug 25 16:56:15 plex systemd[1]: Starting Plex Media Server for Linux...
Aug 25 16:56:16 plex systemd[1]: Started Plex Media Server for Linux.
Yep, I’m using putty on a windows box to ssh into my headless ubuntu box. sshd is running fine, since I am SSH’d into it successfully. For good measure:
FYI for future reference- Chuck was able to help me get this fixed. There must’ve been something strange in my Preferences.xml. file. We nuked the current one, which let PMS create a new one after restarting the service, and it came right up. Here are the steps to resolve:
Kill PMS service:
bryan@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ sudo service plexmediaserver stop
Rename the Preferences.xml file to something else:
bryan@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ sudo mv Preferences.xml Preferences.xml.old
Fire up PMS service and wait a few seconds:
sudo service plexmediaserver start
Browse to plex, skip past configuring any new media libraries, and re-config any custom settings again.
I also added rebind-domain-ok=/plex.direct/ to my router’s dnsmasq config to allow dns rebinding. Now my server is working better than before.
Thanks again to Chuck- big kudos for helping me figure this out so quickly.