question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot connect to plex server

See original GitHub issue

Hi, I’ve been trying out this via docker (Synology Nas) and managed to install it, but looking at the logs it just says ConnectionError: unable to connect to plex server, retrying

The only thing I added in the config is PLEX_URL and PLEX_TOKEN

Let me know if you need any other info

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dom6770commented, Nov 6, 2022

I encountered this error as well and enabled debug mode. The log indicated a mismatch between the SSL certificate address and the hostname. I was able to circumvent the problem by changing my Plex server to prefer (as oppose to require) secure connections and connecting PAL to the server via HTTP instead of HTTPS. Hopefully this helps others who may have been in the same boat.

There’s no need to disable requiring TLS. Getting the right URL and Token is quite simple. Just follow the official guide and view the XML document from one of the library items and use it’s URL as PLEX_URL. It should look something like this:

https://[Local-IP].[AlphaNumeric-Identifier].plex.direct:32400/

With this address it should work. (At least it did for me, I had the same issue with http://local-ip, but with the https://plex.direct URL it’s working.)

1reaction
saviktkrcommented, Nov 14, 2022

I encountered this error as well and enabled debug mode. The log indicated a mismatch between the SSL certificate address and the hostname. I was able to circumvent the problem by changing my Plex server to prefer (as oppose to require) secure connections and connecting PAL to the server via HTTP instead of HTTPS. Hopefully this helps others who may have been in the same boat.

There’s no need to disable requiring TLS. Getting the right URL and Token is quite simple. Just follow the official guide and view the XML document from one of the library items and use it’s URL as PLEX_URL. It should look something like this:

https://[Local-IP].[AlphaNumeric-Identifier].plex.direct:32400/

With this address it should work. (At least it did for me, I had the same issue with http://local-ip, but with the https://plex.direct URL it’s working.)

Thanks for this. It worked!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't the Plex app find or connect to my Plex Media Server?
General Troubleshooting · Ensure you have the current version of Plex Media Server installed · Ensure that Plex Media Server is actually actively ......
Read more >
Plex Not Connecting to Server? How to Fix? - SenseMother
Step #1: Check if Your Plex Client is Up-to-Date.
Read more >
Plex App not Connecting to any servers - Reddit
In the app go Settings > Advanced > Allow insecure connections. This was set to "never". Changing that to something else and then...
Read more >
How to fix common Plex Media Server issues - Windows Central
If you're able to access the Plex server using a client on the same network but are unable to connect outside, the most...
Read more >
Fix App Plex TV is Unable to Connect to Securely - TechCult
If you have connected the Plex TV Web App and the Plex Media Server to varying WiFi networks, you may face this issue....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found