Giter VIP home page Giter VIP logo

docker-plex's Introduction

Caution

As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.

Note

(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

Tip

THIS REPOSITORY IS AUTO-UPDATED BY A BOT EACH TIME A NEW PLEX SERVER VERSION IS RELEASED

logo

Plex Media Server - Docker Image (Multiarch + Raspberry Pi)

latest release Docker Pulls Docker stars Docker Pulls Docker stars PayPal donation Buy me a coffee Buy me a coffee

This image allows you to configure a Plex Media Server easily thanks to Docker.

Installation

First, you have to mount your USB drive.

sudo mount /dev/sda1 /mnt/usbdrive

Tip

Important Note

Don't forget to mount the Plex Library directory local folder to /root/Library folder.

Example :

docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host -v /mnt/usbdrive:/root/Library jaymoulin/plex

This will start Plex using your mounted drive in /media path in Plex (library volume not mounted will result in a container only library - this will be harder to fix).

docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host jaymoulin/plex

Configuration

Go to http://your_machine_ip:32400/manage to configure it

Appendixes

Install Docker

If you don't have Docker installed yet, you can do it easily in one line using this command

curl -sSL "https://gist.githubusercontent.com/jaymoulin/e749a189511cd965f45919f2f99e45f3/raw/0e650b38fde684c4ac534b254099d6d5543375f1/ARM%2520(Raspberry%2520PI)%2520Docker%2520Install" | sudo sh && sudo usermod -aG docker $USER

Repairing Database

Tip

As-of 1.1.0 (Plex 1.40.0) This image brings ChuckPa/PlexDBRepair tool to help fixing errors on Plex databases. If some error occurs and database is corrupted, you would be able to check/repair using this tool.

To use it, the plex service should be STOPPED. Then you can use the command DBRepair in the docker container with your Library volume mounted.

Docker CLI example

docker run --rm -v /mnt/usbdrive:/media -v /mnt/usbdrive:/root/Library jaymoulin/plex DBRepair

Docker Compose Example

docker compose stop plex
docker compose run plex DBRepair

Can't match correctly a movie

After trying "Fix association", if you still can't find the correct movie, you can seek for the correct movie on tmdb.org and enter its ID preceded by tmdb- in the title field. For example, my movie Selfie was not correctly associated. Found it on https://www.themoviedb.org/movie/613319-selfie so I seeked for tmdb-613319 to fix it.

Known issues

libstdc++.so.6: cannot open shared object file

You will probably notice that kind of error log:

/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

This is a known issue for Plex Tune Service ONLY. This service is not required by Plex Media Server to work properly. I have no intention to fix this log. If you REALLY NEED Plex Tuner Service to work, please open an issue, or (better desired option), make a Pull Request to implement this feature.

Unknown file formats / "This server is not powerful enough to convert video"

Plex for Raspberry PI cannot read some video file format like AVI, WMV or OGM, either due to codec or due to RPI lack of power. You can convert them to make them compatible by using my docker image jaymoulin/rpi-plex-video-converter : https://github.com/jaymoulin/docker-rpi-plex-video-converter

docker-plex's People

Contributors

jaymoulin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-plex's Issues

error when i run the docker

Hi and thant you for your work.

I come to you because I have this error :
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign

when I run the command :
docker run -d --restart=always --name plex -v /media/WD:/media --net=host jaymoulin/plex

for information : "/media/WD" is the path to my hard drive.

I don't know how can i resolve this.

A old version of your docker work fine before i change RPi.

Thant you in advance.

Romain

Add view access to CI or automated build

You've made last commit 2 hours ago and the newer images are pouring into Docker Hub one by one. It would be really nice if we can see what's the progress of the images being built.

If you're using CI, please add a link to that on GitHub and/or Docker Hub.

looking for servers...

Hi there,
I've recently pulled jaymoulin/plex for rpi3, booted without any issue (docker logs shows only this)

3000 /root/Library/Application Support
8192
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
--directory arg Directory to scan for crash reports
--serverUuid arg UUID of the server that crashed
--userId arg User that owns this product
--platform arg Platform string
--url arg URL to upload to
--help show help message
--version arg Version of the product

Went to the web and what I see is plex web interface but in the top left corner there is "Looking for servers..." dialog with spinning wheel. No idea how to pass that and/or why it is not seeing rpi3 as a media server.
Have you got any clue maybe?

EDIT:
Also in logs I've found:
WARN - HTTP error requesting POST http://127.0.0.1:32600/devices/discover (0, No error) (Failed connect to 127.0.0.1:32600; Connection refused)

Stable Docker images

This docker image will always install the latest Plex Media Server.
Please use a Dockerfile that installs only a stable version

Plex doesnt start, error on running image

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):

