Apple TV3 vs. PMS - Trailers app issue

Hello all!

 

My Uncle showed me PMS over the Christmas period and I have had the opportunity to set it up. I have also setup the connection between my PMS and my Apple TV 3 - this is the basis for my enquiry today:

 

Background info:

  • Router - Netgear DGND3700v2; IP 192.168.1.1
  • Apple TV 3 - 7.0.2 (6915)
  • DNS Server (on Apple TV) - 192.168.1.100
  • PlexConnect and PMS installed on same machine: Apple MacBook Pro Retina (13" mid 2014) running Mac OS X Yosemite 10.10.1
  • PMS Version 2.3.7
  • Local IP of device PMS is on - 192.168.1.100
  • 27/12/2014 @ 0625 (Github Source)
  • Contents of 'Settings.cfg' file:
    • [PlexConnect]
      enable_plexgdm = True
      ip_pms = 192.168.178.10
      port_pms = 32400
      enable_dnsserver = True
      port_dnsserver = 53
      ip_dnsmaster = 8.8.8.8
      prevent_atv_update = True
      enable_plexconnect_autodetect = True
      ip_plexconnect = 0.0.0.0
      hosttointercept = trailers.apple.com
      port_webserver = 80
      enable_webserver_ssl = True
      port_ssl = 443
      certfile = ./assets/certificates/trailers.pem
      loglevel = Normal
      logpath = .
  • NB: Issue NOT related to a particular media file
  • Detailed Description of Issue:
    • I have followed all instructions as per github regarding the creation of certificates in Terminal and the installation of the profile on the Apple TV via 'Apple Configurator'. I then plugged my Apple TV into my TV and modem/router (Netgear DGND3700v2) via an ethernet cable. I HAD originally successfully configured it to connect to my PMS on my computer, but then it just stopped working without explanation that I am aware of.
    • So: The issue as it stands: The following is a bit more of an explanation of where I am at the moment. In Terminal, I boot (wrong word, I know!) Alex Connect using the sudo "/Applications/PlexConnect-master/PlexConnect.py" command and it appears to successfully boot.
      I then go to my Apple TV - with DNS still configured to the IP of my PMS laptop (192.168.1.100) - and select the "Trailers" app on the home screen and the following message appears "Trailers is unavailable. Try again later."
    • I do have another Router/Modem available to me at home - we have just upgraded to the Netgear router mentioned above because it is capable of faster speeds both internally and externally to the network (downloads and throughput). I'd prefer to stay on the current router, though I can change to our old NetComm (VERY SLOW) router if necessary - its particular model number escapes me at this present time.
    • ​Terminal: I am a bit of a noob when it comes to terminal, so please bare with me as I try to explain what I have done in the terms that I feel comfortable with - cheers! Alternatively, please find attached below (right below this line!) what sequence (?) I put into terminal and the responses i received:
      Davids-MacBook-Pro:~ davidtruscott$ sudo "/Applications/PlexConnect-master/PlexConnect.py"

      Password:

      21:35:20 PlexConnect: ***

      21:35:20 PlexConnect: PlexConnect

      21:35:20 PlexConnect: Press CTRL-C to shut down.

      21:35:20 PlexConnect: ***

      21:35:20 PlexConnect: started: 21:35:20

      21:35:20 PlexConnect: Version: 0.5-dev

      21:35:20 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)]

      21:35:20 PlexConnect: Host OS: darwin

      21:35:20 PlexConnect: PILBackgrounds: Is PIL installed? False

      21:35:20 PlexConnect: IP_self: 192.168.1.100

      21:35:20 DNSServer: started: 21:35:20

      21:35:20 DNSServer: ***

      21:35:20 DNSServer: DNSServer: Serving DNS on 192.168.1.100 port 53.

      21:35:20 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.100

      21:35:20 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1

      21:35:20 DNSServer: forward other to higher level DNS: 8.8.8.8

      21:35:20 DNSServer: ***

      21:35:20 WebServer: started: 21:35:20

      21:35:20 WebServer: ***

      21:35:20 WebServer: WebServer: Serving HTTP on 192.168.1.100 port 80.

      21:35:20 WebServer: ***

      21:35:20 WebServer: started: 21:35:20

      21:35:20 WebServer: ***

      21:35:20 WebServer: WebServer: Serving HTTPS on 192.168.1.100 port 443.

      21:35:20 WebServer: ***

      21:35:32 DNSServer: DNS request received!

      21:35:32 DNSServer: Source: ('192.168.1.7', 55446)

      21:35:32 DNSServer: Domain: trailers.apple.com

      21:35:32 DNSServer: ***intercept request

      21:35:32 DNSServer: -> DNS response: 192.168.1.100

    • So in my limited understanding of what has just occurred above ^, it appears that the script (?) was successful as it intercepted the 'trailers.apple.com' request and diverted it to my elected DNS/IP of 192.168.1.100 but no data was received (?) with the message on the Apple TV returning 'Trailers is unavailable. Try again later.

  • Please find attached my loglevel - "High" log - http://pastebin.com/embed_js.php?i=kDc2B1zN

  • If you are able to assist me in my quest to create/develop my home media server, I would be eternally grateful!

