Hi! Happy long-time plex user here.
I’m trying to transfer my plex installation from running on ubuntu to docker, but I am having trouble getting it to work. (I’m new to docker).
The command to run the docker container:
sudo docker run \
-d \
--name plex \
--network=host \
-e PUID=1000 \
-e PGID=100 \
-e TZ="US" \
-e VERSION=docker \
-e PLEX_CLAIM="claim-e2Uvctv6yKTcMZSe8Yhs" \
-h BlendedBronze2 \
-v /mnt/FA4606344605F265/plexConfig:/config \
-v /mnt/FA4606344605F265/plexTranscode:/transcode \
-v /mnt/FA4606344605F265/plexMedia:/data \
--restart unless-stopped \
plexinc/pms-docker
Running
sudo docker logs -f plex
outputs this repeatedly.
Starting Plex Media Server.
Error: Unable to set up server: listen: Address in use (N5boost10wrapexceptINS_6system12system_errorEEE)
Stopping Plex Media Server.
Other (possibly) relevant info:
Plex was installed on ubuntu from the application store. I have since uninstalled it using apt-get
I update the claim code each time via www.plex.tv/claim/
My media is stored on a separate 4TB hard drive from the ubuntu installation
I am connecting/controlling my server over SSH/PuTTY
What is the problem, and how can I fix it?
ChuckPa
February 14, 2022, 7:58am
2
You can only run 1 server instance on the host with network=host because both are going to use the same port 32400.
So, could the non-docker install still be running, even though I uninstalled it(?)
How could I check for this? I’m still relatively new to Linux.
Running some commands of google, it looks likes there’s still plex running on ubuntu. Could these be the issue?
tuckjohn@blended-bronze:~$ ps -ax | grep plex
864 ? Ss 0:00 /bin/bash /snap/plexmediaserver/257/wrapper.sh
1028 ? S 0:00 /bin/bash /snap/plexmediaserver/257/wrapper.sh
1164 ? SNl 0:03 Plex Plug-in [com.plexapp.system] /snap/plexmediaserver/257/Resources/Plug-ins-12f6b8c83/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.5.5492-12f6b8c83 /snap/plexmediaserver/257/Resources/Plug-ins-12f6b8c83/System.bundle
1372 ? Sl 0:00 /snap/plexmediaserver/257/Plex Tuner Service /snap/plexmediaserver/257/Resources/Tuner/Private /snap/plexmediaserver/257/Resources/Tuner/Shared 1.25.5.5492-12f6b8c83 32600
1431 ? Sl 0:02 Plex Plug-in [com.plexapp.agents.imdb] /snap/plexmediaserver/257/Resources/Plug-ins-12f6b8c83/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.5.5492-12f6b8c83 /snap/plexmediaserver/257/Resources/Plug-ins-12f6b8c83/PlexMovie.bundle
1920 ? S 0:00 s6-supervise plex
6533 pts/0 S+ 0:00 grep --color=auto plex
ChuckPa
February 14, 2022, 5:09pm
5
Yes, those would block it.
You need to stop that snap and the apparently hung s6-supervise (docker)
Stop the snap
Hard kill the processes
It’s working now! Thanks for your help.
This solved the issue:
snap list
sudo snap remove plexmediaserver
ps -ax | grep plex
sudo kill -9 [process ids]
then
sudo docker run ...
I am getting this in the log now, is this an issue/concern? What does this mean?
...
Starting Plex Media Server.
Critical: libusb_init failed
ChuckPa
February 14, 2022, 11:22pm
7
ignore lib_usb unless you have USB tuners you need to access.
@ChuckPa I do have a tuner, and im getting the same issue. Do you have any suggestions? I haven’t been able to use my tuner for a few months now and I believe this is the issue.
sixxnet
February 23, 2022, 10:01pm
9
Pass the device to the container when setting up.
eg: --device=/dev/dvb \