Docker container in restart loop

Description

Docker container restarts on a 1 minute interval. Logs indicate

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

Steps to reproduce the issue:

  1. docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host jaymoulin/plex
  2. docker ps

Describe the results you received:
Plex appears to be running but in an infinite restart loop

Describe the results you expected:
The docker container should run without restarting

Updating Plex container creates a new Plex server

Hi @jaymoulin ,

I followed the steps you mentioned on issue #29
and they worked, but the new container is identified as a different Plex server which makes things much more complex (e.g. sharing content).
Do you know if there's any way to solve that?

Thanks!

Plex server don't start on Pi3

Hi :)

I've try to start your container on my Pi3. The web port 32768 is available but the server to 32400 port is not found.

I've try with docker-compose :

version: 3
services:
    plex:
        restart: always
        container_name: plex
        volumes:
            - '/mnt/usbdrive:/media'
        image: jaymoulin/plex

On portainer i see published port 32768:32400 :/

Maybe I did something wrong ?

Thanks you :)

Warning when starting on Raspberry Pi 4

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

1.22.0.4163-armhf

Description
When starting the jaymoulin/plex container, I get the following warning:

WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested

Steps to reproduce the issue:

  1. docker pull jaymoulin/plex
Using default tag: latest
latest: Pulling from jaymoulin/plex
e68f2aaec91c: Pull complete
adbe693323bb: Pull complete
23274cdb9dfb: Pull complete
dff502af9cf2: Pull complete
0a9e50e11ba1: Pull complete
Digest: sha256:65ef6f42164113178dfc03ede6e4f436e83b5ed7bcea705d2cb4423a583d865e
Status: Downloaded newer image for jaymoulin/plex:latest
docker.io/jaymoulin/plex:latest
  1. docker run -d --restart=always --name plex -v /srv/media:/media -v /srv/media:/root/Library --net=host jaymoulin/plex
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
4f5eadd4c4e976ebc296a9640653d27a118343e3119947712589db4f8056aa2e

Describe the results you received:
A warning about the wrong architecture

Describe the results you expected:
No warning

Additional information you deem important (e.g. issue happens only occasionally):
This docker issue is interesting.

Unable to claim server

Hi,

I've just set up the new jaymoulin/plex image on my Pi3 under HypriotOS, and I'm having an issue with it.

It fully installs and runs fine, and is initially accessible via pi-ip:32400/web/index.html (although not via pi-ip:32400 for some reason). I get the normal Plex screen with a banner on it that an unclaimed server has been detected and offering the option to claim it. Selecting this takes me to the normal server name/claim screen.

However when I click next there to claim the server to my Plex account, it whirls its button icon for a short time and then comes back with "Unable to save these settings at this time" in a red box and I cannot proceed out of that screen.

Is this a known issue when using the docker container? How can I add the server to my Plex account to use it?

It was set up using the docker run command given in your docker hub page, with the mount point of my USB drive entered in place of your example one.

Regards

Darren

PS the links to your Github page and this issue page in the docker hub page for your new image are wrong and give 404 errors.

Can't start on an aarch64 arch linux raspberry pi

Heyho,

i have no idea why, but this is everything i got. Perhaps you have an idea how i get more output?

[alarm@eadrax:~]% docker run --name plex  -v plex:/root/Library -v /media/Filme:/media/Filme -v /media/Serien:/media/Serien --net=host jaymoulin/plex:latest
standard_init_linux.go:190: exec user process caused "exec format error"

Not accessible outside network

Thanks for this really great image.

One question, I keep having issues with the plex server not being reachable through the internet or not reachable securely. Sometimes, when I select, allow insecure connection, it works, but most of the time it doesnt. Off course I forwarded the 32400 port (TCP and UDP) in my router, but this doesn't do much:( Checked if the port is really accessible through http://canyouseeme.org/ and it is..

Am I overlooking something simple?

"No supported platform..." when I try to run this on RPI

I'm trying to run this on RancherOS (aarch64 according to uname -m) on my RPI3, but before it pulls, I get the following:

