jaymoulin/docker-plex

Plex doesnt start, error on running image

luisbecerril-ips opened this issue · 3 comments

Output of docker inspect plex --format='{{index .Config.Labels.version}}':

1.18.5.2309-armhf

Description
Upon running the following command sudo docker run --rm --name plex -v $(echo $HOME)/plex:/media --net=host jaymoulin/plex I get the following output:

6 3000 /root/Library/Application Support
8192
Segmentation fault (core dumped)
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory

I am running this on my Raspberry Pi B. This is the output of the commando uname -a

Linux raspberrypi 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux

Steps to reproduce the issue:

  1. Run the command.

Describe the results you received:

Describe the results you expected:
Expected plex to start on server

Additional information you deem important (e.g. issue happens only occasionally):

Maintaining an application (answering questions, fixing bugs, adding new features...) is a hard and time consuming process. If you find this product useful and all the effort I put crafting this, I strongly encourage you to donation to help me being able to continue maintaining this and creating other great things on those platforms PayPal donation Buy me a coffee Become a Patron.

I see your image is an old version that has already been fixed (actual: 1.18.8.2527-armhf). You can update your container by deleting it, pulling the latest image, and recreating it. Depending on how you created your container, process may vary (the easiest is with docker-compose).

I also suggest you follow @DockerPlex on twitter to keep your application up-to-date.

You can reopen this issue if you think something must be fixed

I just ran the following commands:
sudo docker rmi jaymoulin/plex

and then
sudo docker pull jaymoulin/plex

After downloading the latest image I ran:

sudo docker run --name plex -v $(echo $HOME)/plex:/media --net=host jaymoulin/plex

This exits with the following message:

6 3000 /root/Library/Application Support
8192
Segmentation fault (core dumped)
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory

Performing the command docker inspect plex --format='{{index .Config.Labels.version}}' I get the following output:

1.18.8.2527-armhf

This should mean that I have the latest image but Im still unable to run plex inside my raspberry pi

I don't own a RPI4 so I'm not really sure on how it should behave on this hardware.
I notice with your commands some things that might prevent a good usage:

  1. docker commands should not be runned with sudo - Make sure your user has corrects rights to do it sudo usermod -ag docker $USER
  2. Make sure your docker version is up-to-date - (I own an RPI3b+ but mine is actually $> docker --version #Docker version 19.03.8, build afacb8b)
  3. Your home path is redundant and your plex container should run in detached mode $> docker run --name plex -d -v "$HOME/plex:/media" --net=host jaymoulin/plex - (detached mode allows)
  4. I'm pretty sure RPI4 should run on aarch64 arch or similar ($> uname -m #aarch64) - please try to force use of arch64 ($> docker run --name plex -d -v "$HOME/plex:/media" --net=host jaymoulin/plex:1.18.8.2527-aarch64)
  5. As this image uses a volume for its library and you you used to have a previous image, it might be a good idee to delete your previous volumes for your container to use a clean library ($> docker volume ls # shows a list of volumes, find yours and delete it) - I suggest you mount a volume for your library (https://github.com/jaymoulin/docker-plex#installation)

If nothing works, you'll probably have to check log file to check what is going on with your instance (https://forums.plex.tv/t/sh-line-1-2631-segmentation-fault-core-dumped-plex-media-server-dev-null-2-1/196066/4)