PMS could not claim new server. curl_easy_perform error

Server Version#: 1.19.3.2793-36efde971
System: Ubuntu 20.04 - Running a clean install.

I could not claim the server after a clean install, I was also seeing a lot of errors in the web console about xml parsing. The UI error when claiming was “There was a problem signing in to plex”, even though i was signed in to plex already. The UI also told me to update my version, even though i was on the latest plex pass version, so something was not working correctly here.

The PMS logs gave errors about curl after calling the plex api.
Tried to google and in the plex forum and finding others with the same problem but no solution.
One here: Remote access not enabling properly
another her: Codec Install error
and many others with curl error on the logs.

There seemed to be a problem with the curl timeout when calling the api on the domain plex.tv.
I tried a curl command on the terminal and the timeout was over 10-15 seconds before any response. so i figured the problem was about dns resolving.

I struggled a lot with this and found a dirty solution by manually adding the dns entry to plex.tv in my hosts file, and the problem was instantly solved. i am using Cloudflare dns and has google dns as backup, i also tried my ISP’s default dns and the same problem persisted with all of them.

Try adding this to your /etc/hosts file if you have the same problem:

# plex to long timeout
99.81.213.165 plex.tv

I hope that helps someone also struggling with this.

Can some one with Plex look into this and help with a solution without needing to manually resolve the plex.tv ip address. I can give more logs to help resolve this issue if needed.

The pms log error about curl:

May 17, 2020 10:28:04.069 [0x7f0d63fff700] DEBUG - HTTP 200 response from GET https://plex.tv/api/v2/features?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
May 17, 2020 10:28:11.802 [0x7f0da8ff9700] ERROR - Error issuing curl_easy_perform(handle): 28
May 17, 2020 10:28:11.802 [0x7f0da8ff9700] DEBUG - HTTP simulating 408 after curl timeout

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