[rancher@rancher ~]$ docker run -d --restart=always --name plex -v /mnt/media/:/media --net=host jaymoulin/plex
Unable to find image 'jaymoulin/plex:latest' locally
latest: Pulling from jaymoulin/plex
docker: no supported platform found in manifest list.

Can't user plex in raspberry pi 3

I use docker and docker compose to install plex in my raspberry pi 3 but I always get the same error

 plex:
                image: jaymoulin/plex
                ports:
                        - 32400:32400
                        - 33400:33400
                volumes:
                        - /home/pi/plex:/root/Library/Application Support/Plex Media Server
                        - /home/pi/media:/media
                restart: always
                network_mode: "host"

Steps to reproduce the issue:

  1. Run the container
  2. Try to configure plex server
  3. Plex server show a message because it couldn't save the configuration

In logs I get this messae

Traceback (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-cc260c476/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 13, in <module>
    import subsystem
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-cc260c476/Framework.bundle/Contents/Resources/Versions/2/Python/subsystem/__init__.py", line 7, in <module>
    import ospathfix
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-cc260c476/Framework.bundle/Contents/Resources/Versions/2/Python/subsystem/ospathfix.py", line 9, in <module>
    from posixpath import curdir, sep, pardir, join
ImportError: cannot import name curdir

libstdc++.so.6 No such file or directory

Heya,

since the last update i cannot play videos anyore.
I tried to fix it myself or find the problem but i could not solve it :S

This is the output of

docker logs --tail 50 --follow --timestamps Plex

2018-08-12T10:13:02.331881157Z /usr/lib/plexmediaserver/Plex Tuner Service: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

I run PLEX Docker on a Pi 3b+ latest Raspbian
Linux Pi3B-01 4.14.54-v7+ #1126 SMP Wed Jul 11 20:01:03 BST 2018 armv7l GNU/Linux

Installed with:

docker run -d --restart=always --name Plex -v /media/NAS:/media --net=host -v /home/pi/Docker/Plex/root/Library:/root/Library jaymoulin/plex

`docker restart` forgets my server

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

1.18.2.2058-armhf

Description

When I update my docker image I lose all my configuration (library locations, etc.). I think it has something to do with needing PLEX_CLAIM as an environment variable?

Steps to reproduce the issue:

  1. docker-compose pull
  2. docker-compose down
  3. docker-compose up -d

Describe the results you received:

A new claim page when I visit <my_ip>:32400

Describe the results you expected:

The same config I had before I updated

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

Plex doesn't start anymore since 1.13.4

plex_1                 | 6 3000 /root/Library/Application Support
plex_1                 | 8192
plex_1                 | /usr/sbin/start_pms: line 29: ./Plex Media Server: not found
plex_1                 | rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory

Looks like something is broken with updated version or conflicted with another feature

Updatable binary

Find a way to update Plex without the need to recreate the container

Error: Memory cgroup not supported

When I install and then run docker with the suggested commands I get the following error:

docker: Error response from daemon: cgroups: memory cgroup not supported on this system: unknown.

Thanks to this StackOverflow answer, the problem seems to be related to a recent release of docker and using an older one works as a workaround while they fix it:
$ sudo apt install docker-ce=17.09.0~ce-0~raspbian

Or if you don't use raspbian like me (I use an openmediavault image) you should:
$ sudo apt install docker-ce=17.09.0~ce-0~debian

This is just an FYI issue in case somebody else has the same problem than me. Feel free to just close it right away.

And thanks for the image and the install scripts! Made my life so much easier :)
❤️

./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory

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

8192
./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory
6 3000 /root/Library/Application Support
8192
./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory
6 3000 /root/Library/Application Support
8192
./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory
./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory
6 3000 /root/Library/Application Support
8192
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory
6 3000 /root/Library/Application Support
8192
./Plex Media Server: error while loading shared libraries: ld-linux.so.3: cannot open shared object file: No such file or directory
rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory

Description

Steps to reproduce the issue:

  1. After updated version, this error message occured

Describe the results you received:

Describe the results you expected:
ln -s /usr/glibc-compat/lib/ld-2.22.so /usr/glibc-compat/lib/ld-linux.so.3

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

Plexserver is not starting.

Hi,

im using a rpi 2 with latest hypriot os and your latest rpi plex image. It is not starting.
Im always getting:
Segmentation fault (core dumped) rm: can't remove '/root/Library/Application Support/Plex Media Server/plexmediaserver.pid': No such file or directory 6 3000 /root/Library/Application Support
Best regards

