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.
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
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 ?
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.
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.