Trailers unavailable in AppleTV/7.0.1 iOS/8.1 + Yosemite on Mac Mini

I have PlexConnect working nicely even after upgrading my Mac mini to Yosemite. Suddenly I did git pull and suddenly trailers are not longer available. 

 

I've done since re-creating twice the certificates, re-re-configuring my DNS service, re-re-doing the trailers.apple.com website, dropping the entired PlexConnect folder and git pull fresh. No matter what I do I get the same log

 

22:12:29 PlexConnect: started: 22:12:29
22:12:29 PlexConnect: Version: 0.4-dev
22:12:29 PlexConnect: Python: 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
22:12:29 PlexConnect: Host OS: darwin
22:12:29 Settings: getsetting enable_plexconnect_autodetect=True
22:12:29 PlexConnect: IP_self: 192.168.2.24
22:12:29 Settings: getsetting hosttointercept=trailers.apple.com
22:12:29 ATVSettings: init class CATVSettings
22:12:29 ATVSettings: load settings
22:12:29 Settings: getsetting enable_dnsserver=False
22:12:29 WebServer: started: 22:12:29
22:12:29 Settings: getsetting port_webserver=9999
22:12:29 WebServer: ***
22:12:29 WebServer: WebServer: Serving HTTP on 192.168.2.24 port 9999.
22:12:29 WebServer: ***
22:12:29 Settings: getsetting enable_webserver_ssl=True
22:12:29 WebServer: started: 22:12:29
22:12:29 Settings: getsetting port_ssl=443
22:12:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
22:12:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
22:12:29 WebServer: ***
22:12:29 WebServer: WebServer: Serving HTTPS on 192.168.2.24 port 443.
22:12:29 WebServer: ***
22:13:46 WebServer: http request header:
Host: trailers.apple.com
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en;q=0.9
Cookie: s_vi=[CS]v1|299A48A205013937-600001016001D097[CE]
Connection: keep-alive
X-Apple-TV-Resolution: 1080
X-Apple-TV-Version: 7.0.1
User-Agent: AppleTV/7.0.1 iOS/8.1 AppleTV/7.0.1 model/AppleTV3,2 build/12B410a (3; dt:12)
 
22:13:46 WebServer: http request path:
/appletv/us/js/application.js
22:13:46 Localize: aTVLanguage: en
22:13:46 WebServer: pms address:
 
22:13:46 WebServer: cleaned path:
/appletv/us/js/application.js
22:13:46 WebServer: PlexConnect options:
{'aTVScreenResolution': '1080', 'aTVFirmwareVersion': '7.0.1', 'aTVLanguage': 'en', 'aTVAddress': '192.168.2.25'}
22:13:46 WebServer: additional arguments:
 
22:13:46 WebServer: serving /js/application.js
22:14:03 WebServer: http request header:
Host: trailers.apple.com
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en;q=0.9
Cookie: s_vi=[CS]v1|299A48A205013937-600001016001D097[CE]
Connection: keep-alive
X-Apple-TV-Resolution: 1080
X-Apple-TV-Version: 7.0.1
User-Agent: AppleTV/7.0.1 iOS/8.1 AppleTV/7.0.1 model/AppleTV3,2 build/12B410a (3; dt:12)
 
22:14:03 WebServer: http request path:
/appletv/us/js/application.js
22:14:03 Localize: aTVLanguage: en
22:14:03 WebServer: pms address:
 
22:14:03 WebServer: cleaned path:
/appletv/us/js/application.js
22:14:03 WebServer: PlexConnect options:
{'aTVScreenResolution': '1080', 'aTVFirmwareVersion': '7.0.1', 'aTVLanguage': 'en', 'aTVAddress': '192.168.2.25'}
22:14:03 WebServer: additional arguments:
 
22:14:03 WebServer: serving /js/application.js
 
Here my configuration:
 
[PlexConnect]
port_pms = 32400
port_webserver = 9999
ip_plexconnect = 192.168.2.24
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 192.168.2.24
loglevel = High
enable_dnsserver = False
logpath = .
ip_pms = 192.168.2.24
enable_plexgdm = True
hosttointercept = trailers.apple.com
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True

Help is appreciate it!!!

 

 

 
 
 
 

Port webserver 9999 rev proxy? Try 80 instead if not.

Are you running your own DNS server?

Yes, I'm running my own DNS server. Here is some more info.
 

