A bit of troubleshooting. It seems the issue is related to connectivity, I just don’t understand why.
From inside the container:
I can lookup www.plex.tv
root@FamilyMediaServer:/# nslookup www.plex.tv
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
www.plex.tv canonical name = www.plex.tv.cdn.cloudflare.net.
www.plex.tv.cdn.cloudflare.net canonical name = plex4.wpengine.com.
plex4.wpengine.com canonical name = lbmaster-95114.wpengine.com.
lbmaster-95114.wpengine.com canonical name = cluster95-elbwpeel-1rcyft0q3nddc-1014054933.us-east-1.elb.amazonaws.com.
Name: cluster95-elbwpeel-1rcyft0q3nddc-1014054933.us-east-1.elb.amazonaws.com
Address: 52.5.129.114
Name: cluster95-elbwpeel-1rcyft0q3nddc-1014054933.us-east-1.elb.amazonaws.com
Address: 34.239.83.71
I can contact www.plex.tv
root@FamilyMediaServer:/config# curl -X POST -vvvv -H 'X-Plex-Client-Identifier: <MyClientID>' -H 'X-Plex-Product: Plex Media Server'-H 'X-Plex-Version: 1.1' -H 'X-Plex-Provides: server' -H 'X-Plex-Platform: Linux' -H 'X-Plex-Platform-Version: 1.0' -H 'X-Plex-Device-Name: PlexMediaServer' -H 'X-Plex-Device: Linux' "https://www.plex.tv/api/claim/exchange?token=<UsedToken>"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 52.5.129.114...
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to www.plex.tv (52.5.129.114) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 592 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: *.plex.tv (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: C=CH,ST=Nidwalden,L=Stans,O=Plex GmbH,CN=*.plex.tv
* start date: Fri, 10 Feb 2017 00:00:00 GMT
* expire date: Sun, 10 May 2020 12:00:00 GMT
* issuer: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
* compression: NULL
* ALPN, server accepted to use http/1.1
> POST /api/claim/exchange?token=claim-ypSNJ4EqyYsqrYaqwUq2 HTTP/1.1
> Host: www.plex.tv
> User-Agent: curl/7.47.0
> Accept: */*
> X-Plex-Client-Identifier: faa0d12c0a6dd7cce964803911c4e6cfe8ad4b9c
> X-Plex-Product: Plex Media Server
> X-Plex-Version: 1.1
> X-Plex-Provides: server
> X-Plex-Platform: Linux
> X-Plex-Platform-Version: 1.0
> X-Plex-Device-Name: PlexMediaServer
> X-Plex-Device: Linux
>
< HTTP/1.1 404 Not Found
< Server: nginx
< Date: Mon, 04 Jun 2018 20:29:36 GMT
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Keep-Alive: timeout=20
< Expires: Wed, 11 Jan 1984 05:00:00 GMT
< Cache-Control: max-age=14400, must-revalidate
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Referrer-Policy: strict-origin-when-cross-origin
< Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' https: data:; img-src 'self' http://akamai-b.cdn.cddbp.net https: data:
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Link: <https://www.plex.tv/wp-json/>; rel="https://api.w.org/"
< WPE-Backend: apache
<
{ [15653 bytes data]
100 61325 0 61325 0 0 62847 0 --:--:-- --:--:-- --:--:-- 62832
* Connection #0 to host www.plex.tv left intact
I can lookup plex.tv
root@FamilyMediaServer:/# nslookup plex.tv
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: plex.tv
Address: 52.208.108.2
Name: plex.tv
Address: 52.208.253.79
Name: plex.tv
Address: 34.251.191.194
Name: plex.tv
Address: 34.248.194.188
Name: plex.tv
Address: 34.249.151.238
Name: plex.tv
Address: 54.77.98.32
I can NOT POST against plex.tv
root@FamilyMediaServer:/config# curl -X POST -vvvv -H 'X-Plex-Client-Identifier: <MyClientID>' -H 'X-Plex-Product: Plex Media Server'-H 'X-Plex-Version: 1.1' -H 'X-Plex-Provides: server' -H 'X-Plex-Platform: Linux' -H 'X-Plex-Platform-Version: 1.0' -H 'X-Plex-Device-Name: PlexMediaServer' -H 'X-Plex-Device: Linux' "https://plex.tv/api/claim/exchange?token=<UsedToken>"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 34.248.194.188...
0 0 0 0 0 0 0 0 --:--:-- 0:01:14 --:--:-- 0^C
root@FamilyMediaServer:/config#
I can NOT reach any IP associated with plex.tv
root@FamilyMediaServer:/# ping -c 4 52.208.108.2
PING 52.208.108.2 (52.208.108.2) 56(84) bytes of data.
--- 52.208.108.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3080ms
root@FamilyMediaServer:/# ping -c 4 52.208.253.79
PING 52.208.253.79 (52.208.253.79) 56(84) bytes of data.
--- 52.208.253.79 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3052ms
root@FamilyMediaServer:/# ping -c 4 34.251.191.194
PING 34.251.191.194 (34.251.191.194) 56(84) bytes of data.
--- 34.251.191.194 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3052ms
root@FamilyMediaServer:/# ping -c 4 34.248.194.188
PING 34.248.194.188 (34.248.194.188) 56(84) bytes of data.
--- 34.248.194.188 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3052ms
root@FamilyMediaServer:/# ping -c 4 34.249.151.238
PING 34.249.151.238 (34.249.151.238) 56(84) bytes of data.
--- 34.249.151.238 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3053ms
root@FamilyMediaServer:/# ping -c 4 54.77.98.32
PING 54.77.98.32 (54.77.98.32) 56(84) bytes of data.
--- 54.77.98.32 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3072ms
root@FamilyMediaServer:/#
I can reach other IP addresses with no issue.
root@FamilyMediaServer:/# ping google.com
PING google.com (172.217.9.14) 56(84) bytes of data.
64 bytes from dfw28s02-in-f14.1e100.net (172.217.9.14): icmp_seq=1 ttl=251 time=18.5 ms
64 bytes from dfw28s02-in-f14.1e100.net (172.217.9.14): icmp_seq=2 ttl=251 time=19.4 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 18.550/18.985/19.420/0.435 ms
root@FamilyMediaServer:/# ping yahoo.com
PING yahoo.com (98.138.219.231) 56(84) bytes of data.
64 bytes from media-router-fp1.prod1.media.vip.ne1.yahoo.com (98.138.219.231): icmp_seq=1 ttl=251 time=39.0 ms
64 bytes from media-router-fp1.prod1.media.vip.ne1.yahoo.com (98.138.219.231): icmp_seq=2 ttl=251 time=40.1 ms
^C
--- yahoo.com ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2002ms
rtt min/avg/max/mdev = 39.022/39.574/40.127/0.587 ms
root@FamilyMediaServer:/# ping reddit.com
PING reddit.com (151.101.65.140) 56(84) bytes of data.
64 bytes from 151.101.65.140: icmp_seq=1 ttl=251 time=22.9 ms
64 bytes from 151.101.65.140: icmp_seq=2 ttl=251 time=23.4 ms
^C
--- reddit.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 22.942/23.197/23.453/0.297 ms
root@FamilyMediaServer:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=251 time=30.8 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=251 time=32.5 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 30.838/31.685/32.533/0.865 ms
root@FamilyMediaServer:/#