Plex Docker on Synology NAS

Hi guys,
I today wanted to swap my pms running on my Synology NAS into Docker. I copied the Library and setup as described in the dos using bridge mode. Frankly even though the protocol says pms starting and running I cannot access it via the web interface. Port: 34200 gives the following output:
The server canceled the request.

I also setup the Claim and ADVERTISE_IP parameter…
Also I had to change only the 1900 port because it was in use. I am not planning to use DLNA at all so I don’t think that is a major problem…

Anyone had that problem before?

Best regards,
Tom

I am using the container on a Synlogy for ages now. Appart from a single incident (that was more linux than Synlogy specific) sometime arround last year, i had no problem at all.

Please provide your “docker run” command or details on how you created the container.

I set it up in docker ui inside DSM. Is there a way to poste the command out? Including all parameters?!

I am so glad that you pick up on “there is another way to start it”,
but completly ignore the “show me how you started the container” part.

I am afraid I am not able to help.

I don’t get your point. I am quiet familiar with docker on Ubuntu CLI but used the GUI Webinterface of DSM to set it up. As i asked before is there a way to output all the settings of on container altogether?

seems, i miss read everything. Sorry.

Yes, there is: docker inspect {container_id/name}
Please provide the output.

docker inspect PlexMediaServer
[
    {
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 171,
                "Log": [
                    {
                        "Start": "2018-09-22T22:35:12.95613367+02:00",
                        "End": "2018-09-22T22:35:13.000434291+02:00",
                        "ExitCode": 1,
                        "Output": "curl: (7) Failed to connect to localhost port 32400: Connection refused\n"
                    },
                    {
                        "Start": "2018-09-22T22:38:33.000676229+02:00",
                        "End": "2018-09-22T22:38:33.047300301+02:00",
                        "ExitCode": 1,
                        "Output": "curl: (7) Failed to connect to localhost port 32400: Connection refused\n"
                    },
                    {
                        "Start": "2018-09-22T22:41:53.047498234+02:00",
                        "End": "2018-09-22T22:41:53.095400008+02:00",
                        "ExitCode": 1,
                        "Output": "curl: (7) Failed to connect to localhost port 32400: Connection refused\n"
                    },
                    {
                        "Start": "2018-09-22T22:45:13.09551368+02:00",
                        "End": "2018-09-22T22:45:13.157560654+02:00",
                        "ExitCode": 1,
                        "Output": "curl: (7) Failed to connect to localhost port 32400: Connection refused\n"
                    },
                    {
                        "Start": "2018-09-22T22:48:33.157724021+02:00",
                        "End": "2018-09-22T22:48:33.360726076+02:00",
                        "ExitCode": 1,
                        "Output": "curl: (7) Failed to connect to localhost port 32400: Connection refused\n"
                    }
                ]
            }
        },
]

As I just read past it there is the log error connection refused. How come so? I still have Plex installed on my NAS but the service is stopped? Might it still interphere? Tried to set up the local port to 32401 still not reachable…

Hmm still not accessible. I read this article and set up the gid and uid for a user that has access outside of docker to the config files. Still the same error…

Related: Accessing Plex Server Running on Docker Container 'Connection Refused'

[cont-init.d] executing container initialization scripts...
stdout
13:50:38
[cont-init.d] 40-plex-first-run: executing... 
stdout
13:50:38
[cont-init.d] 40-plex-first-run: exited 0.
stdout
13:50:38
[cont-init.d] 50-plex-update: executing... 
stdout
13:50:39
[cont-init.d] 50-plex-update: exited 0.
stdout
13:50:39
[cont-init.d] done.
stdout
13:50:39
[services.d] starting services
stdout
13:50:39
[services.d] done.
stdout
13:50:39
Starting Plex Media Server.

I don’t see any error in the protocol itself…

Also I tried changing the host ports and the error is still the not reachable 32400. so the error is within the docker container?!

According the healtcheck, I would say that plex is not starting at all.

To rule out problems with the configuration, please start with an empty folder for /conf.
Once you successfully started Plex and access it, shut it down and move your configuration back.

Make sure that the folder owner of your config folder matches the UID:PID(!)
Then make sure to start that following environment variables are set:

  • “CHANGE_CONFIG_DIR_OWNERSHIP=true” <— this should apply ‘chown -r PLEX_UID_PLEX_GID to the config folder’,
  • “PLEX_CLAIM=claim-tryanotherday”, <— Hopefully with your REAL claim code
  • “ADVERTISE_IP=http://xyz:32400” <— with your NAS IP ofcourse; not needed if network=host is used
  • “PLEX_UID”
  • “PLEX_GID”

Okay so I tried as desired and a fresh installation is working fine. Shutting down now and will try to just copy the config folder into it…

Hmm so works just fine now. Guess I just had to run it fresh for the first time then integrate the Library… thanks a lot for your help mate!

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