Plex Cant find my Server...HELP!

Running ubuntu 16.04 server with plex media server and other apps in docker containers behind a Traefik reverse proxy. Running Plex from my localhost:32400/ i get a spinning circle and the message looking for servers. On one occasion there was a message in an orange banner saying “insecure server found” but clicking the message did no good. I suspect that it takes the docker container so long to start that the PMS claim is expiring before it starts.
Using docker compose, my plex docker compose.yml is uploaded. any help is appreciated.
StBooth

plex-compose.txt (1.0 KB)

Similar problem here. I’m running debian 9 with plex media server on docker. I have tried again and again but the server is never found but the web page at :32400 work just fine.

My docker-compose file is basicly identical with @StBooth but I don’t run Traefik at the moment.

With docker it is essential that you set PLEX_CLAIM correctly to attach the new server to your Plex account at the first start of your container. You only have 4 minutes to start your docker container the first time or your PLEX_CLAIM expires. And this CLAIM process will also only work the first time you start the container (test for existence of the file /.firstRunComplete). So if your new server was not attached to your Plex account (login via plex.tv), just remove the container and all volumes and start from scratch with a valid PLEX_CLAIM.

Followed your instructions. Stopped Plexms container and ran the following command: docker system prune --all --force --volumes. New claim information in docker-compose.yml, saved and restarted the container. Followed the progress in Portainer, plexms was starting for about 7 minutes before the status switched to “healthy”. From my browser I went to 192.xxx.x.xxx:32400/ and got the http://192.xxx.x.xxx/web/index.html# screen showing looking for servers. The container continues to show the status “healthy” it never switches to “running”. I suspect that the container does not start fast enough to satisfy the 4 minute limit on the plex claim. Still need some help.

The you have to claim your server the traditional way: from a computer in the local network of your PMS. Using docker, the most straight forward approach is to temporarily set the network of the container to host network and then to setup a ssh tunnel to the host:

Please read On a Different Network: https://support.plex.tv/articles/200288586-installation/#toc-2

1 Like

nothing worked, even reinstalled on new os. plexpass is not worth much to me right now.

Steve

1 Like

Do you know how to open a bash in your container (e.g. docker exec -it <container-id> /bin/bash)? If nothing else works please just give my bash script a try :slight_smile:

The usage is rather simple and described on the github page. Just first download the script in your container, e.g. with wget https://github.com/uglymagoo/plex-claim-server/raw/master/plex-claim-server.sh). You have to restart your container afterwards.

Please then review your Preferences.xml file in /config/Library/Application Support/Plex Media Server/. It should contain a PlexOnlineToken and your account name for example.

1 Like

Entered: docker exec -it /bin/bash and got promt: root@9f4776baba:/# .

Then entered: wget https://github.com/uglymagoo/plex-claim-server/raw/master/plex-claim-server.sh

and got bash: wget: command not found, so apparently i dont know how to do this. Which gethub page has the instructions? sorry to be this clueless.

No problem.

You only have one docker container, the Plex container, right?

So the prompt is a great start :slight_smile: Now do the following on this prompt, lines with # are comments to explain what you are doing:

# download the script
curl -L -o plex-claim-server.sh https://github.com/uglymagoo/plex-claim-server/raw/master/plex-claim-server.sh
# make the script executable
chmod +x plex-claim-server.sh
# go to https://www.plex.tv/claim/ in your browser and get the claim token and replace PLEX_CLAIM with this token in the next command, please use use the double quotes around your claim token
./plex-claim-server.sh "PLEX_CLAIM"
# fix permissions
chown plex:plex "/config/Library/Application Support/Plex Media Server/Preferences.xml"
# leave the container
exit

Finally, restart the container with docker-compose.

7 Likes

wish that were the case, i have 9 containers including plexms. all working except plexms. also when run install wget in bash it says error: file not found.

Ok. I will change the commands above to not use wget but curl. Please try this solution in one second. And please make sure you are in the correct container :slight_smile:

i think we are beating a dead horse here.

thanks for your help

steve

4-28 startup.txt (1.7 KB)
I have uploaded my last startup log, maybe you can spot something.
Steve

Hello, did you find find a way to make plex work? i’m stuck in the same issue to.
Thank you.

@drmagoo, your commands solved the issue for me.

1 Like

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