ATV2 / macOS 10.6.8 / PlexConnect 0.7.1

Hello,

I’m facing a weird issue.
My PlexConnect is right configure as you can see on the log file :

Jun 18,2020 16:02:24 PlexConnect: ***
Jun 18,2020 16:02:24 PlexConnect: PlexConnect
Jun 18,2020 16:02:24 PlexConnect: Press CTRL-C to shut down.
Jun 18,2020 16:02:24 PlexConnect: ***
Jun 18,2020 16:02:24 PlexConnect: Started
Jun 18,2020 16:02:24 PlexConnect: Version: 0.7.1-080420
Jun 18,2020 16:02:24 PlexConnect: Python: 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:03:00) 
[GCC 4.2.1 (Apple Inc. build 5577)]
Jun 18,2020 16:02:24 PlexConnect: Host OS: darwin
Jun 18,2020 16:02:24 PlexConnect: PILBackgrounds: Is PIL installed? False
Jun 18,2020 16:02:24 PlexConnect: IP_self (from settings): 192.168.86.56
Jun 18,2020 16:02:24 DNSServer: Started
Jun 18,2020 16:02:24 DNSServer: Prevent Atv Update: Enabled
Jun 18,2020 16:02:24 DNSServer: ***
Jun 18,2020 16:02:24 DNSServer: DNSServer: Serving DNS on 192.168.86.56 port 53.
Jun 18,2020 16:02:24 DNSServer: intercept: ['trailers.apple.com'] => 192.168.86.56
Jun 18,2020 16:02:24 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
Jun 18,2020 16:02:24 DNSServer: forward other to higher level DNS: 8.8.8.8
Jun 18,2020 16:02:24 DNSServer: ***
Jun 18,2020 16:02:24 WebServer: Started
Jun 18,2020 16:02:24 WebServer: ***
Jun 18,2020 16:02:24 WebServer: WebServer: Serving HTTP on 192.168.86.56 port 80.
Jun 18,2020 16:02:24 WebServer: ***
Jun 18,2020 16:02:24 WebServer: Started
Jun 18,2020 16:02:24 WebServer: ***
Jun 18,2020 16:02:24 WebServer: WebServer: Serving HTTPS on 192.168.86.56 port 443.
Jun 18,2020 16:02:24 WebServer: ***
Jun 18,2020 16:02:31 DNSServer: DNS request received!
Jun 18,2020 16:02:31 DNSServer: Source: ('192.168.86.58', 63875)
Jun 18,2020 16:02:31 DNSServer: Domain: p22-buy.itunes-apple.com.akadns.net
Jun 18,2020 16:02:31 DNSServer: ***forward request
Jun 18,2020 16:02:31 DNSServer: -> DNS response from higher level
Jun 18,2020 16:02:33 DNSServer: DNS request received!
Jun 18,2020 16:02:33 DNSServer: Source: ('192.168.86.58', 64516)
Jun 18,2020 16:02:33 DNSServer: Domain: se-edge.itunes.apple.com.edgekey.net
Jun 18,2020 16:02:33 DNSServer: ***forward request
Jun 18,2020 16:02:33 DNSServer: -> DNS response from higher level
Jun 18,2020 16:02:34 DNSServer: DNS request received!
Jun 18,2020 16:02:34 DNSServer: Source: ('192.168.86.58', 63373)
Jun 18,2020 16:02:34 DNSServer: Domain: is-ssl.mzstatic.com.itunes-apple.com.akadns.net
Jun 18,2020 16:02:34 DNSServer: ***forward request
Jun 18,2020 16:02:34 DNSServer: -> DNS response from higher level
Jun 18,2020 16:02:34 DNSServer: DNS request received!
Jun 18,2020 16:02:34 DNSServer: Source: ('192.168.86.58', 52998)
Jun 18,2020 16:02:34 DNSServer: Domain: is5-ssl.mzstatic.com
Jun 18,2020 16:02:34 DNSServer: ***forward request
Jun 18,2020 16:02:34 DNSServer: -> DNS response from higher level
Jun 18,2020 16:02:40 DNSServer: DNS request received!
Jun 18,2020 16:02:40 DNSServer: Source: ('192.168.86.58', 53223)
Jun 18,2020 16:02:40 DNSServer: Domain: trailers.apple.com
Jun 18,2020 16:02:40 DNSServer: ***intercept request
Jun 18,2020 16:02:40 DNSServer: -> DNS response: 192.168.86.56

but when I click on Trailers icon, it says “Trailers is unavailable. Try again later”.

When I change the OS which hosts PlexConnect (macOS 10.15) regenerate the certificate, it works fine…
But I wanted to use the old iMac, and not my laptop.

Here is my Settings.cfg file :

[PlexConnect]
enable_plexgdm = True
ip_pms = XXXXX (change by me)
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
intercept_atv_icon = False
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.86.56
use_custom_dns_bind_ip = False
custom_dns_bind_ip = 0.0.0.0
hosttointercept = trailers.apple.com
icon = movie-trailers
certfile = ./assets/certificates/trailers.pem
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
fanart_quality = High
loglevel = Normal
logpath = .

It seems the problem is on the old OS.
Should I try an older version of PlexConnect ?

Thank you for your work and your help if you can

Philippe

You can have PlexConnect instances in different PC’s (with different IP’s) but you need to follow some rules:

  1. ip_plexconnect = xx.xx.xx.xx must be different in each machine
  2. The ip addrees that you put in ip_plexconnect = xx.xx.xx.xx must be the one assigned to each PC, and also put as DNS in the ATV (this is how the ATV chooses PC 1 or 2)
  3. Regarding certificates, you need to copy the contents of ./assets/certificates/ between PC’s so that the certificate loaded in the ATV can work with either PC

