Trailers is unavailable. Try again later

After setting up everything and attempting to bask in the glory of PlexConnect....the Trailers app on my ATV errors out with "Trailers is unavailable. Try again later" 

What did I do to set it up?  Glad you asked! (based on instructions from https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Linux):

  1. Extract plexconnect on my media server (an ubuntu 10.04LTS machine)
  2. Generate the SSL certificates (using OpenSSL on the media server) and move the .pem and .cer files into the certificates folder in Plexconnect.  I skipped the "install the certificates to AppleTV via USB (optional)".  
  3. Ran Plexconnect.py and everything seems good.
  4. Launch Trailers app and it eventually times out, showing the above mentioned error message.

Here's the console output (nothing else happens until I use Control-C to shutdown PlexConnect):

tom@HouseMedia:~/PlexConnect-master$ sudo /home/tom/PlexConnect-master/PlexConnect.py
17:05:51 PlexConnect: ***
17:05:51 PlexConnect: PlexConnect
17:05:51 PlexConnect: Press CTRL-C to shut down.
17:05:51 PlexConnect: ***
17:05:51 PlexConnect: started: 17:05:51
17:05:51 PlexConnect: Version: 0.3.1+
17:05:51 PlexConnect: Python: 2.6.5 (r265:79063, Sep 26 2013, 18:51:09) [GCC 4.4.3]
17:05:51 PlexConnect: Host OS: linux2
17:05:51 PlexConnect: IP_self: 192.168.0.111
17:05:51 DNSServer: started: 17:05:51
17:05:51 DNSServer: ***
17:05:51 DNSServer: DNSServer: Serving DNS on 192.168.0.111 port 53.
17:05:51 DNSServer: intercept: ['trailers.apple.com'] => 192.168.0.111
17:05:51 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
17:05:51 DNSServer: forward other to higher level DNS: 8.8.8.8
17:05:51 DNSServer: ***
17:05:51 WebServer: started: 17:05:51
17:05:51 WebServer: ***
17:05:51 WebServer: WebServer: Serving HTTP on 192.168.0.111 port 80.
17:05:51 WebServer: ***
17:05:51 WebServer: started: 17:05:51
17:05:51 WebServer: ***
17:05:51 WebServer: WebServer: Serving HTTPS on 192.168.0.111 port 443.
17:05:51 WebServer: ***
17:06:28 DNSServer: DNS request received!
17:06:28 DNSServer: Source: ('192.168.0.164', 53509)
17:06:28 DNSServer: Domain: trailers.apple.com
17:06:28 DNSServer: ***intercept request
17:06:28 DNSServer: -> DNS response: 192.168.0.111
17:06:28 WebServer: serving /js/application.js
 

Here's some more details for ya:

  • Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software):

    • Model MD199C/A    Firmware ver. 6.0.1 (6646.80.1)

  • The DNS server set on the ATV (found under the ATV settings > general > network > DNS):

    • 192.168.0.111

  • The local IP address of the device that PlexConnect is installed on:

    • 192.168.0.111

  • The device and operating system (including version number) that PlexConnect is installed on:  

    • Ubuntu Linux 10.04.2

  • The device and operating system (including version number) that the Plex media server (PMS) is installed on: 

    • Ubuntu Linux 10.04.2 (same as Plexconnect)

  • The Plex media server (PMS) version number you are running (do not put 'latest'): 

    • Version 0.9.8.18

  • The local IP address of the device that the Plex media server (PMS) is installed on:

    • 192.168.0.111

  • The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any non-standard setup e.g. Plexify or a fork.

    • PlexConnect: Version: 0.3.1+
    • Python: 2.6.5 (r265:79063, Sep 26 2013, 18:51:09)
  • The contents of your 'Settings.cfg' file

    • **during troubleshooting I noticed that ip_pms had been autofilled with an ip I didn't recognize.  Thus, I commented it out and provided the correct ip address.**

[PlexConnect]
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
enable_dnsserver = True
logpath = .
#ip_pms = 192.168.178.10
ip_pms = 192.168.0.111
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
 
The Plexconnect.log contents can be found at: http://pastebin.com/SFn0Qj1P

Generate the SSL certificates (using OpenSSL on the media server) and move the .pem and .cer files into the certificates folder in Plexconnect.  I skipped the "install the certificates to AppleTV via USB (optional)"

You need to install in the ATV the certs that you have generated, either through USB (not sure if you can do it in Linux) or through Ethernet/wifi.

I assume this works with all plexconnect hosts as long as you have generated proper certs.

https://github.com/iBaa/PlexConnect/wiki/Install-Guide-AppleTV-Ethernet#wiki-install-the-certificate-to-your-appletv

I assume this works with all plexconnect hosts as long as you have generated proper certs.

https://github.com/iBaa/PlexConnect/wiki/Install-Guide-AppleTV-Ethernet#wiki-install-the-certificate-to-your-appletv

I generated the certs on the ubuntu box and coped to the .pem and .cer file into the plexconnect assets folder.  I then followed the Install the certificate to your AppleTV

instructions on the page that wahlman.j referenced.  Although I don't quite understand how doing this is "installing" something that is referencing the cert files in the plexconnect assets folder. 

You need to install in the ATV the certs that you have generated, either through USB (not sure if you can do it in Linux) or through Ethernet/wifi.

As I mentioned in my reply to wahlman, I have already tried the ethernet instructions (as the ATV uses Ethernet).  I am unable to try the optional usb install instructions as the Iphone config utility doesn't detect the ATV when it is connected via micro-usb

 Although I don't quite understand how doing this is "installing" something that is referencing the cert files in the plexconnect assets folder. 

The webserver part of PlexConnect serves them to the ATV and thus the profile gets installed.

Does your ATV show as having a profile installed? If not try using the IP address instead of the trailers.apple.com

The webserver part of PlexConnect serves them to the ATV and thus the profile gets installed.

Does your ATV show as having a profile installed? If not try using the IP address instead of the trailers.apple.com

That makes sense now, thanks f00br!  The profile "trailers.apple.com" shows that a certificate as being received on 02/02/2014.  I removed it, added it back again, ran plexconnect.py and attempting to use the trailers app again...same issue :(

Have you created inbound rules (both TCP and UDP) for Python? I would also suggest installing Python 2.7.x for full functionality and checking dnsmasq (either it being disabled or doing the redirection for trailers.apple.com).

Both ufw and linux firewall do not appear to be active so I don't think that would be causing any issues.  I'm really reluctant about messing with Python as the last time I attempted to upgrade, I spent a lot of time troubleshooting to get everything working again.  Since the ideas aren't exactly flooding in from the community, I guess I have no choice but to go there. Any recommendations on how-to guides on installing mulitple versions of Python (2.6 and 2.7 and 3.x).  I'm worried about causing dependancy problems for packages that are shared amongst the different versions of python

Well, I installed python2.7 and executed the script using it....And I am now basking in the glory of PlexConnect.

So it would seem that it's not really compatible with Python2.6 at all

Thanks for the help!

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