I run my plex server on a Ubuntu 16.04 box in a data center. A few weeks ago I noticed that a lot of my TV shows stopped getting artwork or metadata.
I tried clearing the plugin cache directories without success. I upgraded the server.
I noticed in the logs that all the failing requests were to https://thetvdb.com and remembered that Plex was supposed to be using a TVDB proxy/mirror.
I nuked the TV show collection and recreated it to let it rebuild. Now it’s attempting to use the proxy/mirrors that Plex operates
I am now getting SOME metadata, but only from tvdb2.plex.tv and meta.plex.tv. Connections to thetvdb.com (mostly for artwork or banners or stuff the mirror hasn’t cached yet) are still failing.
2017-07-31 21:50:05,939 (7f6a677fe700) : DEBUG (networking:166) - Requesting 'https://thetvdb.com/banners/_cache/fanart/original/212171-11.jpg'
2017-07-31 21:50:07,811 (7f6a47fff700) : INFO (__init__:1059) - <urlopen error ('_ssl.c:574: The handshake operation timed out',)>
My OpenSSL info
OpenSSL 1.1.0f 25 May 2017
built on: reproducible build, date unspecified
platform: debian-amd64
compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/x86_64-linux-gnu/engines-1.1\""
OPENSSLDIR: "/usr/lib/ssl"
ENGINESDIR: "/usr/lib/x86_64-linux-gnu/engines-1.1"
I even ran lynx from the server to connect to https://thetvdb.com and it was successful. I wanted to rule out being blocked by Cloudflare for some weird reason.
Plex uses Python for it’s scanners, so maybe it’s something in there?
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.2k 26 Jan 2017'
>>>
I would open a Python2 console and type in something to basically try to curl the homepage of thetvdb to see if it can make the SSL connection, but I don’t know what ways the agents use Python to grab the data.
I’m not sure what to try next. Any suggestions?
