Plex not listening on any port

Server Version#:Debian Stretch
Player Version#:Newest

Hi Guys,

I am having trouble installing plex on my debian server.

I am running Debian 9 on kermel 4.9.0-8amd64.

I added the repository and installed plex through apt.

I cannot connect through plex in a web browser to configure it.

I noticed that plex is not listening on any port.

The output of netstat -ntpl is:

sudo netstat -ntpl
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:8999            0.0.0.0:*               LISTEN      962/qbittorrent-nox
tcp        0      0 127.0.0.1:2828          0.0.0.0:*               LISTEN      8414/firefox-esr
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      999/nginx: master p
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      982/sshd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      999/nginx: master p
tcp        0      0 127.0.0.1:8125          0.0.0.0:*               LISTEN      992/netdata
tcp        0      0 0.0.0.0:19999           0.0.0.0:*               LISTEN      992/netdata
tcp6       0      0 :::8999                 :::*                    LISTEN      962/qbittorrent-nox
tcp6       0      0 :::8080                 :::*                    LISTEN      962/qbittorrent-nox
tcp6       0      0 :::80                   :::*                    LISTEN      999/nginx: master p
tcp6       0      0 :::22                   :::*                    LISTEN      982/sshd
tcp6       0      0 :::443                  :::*                    LISTEN      999/nginx: master p
tcp6       0      0 :::19999                :::*                    LISTEN      992/netdata

The service is running fine

 sudo systemctl status plexmediaserver
â—Ź plexmediaserver.service - Plex Media Server for Linux
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-11-28 19:54:20 CET; 15h ago
  Process: 10195 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdi
 Main PID: 10199 (sh)
    Tasks: 5 (limit: 4915)
   CGroup: /system.slice/plexmediaserver.service
           ├─10199 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
           └─10200 /usr/lib/plexmediaserver/Plex Media Server

I have removed/reinstalled plex and rebooted the server.

Any help would be greatly appreciated :slight_smile:

Thanks.

Remove it, download the file and use sudo dpkg -i to install it.

If that does not resolve, could you locate the Logs directory, copy it and zip the copy and attach

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

Thanks for the responses guys.

I uninstalled it and downloaded the latest .deb package and installed it

sudo dpkg -i plexmediaserver_1.14.0.5470-9d51fdfaa_amd64.deb 
Selecting previously unselected package plexmediaserver.
(Reading database ... 39684 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.14.0.5470-9d51fdfaa_amd64.deb ...
Unpacking plexmediaserver (1.14.0.5470-9d51fdfaa) ...
Setting up plexmediaserver (1.14.0.5470-9d51fdfaa) ...
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Processing triggers for systemd (232-25+deb9u6) ...
Processing triggers for mime-support (3.60) ...
ere

Unfortunately it is still not listening on any port

sudo netstat -ntpl
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:8999            0.0.0.0:*               LISTEN      943/qbittorrent-nox 
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      985/nginx: master p 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      959/sshd            
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      985/nginx: master p 
tcp        0      0 127.0.0.1:8125          0.0.0.0:*               LISTEN      968/netdata         
tcp        0      0 0.0.0.0:19999           0.0.0.0:*               LISTEN      968/netdata         
tcp6       0      0 :::8999                 :::*                    LISTEN      943/qbittorrent-nox 
tcp6       0      0 :::8080                 :::*                    LISTEN      943/qbittorrent-nox 
tcp6       0      0 :::80                   :::*                    LISTEN      985/nginx: master p 
tcp6       0      0 :::22                   :::*                    LISTEN      959/sshd            
tcp6       0      0 :::443                  :::*                    LISTEN      985/nginx: master p 
tcp6       0      0 :::19999                :::*                    LISTEN      968/netdata  

For those logs, unfortunately they are not there in the default location.

ls /var/lib/plexmediaserver/Library/Application\ Support/ -al
total 8
drwxr-xr-x 2 root root 4096 Nov 29 19:46 .
drwxr-xr-x 3 root root 4096 Nov 29 16:49 ..
re

No idea why the folder is not there.

It was there the first time I installed it.

Thanks.

cc @ChuckPa

Sorry for the delay. I was in development mode.

Please open a terminal window.
sudo journalctl -xe | grep -i plex

In that output, you will see the reason PMS isn’t starting or is terminating.
If unsure what you are seeing, please copy/paste into a file and attach here.
also, manual logs from sudo tar cfz /tmp/Logs.tgz “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs” (the spaces and capitalization are significant )

When there are no ports, PMS isn’t running.

1 Like

Was able to figure it out.

I had to give plex permissions to /var/lib/plexmediaserver with chown.

Once I did this things started working for me. :slight_smile:

Thanks for the help guys.

When the installer runs, /var/lib/plexmediaserver is created with plex:plex as the owning user.

Is this a pre-existing installation or did you attempt some sort of manual preparation prior?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.