Stefan

How to update Plex container but keep all settings

Hi @jaymoulin ,

This is a question. I'd like to know how to upgrade plex version. Do I need to rm / run a new container based on the latest image?
If that is the case, is there any way to keep all my plex settings/libraries/shares ?
Thanks,
Jaime-

Container fails on startup

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

1.18.7.2457-armhf

Description
Hello,
while starting the container for the first time with docker-compose, the following message get logged:

6 3000 /root/Library/Application Support
8192
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
  --directory arg       Directory to scan for crash reports
  --serverUuid arg      UUID of the server that crashed
  --userId arg          User that owns this product
  --platform arg        Platform string
  --platformVersion arg Platform version string
  --vendor arg          Vendor string
  --device arg          Device string
  --model arg           Device model string
  --sentryUrl arg       Sentry URL to upload to
  --sentryKey arg       Sentry Key for the project
  --version arg         Version of the product

Thank you for taking your time for this issue.

Steps to reproduce the issue:

  1. Pull the image from docker hub
  2. Create a docker-compose.yml like described below
  3. docker-compose up -d && docker logs -f plex

Describe the results you received:
A used program outputs an parameter error. The plex server is not successfully started.

Describe the results you expected:
A running plex server in a docker container.

Additional information you deem important (e.g. issue happens only occasionally):
My docker-compose.yml looks like this:

version: '3'
services:
        plex:
                image: jaymoulin/plex
                container_name: plex
                restart: always
                volumes:
                        - /mnt/data/media:/media
                        - /mnt/data/var/plex:/root/Library
                        - /etc/timezone:/etc/timezone:ro
                        - /etc/localtime:/etc/localtime:ro
                network_mode: host
                ports:
                        - "32400:32400/tcp"
                        - "5355:5353/udp"

Plex didn't find directories

Version container , version docker
I am using docker-compose with version 1.25.0 and container version plex:1.30.0.6486-armhf

Docker-Compose input

  plex:
    image: jaymoulin/plex:1.30.0.6486-armhf
    expose:
      - 32400
      - 33400
    hostname: raspberry
    volumes:
      - ${STORAGE}/Plex Media Server:/root/Library/Application Support/Plex Media Server
      - ${MEDIA}:/media
      - ${STORAGE}/tmp:/tmp
    restart: unless-stopped
    network_mode: "host"

Description

When I access to configure my plex server, he asks me where are my movies, series..., and I'm going to put my directory which is this: /media/hdd/film/ I click /media and it appears empty

Steps to reproduce the issue:

  1. start the server with docker-compose up -d
  2. I go to configure the server http://my_machine_ip:32400/manage
  3. It asks me to put the movie folder

Describe the results you received:
I did not find any folder

Plex

Describe the results you expected:

I should have a folder called hdd in /media/ but I can't find it

Additional information:

I have read that you have to give it permissions but I have tried it with the user that plex creates for you but I do not have that user and the solution would be to change a line in the /etc/default/plex file but I do not know if it is because I am running it in docker-compose, I don't have that file either

Problem Running the Docker Image

I am unable to get the daemon to run. the daemon.sh shell script doesnt find any start_pms file and pid file. should i download the deb file from dev2day and install that first?
and as expected docker image wont start without the daemon not runnning

Oops! No soup for you.

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

1.19.4.2935-armhf

Description

I used your docker image to create a Plex media server on my Raspberry Pi. Upon connecting to the webinterface, it asked for my login credentials. I gave these credentials, and then it says "Oops! No soup for you. Looks like this server does not want you in."

Steps to reproduce the issue:

  1. use jaymoulin/plex to start up a plex media server
  2. go to webinterface and log in
  3. message is shown/

Describe the results you received:

error message

Describe the results you expected:
a functioning plex media server

Additional information you deem important (e.g. issue happens only occasionally):
Timezone in docker container is wrong; some reddit post said it could be the issue.

Problem with transcoder in RP4

change from raspberry pi 3 to 4. In RP3 is fine but in RP4 is´t working corretly. The services work but the transcoding is broken.
When you open a video file you have a next string "Conversion failed. The transcoder exited due to an error."
It´s the same with all video file. The audio file work fine.

i see in the log file that i have the next warn:
Error loading external lib: /root/Library/Application Support/Plex Media Server/Codecs/395e79c-2735-linux-armv7hf/libvc1_decoder.so: failed to map segment from shared object

thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.