Plex Media Server service fails to run

Server Version#: v1.23.0.4497
Player Version#:

Plex and Sonarr both have failed to launch today out of nowhere. I personally didn’t change anything with them, so perhaps an automatic update has caused it. I am uncertain which logs would be best to post so please let me know and I will do so. systemctl shows plexmediaserver.service as failed, with code=exited, status=255/Exception.

Need some log files.

Don’t know where to start without them.

Make a tar.gz of the “Logs” directory and attach it here.

Here are my logs.
logs.tar.gz (208.3 KB)

@merlin8213_gmail_com

Do a ps -ef | grep -i plex

There is a process hung somewhere and keeping the port open which prevents the restart.

May 16, 2021 13:07:10.489 [0x7ffa4ba6bd30] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
May 16, 2021 13:07:10.490 [0x7ffa49f70b38] DEBUG - MyPlex: mapping state set to 'Unknown'.
May 16, 2021 13:07:10.490 [0x7ffa4ba6bd30] ERROR - HttpServer: Error binding acceptor: Address in use
May 16, 2021 13:07:10.490 [0x7ffa4ba6bd30] ERROR - HttpServer: Error opening acceptor on IPv6, falling back to IPv4: Address in use
May 16, 2021 13:07:10.490 [0x7ffa4ba6bd30] ERROR - HttpServer: Error binding acceptor: Address in use
May 16, 2021 13:07:10.537 [0x7ffa49f70b38] DEBUG - Relay: read 1 cached entries from hosts file
May 16, 2021 13:07:10.537 [0x7ffa49f70b38] DEBUG - [CERT/OCSP] HTTP requesting GET http://r3.o.lencr.org/MFMwUTBPME0wSzAJBgUrDgMCGgUABBRI2smg%2ByvTLU%2Fw3mjS9We3NfmzxAQUebRZ5nu25eQBc4AIiMgaWPbpm24CEgODNjtjKSk0bOaB1EDk%2BSuwrA%3D%3D
May 16, 2021 13:07:10.586 [0x7ffa49f70b38] DEBUG - [CERT/OCSP] HTTP/1.1 (0.0s) 200 response from GET http://r3.o.lencr.org/MFMwUTBPME0wSzAJBgUrDgMCGgUABBRI2smg%2ByvTLU%2Fw3mjS9We3NfmzxAQUebRZ5nu25eQBc4AIiMgaWPbpm24CEgODNjtjKSk0bOaB1EDk%2BSuwrA%3D%3D
May 16, 2021 13:07:10.586 [0x7ffa49f70b38] ERROR - [CERT/OCSP] response error: unauthorized.
May 16, 2021 13:07:10.586 [0x7ffa49f70b38] INFO - [CERT/OCSP] couldn't fetch a valid response; retrying in 10800 seconds
May 16, 2021 13:07:10.987 [0x7ffa4ba6bd30] ERROR - Error: Unable to set up server: listen: Address in use (N5boost10wrapexceptINS_6system12system_errorEEE)

Find and kill -9 those pids then wait a minute or two for the sockets to close fully.

Perhaps I don’t quite understand. But when I run ps -ef | grep -i plex I see a few things pop-up. I then run kill -9 on those PIDS but it doesn’t seem to do anything. They disappear for a moment, come back and the plex server still reporting failure to start.

Ok… so it sounds like PMS is already running and restarting when you kill it which means there is one instance already live and you’re attempting to start another ?

Do you have one on the bare host and one in a container ?

Bring it all down for now. sudo systemctl stop plexmediaserver

Let it sit for a minute

Now recheck for hung processes.

If you kill them and they come back Show me.

If all clear, now start PMS.

Little messy, but here is the contents of my terminal. As you can, unless I am doing it incorrectly, I stop the PMS service at the top, check for hung processes, kill them. Then at the end, they are recreated.

Thank you . That pastebin was exactly what I needed to see.

You have the SNAP version installed (what the Ubuntu store distributes) and is largely intended for smaller / lighter use.

If you want the “full up” capability, with hardware transcoding and everything, it’s recommended you install the native Ubuntu package from Plex even though you can make the snap version mostly work.

What do you have now and what would you like to do ?

root       17040       1  0 17:16 ?        00:00:00 /bin/bash /snap/plexmediaserver/211/wrapper.sh
root       17074   17040  0 17:16 ?        00:00:00 /bin/bash /snap/plexmediaserver/211/wrapper.sh
root       17075   17074  4 17:16 ?        00:00:02 ./Plex Media Server

I don’t recall ever installing the SNAP version (didn’t know it was a thing). I installed Plex via Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More so this is a bit confusing for me.

Somewhere you installed from the Ubuntu app store.

That’s probably what started this. Somewhere underneath this is your real Plex server

Please do the following:

sudo snap list

See if you see Plex in that list. You should (based on what you showed me)

After you confirm it,

sudo snap remove plexmediaserver

This will remove that package.

Now let’s see if your real server is underneath.

sudo dpkg -l | grep -i plex

You should see plexmediaserver listed

Please confirm for me what you have now.

Removing snap PMS and restarting the PMS service seemed to have fixed it. PMS is still listed with sudo dpkg -l | grep -i plex. Also for future readers of this, I had to use sudo snap remove plexmediaserver --purge as snap kept attempting to create a snapshot which it simply just hung up on.

Thank you for updating my knowledge of snap.

To confirm:

sudo snap remove plexmediaserver --purge

Yes. Perhaps to be used with caution as It does remove it completely without a backup in case you did in fact need it. But for my situation where I had no use nor ever used it, it worked perfectly.

Also thank you so much for helping out! I really appreciate it.

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