Thank you @moody_blue for your quick answer.

But my problem is still there unfortunately…

Hereafter my protocol on my (old) iMac :

  1. install PlexConnect 0.7.1
  2. Generate certificate on the iMac with openssl commands given in GitHub
  3. Setup ATV with DNS configure to reach the iMac IP
  4. Install the certificate from the ATV
  5. Then connect to Trailers… And got “Trailers is unavailable. Try again later”. :disappointed:

One particularity of my configuration maybe is that the PMS is remotely reached over the Internet, so the ip_pms = is a dns name such as www.google.com, and the ip_plexconnect = is the IP in the same LAN than the ATV.
But it works with my laptop.

Question : in my configuration with PMS remote, which host has to generate the certificate, the host with the PMS or the host with PlexConnect ?
I assume it is the one with PlexConnect, but not sure.

Thank you

The recommended way to access remote PMS is to have enable_plexgdm = False and login the ATV to plex.tv (using Settings in the PlexConnect menu). This will make use of PMS’s security scheme, and will also enable plex pass if you decide to subscribe it. You should not expose a PMS server to the internet unless you are using a VPN (but this may create issues with PlexConnect) or the PMS security scheme.

But your problem is different. The “Trailers is unavailable. Try again later” message is often a consequence of bad certificates. So, instead of generating certificates in your old Mac, simply copy the certificates that you already have (and working) in the new Mac to the old one.

There’s also the possibility to jailbreak the ATV and install PlexConnect on it. This way you don’t need to have a local Mac running just to allow the ATV to access a remote PMS.

Yes I thought about jailbreak too…

Here is my last try,

  • enable_plexgdm = False
  • “new” certificate
    I can connect to PlexConnect, but when I try to login, it doesn’t achieve and I’ve got an error :
Jun 19,2020 11:44:01 DNSServer: DNS request received!
Jun 19,2020 11:44:01 DNSServer: Source: ('192.168.86.58', 65384)
Jun 19,2020 11:44:01 DNSServer: Domain: itunes.apple.com
Jun 19,2020 11:44:01 DNSServer: ***forward request
Jun 19,2020 11:44:01 DNSServer: -> DNS response from higher level
Jun 19,2020 11:44:06 WebServer: serving *.cer: /trailers.cer
Jun 19,2020 11:44:15 WebServer: serving /js/application.js
Jun 19,2020 11:44:15 WebServer: serving .xml: /
Jun 19,2020 11:44:15 PlexAPI: PlexAPI - Hostname XX.XX.net resolved to XX.XX.XX.XX
Jun 19,2020 11:44:15 PlexAPI: Plex Media Servers found: 0
Jun 19,2020 11:44:16 WebServer: serving .xml: /PlexConnect.xml
Jun 19,2020 11:44:16 WebServer: serving /js/utils.js
Jun 19,2020 11:44:16 WebServer: serving /js/handlePlexConnectNavbar.js
Jun 19,2020 11:44:16 WebServer: serving .xml: /media/providers
Jun 19,2020 11:44:16 WebServer: serving /js/utils.js
Jun 19,2020 11:44:16 WebServer: serving /js/sectionHoldSelect.js
Jun 19,2020 11:44:24 WebServer: serving .xml: /
Jun 19,2020 11:44:24 WebServer: serving /js/utils.js
Jun 19,2020 11:44:24 WebServer: serving /js/settings.js
Jun 19,2020 11:44:24 WebServer: serving *.jpg: /thumbnails/PlexConnectLogo.jpg
Jun 19,2020 11:46:04 DNSServer: DNS request received!
Jun 19,2020 11:46:04 DNSServer: Source: ('192.168.86.58', 61817)
Jun 19,2020 11:46:04 DNSServer: Domain: trailers.apple.com
Jun 19,2020 11:46:04 DNSServer: ***intercept request
Jun 19,2020 11:46:04 DNSServer: -> DNS response: 192.168.86.56
Jun 19,2020 11:46:04 WebServer: serving .xml: /PlexConnect.xml
Jun 19,2020 11:47:04 WebServer: serving .xml: /PlexConnect.xml
Jun 19,2020 11:47:05 WebServer: serving .xml: /
Jun 19,2020 11:47:05 WebServer: File Not Found:
Traceback (most recent call last):
  File "/Applications/PlexConnect/WebServer.py", line 248, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + query, options)
  File "/Applications/PlexConnect/XMLConverter.py", line 249, in XML_PMS2aTV
    (username, auth_token) = PlexAPI.MyPlexSignIn(parts[0], parts[1], options)
  File "/Applications/PlexConnect/PlexAPI.py", line 691, in MyPlexSignIn
    response = urlopener.open(request).read()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open context=self._context)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

What about YouTube ? Is it working ? If not there’s a problem with your internet parameters.

Is the time ok with the ATV ? Is the timezone correctly coded, both in Mac and in ATV ?

The Youtube widget I no longer supported on ATV2, but for instance I can stream WallStreetJournal videos…
The Timezone is ok…
I can’t understand…
Never mind, if you have another idea don’t hesitate and thank you for your support.

Would this help ?

Moody_blue, you made it !!!

Its a Python issue, so I have to launch the script with PYTHONHTTPSVERIFY=0 and then it works !
I’ve updated python to 2.7.15, but it doesn’t work without this setting.
I don’t know what can be the matter with this parameter but, it works now :slight_smile:
Thank you very much for your help!
Bye

1 Like

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