[Docker on Ubuntu 16.04] Plex not recognizing any servers

Hello,

I’m trying to run plex on a bare metal server in the cloud with docker. I’m setting up docker with ansible and ran this setup for a longer timer on a server at home with no issues at all.

I tried host and bridge networking and nothing is working.

The startup log is the following:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 40-plex-first-run: executing...
Creating pref shell
Attempting to obtain server token from claim token
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     1  100     1    0     0      1      0  0:00:01 --:--:--  0:00:01     1
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing...
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.

my config:

- name: setup plex docker container
  docker_container:
    name: plex
    image: plexinc/pms-docker:latest
    network_mode: bridge
    ports:
      - 32400:32400/tcp
      - 3005:3005/tcp
      - 8324:8324/tcp
      - 32469:32469/tcp
      - 1900:1900/udp
      - 32410:32410/udp
      - 32412:32412/udp
      - 32413:32413/udp
      - 32414:32414/udp
    volumes:
      - "/data/plex/config:/config"
      - "/data/plex/transcode:/transcode"
      - "/data/plex/media:/data"
    env:
      PLEX_CLAIM: "<CLAIM TOKEN HERE>"
      TZ: "Europe/Brussels"
      ADVERTISE_IP: "http://<ip here>:32400/"
      HOSTNAME: "PlexFraise"
    hostname: "PlexFraise"
    recreate: yes
    state: started

I also included the logs down below which lists some errors but not breaking one’s I think.
I can reach the webpanel on my ip but the server is not to be found.

From your docker startup log, I can see that the claim process didn’t work. It only obtained a single byte from the remote server which is obviously wrong. Even if the claim token were invalid (which it expires after 5 minutes), it would have obtained more than 1 byte. As a result your server is likely not signed-in and some of the remote discovery process works better after it has signed in.

I can reach the webpanel on my ip but the server is not to be found.

Care to expand on what this means? Is this meaning that you opened the web interface using the IP address of your server but it indicated that it cannot contact the server? Also it’d be helpful to open the developer tools in your browser to gather more information as to what IP/port the web client is attempting to hit and the response it is getting there.

@gbooker02 said:
From your docker startup log, I can see that the claim process didn’t work. It only obtained a single byte from the remote server which is obviously wrong. Even if the claim token were invalid (which it expires after 5 minutes), it would have obtained more than 1 byte. As a result your server is likely not signed-in and some of the remote discovery process works better after it has signed in.

I can reach the webpanel on my ip but the server is not to be found.

Care to expand on what this means? Is this meaning that you opened the web interface using the IP address of your server but it indicated that it cannot contact the server? Also it’d be helpful to open the developer tools in your browser to gather more information as to what IP/port the web client is attempting to hit and the response it is getting there.

Hello,

How comes my claim token is not working then? This was perfectly working on my own server at home. Can I debug the claim process? (or try to run the commands by myself to debug networking issues) I can not do the process my self through localhost as described on the docker image page as this is a linux server in the cloud.

I can reach the webpanel, so the interface. But the interface is constantly looking for server which it can obviously not find.

@gbooker02 any further help?

@33Fraise33 said:

I tried host and bridge networking and nothing is working.

Dirty hack: fall temporarily back to host network and use the standard “Opening the Plex Web App on a Device Other than the Server Itself - On a Different Network” method [1] to claim the server. 100% success guaranty.

[1] https://support.plex.tv/articles/200288666-opening-plex-web-app/

@uglymagoo said:

@33Fraise33 said:

I tried host and bridge networking and nothing is working.

Dirty hack: fall temporarily back to host network and use the standard “Opening the Plex Web App on a Device Other than the Server Itself - On a Different Network” method [1] to claim the server. 100% success guaranty.

[1] https://support.plex.tv/articles/200288666-opening-plex-web-app/

this solved my problem, thanks for the help!

1 Like

I was having this problem because I was trying to login to the server from a computer other that the one Docker was running on. What I need to do was create a ssh tunnel as per the instructions here Opening Plex on Other Device, then I logged in on the localhost and all was fine.

There went a couple hours of my life…

1 Like