Cheers!
Trusties!

 

Firewall?

Certificate issue?

Firewall?
Certificate issue?

Hello drewbie - thanks for responding!
 

Regarding the firewall - the one on my laptop (hosts PMS) is not turned on, and the one on the modem/router has all the relevant ports open forwarding to my specific IP for PMS.

Regarding Certificates - I freshly generated a new set of certificates before installation.

NB: In my initial post - which I admit is pretty hard to follow along with - I mentioned that I did have PlexConnect working on my Apple TV3, then it just stopped working (with no known cause to me).

Hello drewbie - thanks for responding!
 
Regarding the firewall - the one on my laptop (hosts PMS) is not turned on, and the one on the modem/router has all the relevant ports open forwarding to my specific IP for PMS.
Regarding Certificates - I freshly generated a new set of certificates before installation.
 
NB: In my initial post - which I admit is pretty hard to follow along with - I mentioned that I did have PlexConnect working on my Apple TV3, then it just stopped working (with no known cause to me).


Have you restarted the ATV yet? Go into the ATV menu and restart...

Once you start PlexConnect the manual way you cannot close the terminal window unless you shutdown PlexConnect cleanly by pressing Ctrl+c. I would make sure you generate new certs, delete all the old ones prior from your mac and ATV then load brand new ones. Also ensure there is no internet sharing, Vpn, or anti virus enabled. Another method from iBaa that users use is his launchctl method that installs a plist to load plexconnect @ boot. After you load new certs onto your ATV and follow the above start PlexConnect manually or use the bash plist for launchctl then reboot your aTV to clear the cache the try your hijacked app (trailers):

https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Mac

Look for this:

"Optional: Run PlexConnect as launchctl daemon"

Also once you establish a solution you can either stick with what fixed it or you can optionally use this app:

OpenPlex

Have you restarted the ATV yet? Go into the ATV menu and restart...

Many apologies - I forgot to mention in my original post that I have restarted my ATV multiple times

It still looks like an issue with firewall or certificate to me, given you get the intercept and no more. Cert expired? Firewall no longer allowing port 443 to Python?

It still looks like an issue with firewall or certificate to me, given you get the intercept and no more. Cert expired? Firewall no longer allowing port 443 to Python?

I just checked my certificate in my PlexConnect-master folder and it is current (for another 30 years). Firewall on my laptop is turned off and the one on the router is only 'capturing'/intercepting incoming network traffic.

Also once you establish a solution you can either stick with what fixed it or you can optionally use this app:

OpenPlex

@Wahlman.J - Could I use OpenPlex to setup the ATV/PlexConnect system?

So other apps are being intercepted ok but you are getting "trailers unavailable" instantly when opening the trailers app? 

I had the same issue yesterday/this morning and solved it by using the version 0.5 https://github.com/i...rchive/v0.5.zip as mentioned here https://forums.plex.tv/topic/132734-massive-update-to-xml-selector-read-before-updating/

Your log file says version 0.5-dev. That is the same install I was using when I had that issue. Using version 0.5 fixed it for me instantly. Working beautifully now.

--> @Wahlman.J - Could I use OpenPlex to setup the ATV/PlexConnect system?

Yep.

--> @Wahlman.J - Could I use OpenPlex to setup the ATV/PlexConnect system?

Yep.

Wahlman.J - you are an absolute @#&$@*#@&^ legend! Now, If I wasn't a poor nursing student I would definitely make a donation for your OpenPlex app. I followed all of the directions of the 'original' install process to the letter and couldn't get it to work, but once I used OpenPlex, well, my work was done!

Thanks again for your help.

Happy New Year! (Well - almost here in Australia anyway!)

If you have English content you could always share your library :wink: instructions in my signature if desired. Glad it worked for you by the way.

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