I had a working setup on Ubuntu 18.04, running Plex 1.15. After updating to 1.16, my server is no longer reachable, even though the service is marked as “active”. So I tried downgrading to 1.15 which didn’t solve the problem. Then I tried installing the .deb from the new linux installer topic. Installation is successful, and this happens when i start the service:
root@Ubuntu-1804-bionic-64-minimal ~ # sudo service plexmediaserver start
root@Ubuntu-1804-bionic-64-minimal ~ # sudo service plexmediaserver status
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2019-06-21 18:30:56 CEST; 3s ago
Process: 2640 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: 2642 (sh)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/plexmediaserver.service
├─2642 /bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE="PC" PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)" PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-re
└─2652 /usr/lib/plexmediaserver/Plex Media Server
Jun 21 18:30:56 Ubuntu-1804-bionic-64-minimal systemd[1]: Starting Plex Media Server...
Jun 21 18:30:56 Ubuntu-1804-bionic-64-minimal systemd[1]: Started Plex Media Server.
root@Ubuntu-1804-bionic-64-minimal ~ # ps aux | grep plex
plex 2642 0.0 0.0 4628 832 ? Ss 18:30 0:00 /bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE="PC" PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)" PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib "/usr/lib/plexmediaserver/Plex Media Server"
plex 2652 0.0 0.0 396948 28512 ? Sl 18:30 0:00 /usr/lib/plexmediaserver/Plex Media Server
root 2664 0.0 0.0 18960 1088 pts/0 S+ 18:31 0:00 grep --color=auto plex
However, the server is not reachable anymore according to plex web, or by going to http://ip:32400. There are also no recent lines in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log.
Does anyone know what happened here, or what I did wrong? Thanks for the assistance!
I followed to steps, unfortunately without success. Going to the server ip in my browser gives me a connection refused error, and also when I try on the box directly:
Did Plex’s UID/GID change or permissions to /var/lib/plexmediaserver get changed to root ? It’s about the only thing which would halt a running system.
sudo journalctl -xe | grep -i plex
Look through there, see if you spot any major errors from when PMS starts.
Also,
sudo systemctl restart plexmediaserver
sudo systemctl status plexmediaserver
journalctl doesnt show any errors, just a bunch of stops and starts.
The sudo systemctl restart plexmediaserver command hangs, i have to manually kill -9 the /usr/lib/plexmediaserver/Plex Media Server process. Then when I run it:
root@Ubuntu-1804-bionic-64-minimal ~ # sudo systemctl start plexmediaserver
root@Ubuntu-1804-bionic-64-minimal ~ # sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-06-21 20:32:48 CEST; 6s ago
Process: 3591 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: 3593 (sh)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/plexmediaserver.service
├─3593 /bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE="PC" PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)" PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-re
└─3603 /usr/lib/plexmediaserver/Plex Media Server
Jun 21 20:32:48 Ubuntu-1804-bionic-64-minimal systemd[1]: Starting Plex Media Server...
Jun 21 20:32:48 Ubuntu-1804-bionic-64-minimal systemd[1]: Started Plex Media Server.
That fixed it, thanks so much! I checked ownership of some files, but not all haha. I did not manually change anything here so not sure what happened, but at least its fixed now
Because of how OS upgrades usually go, I keep my metadata in /home/plexdata
I create a simple override file to access it there.
This method allows PMS to survive an OS re-installation easily.
If your wired network settings are correct, PMS will find the internet.
If the computer can’t get to the internet, that’s something you’ll need to work out.