Server fails to start after install - log claims error binding/opening acceptor & address in use

Server Version#: v1.26.0.5715-8cf78dab3 - Ubuntu PC x86_64 - build: linux-x86_64 debian
Player Version#:

Hi there,
I think I installed it… read that some changes to a directory permission may be needed, but server still won’t start… figured out where the log files are and found this:
(thanks in advance; hoping to solve this so I can set this up in ubuntu and not have to run in windows)

Apr 30, 2022 18:39:15.191 [0x7f9da2bc7b38] INFO - Plex Media Server v1.26.0.5715-8cf78dab3 - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT -04:00
Apr 30, 2022 18:39:15.191 [0x7f9da2bc7b38] INFO - Linux version: 18.04.5 LTS (Bionic Beaver), language: en-US
Apr 30, 2022 18:39:15.191 [0x7f9da2bc7b38] INFO - Processor: 8-core Intel(R) Core™ i7-6700HQ CPU @ 2.60GHz
Apr 30, 2022 18:39:15.191 [0x7f9da2bc7b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv b587490162c22e078c314e3f7dc560c691d126aa)
Apr 30, 2022 18:39:15.191 [0x7f9da2bc7b38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Apr 30, 2022 18:39:15.191 [0x7f9da2c77d48] DEBUG - BPQ: [Idle] → [Starting]
Apr 30, 2022 18:39:15.192 [0x7f9da2c77d48] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Apr 30, 2022 18:39:15.193 [0x7f9da2c77d48] INFO - SQLITE3:0x80000001, 283, recovered 368 frames from WAL file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Apr 30, 2022 18:39:15.222 [0x7f9da2c77d48] DEBUG - Running migrations. (EPG 0)
Apr 30, 2022 18:39:15.222 [0x7f9da2c77d48] DEBUG - ChangestampAllocator: initialized to 0
Apr 30, 2022 18:39:15.222 [0x7f9da2c77d48] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.35.5, threadsafe=1
Apr 30, 2022 18:39:15.223 [0x7f9da2c77d48] INFO - SQLITE3:0x80000001, 283, recovered 368 frames from WAL file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Apr 30, 2022 18:39:15.225 [0x7f9da2c77d48] DEBUG - Running migrations. (EPG 0)
Apr 30, 2022 18:39:15.234 [0x7f9da2c77d48] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Apr 30, 2022 18:39:15.234 [0x7f9da2c77d48] ERROR - HttpServer: Error binding acceptor: Address in use
Apr 30, 2022 18:39:15.234 [0x7f9da2c77d48] ERROR - HttpServer: Error opening acceptor on IPv6, falling back to IPv4: Address in use
Apr 30, 2022 18:39:15.234 [0x7f9da2c77d48] ERROR - HttpServer: Error binding acceptor: Address in use
Apr 30, 2022 18:39:15.234 [0x7f9da2c77d48] ERROR - Error: Unable to set up server: listen: Address in use (N5boost10wrapexceptINS_6system12system_errorEEE)

seemed like plex server itself is using/listening on the ports?
$ sudo ss -tulnp | grep LISTEN
tcp LISTEN 0 1024 127.0.0.1:32401 0.0.0.0:* users:((“Plex Media Serv”,pid=3840,fd=57))
tcp LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* users:((“systemd-resolve”,pid=1062,fd=13))
tcp LISTEN 0 5 127.0.0.1:631 0.0.0.0:* users:((“cupsd”,pid=1096,fd=7))
tcp LISTEN 0 128 127.0.0.1:32600 0.0.0.0:* users:((“Plex Tuner Serv”,pid=3893,fd=10))
tcp LISTEN 0 128 127.0.0.1:40601 0.0.0.0:* users:((“Plex Script Hos”,pid=3854,fd=8))
tcp LISTEN 0 128 127.0.0.1:45595 0.0.0.0:* users:((“Plex Script Hos”,pid=3942,fd=4))
tcp LISTEN 0 1024 :32400 : users:((“Plex Media Serv”,pid=3840,fd=56))
tcp LISTEN 0 5 [::1]:631 [::]:
users:((“cupsd”,pid=1096,fd=6))

Shut down PMS
Check for threads hanging

ps aux | grep Plex

Kill them

Start PMS

found several processes. I tried to do kill -9 pid pid …
but they come back; the processes are restarting themselves?

also issued this > sudo service plexmediaserver stop
and then killed what’s left, but it still seems to restart it itself - but unsuccessfully, if I check the status

not that familiar with linux to be honest.

I’ve also tried restarting the machine. Power down and rebooted also.

If the main Plex Media Server process is not stopped, then that might kick off the others, thus why I asked you to stop that first

And the snip from the logs you provided, clearly shows that PMS was attemted to run twice

Reproduce, and then upload a zip with the whole logs directory

here are the log files zipped up

logs.zip (5.8 KB)

If there’s a way you can help me stop the server from restarting on its own. Then perhaps I can try to uninstall and start from scratch again?

When I did the install after downloading the package, I clicked on it and it seemed to install. But then through the browser, I saw that it didn’t seem to work.
So I got into the terminal and found the manual command to install the package again.

Anyhow, despite using the stop command:
sudo service plexmediaserver stop

I still find the plex processes running…
ps aux | grep Plex

I try to kill them with kill -9
but the processes keep restarting themselves…

thank you

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