I am having some trouble connecting to my Plex Media Sever “all of a sudden”. I have been using it for many years but today it stopped working for no apparent reaseon.
When I try to connect to my plex server from my phone with the Plex App I can see that I am disconnected. If I try to connect from a computer (192.168.1.200:32400/web/) I get connection refused. I can SSH to the computer (anders@192.168.1.200) without any problem and have other applications (eg. Flexget) running that requires internet connectivity and they are all working fine.
If I run “systemctl status plexmediaserver” I get the following output:
plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-23 07:21:52 CET; 2min 58s ago
Process: 2507 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPOR
Main PID: 2511 (sh)
Tasks: 6 (limit: 4417)
CGroup: /system.slice/plexmediaserver.service
├─2511 /bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE=
└─2529 /usr/lib/plexmediaserver/Plex Media Server
Mar 23 07:21:52 computername systemd[1]: Starting Plex Media Server...
Mar 23 07:21:52 computername systemd[1]: Started Plex Media Server.
If I run “sudo netstat -lnpt” I get the following output:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1882/smbd
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1768/Xtightvnc
tcp 0 0 0.0.0.0:8112 0.0.0.0:* LISTEN 1612/python
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1768/Xtightvnc
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 1047/systemd-resolv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1503/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1864/master
tcp 0 0 0.0.0.0:5050 0.0.0.0:* LISTEN 2432/python
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1882/smbd
tcp 0 0 0.0.0.0:58846 0.0.0.0:* LISTEN 1305/python
tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN 1305/python
tcp 0 0 127.0.0.1:44579 0.0.0.0:* LISTEN 2432/python
tcp6 0 0 :::139 :::* LISTEN 1882/smbd
tcp6 0 0 :::22 :::* LISTEN 1503/sshd
tcp6 0 0 :::445 :::* LISTEN 1882/smbd
tcp6 0 0 :::6881 :::* LISTEN 1305/python
“ps aux | grep -i plex*” gives me:
plex 2511 0.0 0.0 4628 872 ? Ss 07:21 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 2529 0.0 0.7 402204 28628 ? Sl 07:21 0:00 /usr/lib/plexmediaserver/Plex Media Server
anders 2654 0.0 0.1 64916 6144 pts/0 T 07:24 0:00 systemctl status plexmediaserver
anders 3787 0.0 0.0 14428 1004 pts/0 S+ 07:31 0:00 grep --color=auto -i plex*
Finally, “journalctl -xe | grep -i plex” gives me:
-- Subject: Unit plexmediaserver.service has begun start-up
-- Unit plexmediaserver.service has begun starting up.
Mar 23 07:21:16 toshiban systemd[1]: Started Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Unit plexmediaserver.service has finished starting up.
Mar 23 07:21:45 toshiban sh[1386]: what(): Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64"'
Mar 23 07:21:45 toshiban sh[1386]: ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.15.2.793-782228f99/PLEX MEDIA SERVER/51d8c4fa-50b5-e18a-2100dc9c-025f1f31.dmp
Mar 23 07:21:47 toshiban systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=134/n/a
Mar 23 07:21:47 toshiban systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Mar 23 07:21:52 toshiban systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Mar 23 07:21:52 toshiban systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 1.
-- Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Mar 23 07:21:52 toshiban systemd[1]: Stopped Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Unit plexmediaserver.service has finished shutting down.
Mar 23 07:21:52 toshiban systemd[1]: Starting Plex Media Server...
-- Subject: Unit plexmediaserver.service has begun start-up
-- Unit plexmediaserver.service has begun starting up.
Mar 23 07:21:52 toshiban systemd[1]: Started Plex Media Server.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Unit plexmediaserver.service has finished starting up.
If I look in “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports” I cannot find the directory 1.15.2.793-782228f99. Attached you will find Plex Media Server.log.
Server Version#: Unable to find
OS: Ubuntu Server#: 18:04
Plex Media Server.log (3.7 MB)
Can someone pleae help me to resolved this or point me in the right direction?
Best regards
Anders