Ubuntu 18.04 Plex Media Server: Failed to start Plex Media Server/Address already in use

Server Version#: 1.19.1.2630-72c16a276
Player Version#:

After the last Update of my Plex Media Server on Ubuntu 18.04.4 i get this Info via systemctl status plexmediaserver:

● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-04-09 10:51:32 CEST; 1h 7min ago
  Process: 2056 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print
  Process: 2054 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "$
 Main PID: 2056 (code=exited, status=127)

Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: Stopped Plex Media Server.
Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Apr 09 10:51:32 don-Ubuntu-Server systemd[1]: Failed to start Plex Media Server.

I restarted, i updated and i don’t find anything about those processes (2056, 2054). I’m also not sure if “Start request repeated too quickly” is a problem or not.

Then in the Logs it says that my adress is already in use:

Apr 09, 2020 09:55:22.681 [0x7f6689b74f40] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Apr 09, 2020 09:55:22.681 [0x7f6689b74f40] ERROR - HttpServer: Error binding acceptor: Address already in use
Apr 09, 2020 09:55:22.681 [0x7f6689b74f40] ERROR - HttpServer: Error opening acceptor on IPv6, falling back to IPv4: Address already in use
Apr 09, 2020 09:55:22.681 [0x7f6689b74f40] ERROR - HttpServer: Error binding acceptor: Address already in use
Apr 09, 2020 09:55:22.681 [0x7f6689b74f40] ERROR - Error: Unable to set up server: listen: Address already in use (N5boost10wrapexceptINS_6system12system_errorEEE)

Does that mean i installed the update wrong?
Anybody any Ideas how to fix that?

(Sorry for my bad english and that i’m a bit of a noob here)

Here are the Logs
Logs.zip (1.1 MB)

thanks for the logs.

It means that something is still listening to Plex’s ports. (32400, 32401)

If it restarts too quickly without stopping gracefully, this will happen.

netstat -an | grep -i 324
1 Like

Thanks for the reply.
Unfortunately i cannot find out what it is, that is still listening to Plex’s ports. It says only LISTEN

Could a reinstall help?
Any other ideas?

if you do a ps -ef | grep -i plex does it show any plex-related processes?

1 Like

Yes: (i hope it’s ok to just copy the message)

root      1011     1  0 13:47 ?        00:00:00 /bin/bash /snap/plexmediaserver/69/wrapper.sh
root      1355  1011  0 13:47 ?        00:00:00 /bin/bash /snap/plexmediaserver/69/wrapper.sh
root      1356  1355  0 13:47 ?        00:00:04 ./Plex Media Server
root      1468  1356  0 13:47 ?        00:00:07 Plex Plug-in [com.plexapp.system] /snap/plexmediaserver/69/Resources/Plug-ins-72c16a276/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.1.2630-72c16a276 /snap/plexmediaserver/69/Resources/Plug-ins-72c16a276/System.bundle
root      1915  1356  0 13:47 ?        00:00:00 /snap/plexmediaserver/69/Plex Tuner Service /snap/plexmediaserver/69/Resources/Tuner/Private /snap/plexmediaserver/69/Resources/Tuner/Shared 1.19.1.2630-72c16a276 32600 /waitmutex
don       3075  2449  0 14:18 pts/0    00:00:00 grep --color=auto -i plex

that explains it, you’ve got Plex installed from the Ubuntu SNAP store.

Nornal systemctl will not work with them.

snap start and snap stop.

Personally, I don’t like SNAP. It’s not widely accepted yet.
I prefer to run Linux apps using the host’s native control (systemctl).

For your case, you will need to uninstall from the Ubuntu store and download from plex.tv & install it.

1 Like

That helped, everything works again. Thanks mate, much appreciated!

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