trailers.apple.com 192.168.2.25 - - [13/Nov/2014:22:13:46 -0500] "GET /PlexConnect.xml&PlexConnectUDID=DY5LJHQ5FF54 HTTP/1.1" 404 314 "-" "AppleTV/7.0.1 iOS/8.1 AppleTV/7.0.1 model/AppleTV3,2 build/12B410a (3; dt:12)"

trailers.apple.com 192.168.2.25 - - [13/Nov/2014:22:14:04 -0500] “GET /&PlexConnect=Discover&PlexConnectUDID=DY5LJHQ5FF54 HTTP/1.1” 404 324 “-” “AppleTV/7.0.1 iOS/8.1 AppleTV/7.0.1 model/AppleTV3,2 build/12B410a (3; dt:12)”

trailers.apple.com 192.168.2.25 - - [13/Nov/2014:22:14:04 -0500] “GET /PlexConnect.xml&PlexConnectUDID=DY5LJHQ5FF54 HTTP/1.1” 404 314 “-” “AppleTV/7.0.1 iOS/8.1 AppleTV/7.0.1 model/AppleTV3,2 build/12B410a (3; dt:12)”

Configuration of the trailers.apple.com website

ServerName trailers.apple.com
ServerAdmin admin@example.com
DocumentRoot "/Library/WebServer/Documents/trailers"
DirectoryIndex index.html index.php /wiki/ default.html
CustomLog /var/log/apache2/access_log combinedvhost
ErrorLog /var/log/apache2/error_log

SSLEngine Off
SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
SSLProtocol -ALL +SSLv3 +TLSv1
SSLProxyEngine On
SSLProxyProtocol -ALL +SSLv3 +TLSv1

<Directory “/Library/WebServer/Documents/trailers”>
Options All +MultiViews -ExecCGI -Indexes
AllowOverride None

DAV Off

RequestHeader set User-Agent AppleTV
ProxyRequests off
AllowEncodedSlashes NoDecode
ProxyPass / http://trailers.apple.com:9999/ nocanon
ProxyPassReverse / http://trailers.apple.com:9999/

And some Dig info

dig @trailers.apple.com 192.168.2.24

; <<>> DiG 9.8.3-P1 <<>> @trailers.apple.com 192.168.2.24
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20548
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;192.168.2.24. IN A

;; AUTHORITY SECTION:
. 1799 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2014111401 1800 900 604800 86400

;; Query time: 113 msec
;; SERVER: 192.168.2.24#53(192.168.2.24)
;; WHEN: Fri Nov 14 19:45:51 2014
;; MSG SIZE  rcvd: 105

Thanks guys!!!

How old was your previous install and what happens if you go back to that commit (after replacing the settings.cfg and certs)?

I think it would be helpful to see if the issue is with your setup or the actual code changes.

Yeah, I was thinking about doing that because my setup stop working right after a 'pull' I did about two weeks ago. I saw a couple of comments pertaining to changes that seem to affect aTv. I'm going to do that and post my findings.

Thanks.

Tried with no luck.

PlexConnect-9ad4b14abbbcbd326abc0208174cb43b71fe46e3 - Oct 20

PlexConnect-665f1f6d75978814f6780c13ca60d76ed36d30a7 - Nov 1

I've chosen the two dates because I upgraded my server on Oct 30 and finished all my configuration in the weekend of Nov1-Nov2. It was working that weekend even with the latest aTV upgrade and latest Plexconnect code. Then few days after aTv asked for a new upgrade (dunno why) but I applied it and did a 'git pull'. After all of these the trailers channels stop working.

Certs? Did you re-generate certs?

Baa did we get rid of the need for the following in the reverse proxy setup?:

AllowEncodedSlashes NoDecode

Yes, I did re-generate the certs thank you all the attention. I finally found the issue. I noticed that each request coming from aTv was resolved as a 404. I recalled that in my desperate attempt to improve wifi connection after upgrading to yosemite I disabled my eth0. And it was the IP assigned to my eth0 the one listed in my /etc/hosts file. So I remapped my IP and double checked the DNS configuration just in case. Trailers is back!!!

Thanks a lot again!

No worries, glad it is working again.

Baa did we get rid of the need for the following in the reverse proxy setup?:

AllowEncodedSlashes NoDecode

Was that needed because of the /PMS(https://...) thing? That indeed was changed some time ago - URL replaced by PMS_IP only.

Was that needed because of the /PMS(https://...) thing? That indeed was changed some time ago - URL replaced by PMS_IP only.


Yeah that's the one, glad my mind isn't playing tricks on me :)

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