Trailers Is Unavailable

Alright. I need some help. I've been at this all day and I'm about to throw in the towel. 

 

I have 2 Apple TV3s. I had them both working with Plex & PlexConnect up till the 1st. I had to reinstall Windows due to some really bad viruses and so once my system was back up and running I wanted to get Plex installed and Plexconnect working again. I installed Plex and have that working. Then today I started working to get Plexconnect working and actually had it setup and confirmed working on 1 of the ATV3s. 

 

This is where everything started failing. I then hooked up the 2nd ATV3 and tried to install the cert for it. Unplugged it from the computer after it said it installed on Iphone Config Tool. Plugged it into the TV, set the DNS to my Plexserver and "Trailers is Unavailable. Please try again". So I restarted the ATV, made sure everything was right and it kept failing. After about an hour and a half of restoring the ATV 3 or four times and redoing the entire process over and over, I said forget it. I plugged back in the first ATV that was confirmed working and now that one doesn't work. 

 

After most of the day of trial after trial, I can not get anything to work at all. So I'm going to ask for help, and see if someone can CLEARLY explain the steps, since there is so many conflicting instructions.

 

1. Download & installed Plex Media Server

2. Download installed Python 2.7.6 Windows Installer (First download below the text "For the MD5 checksums and OpenPGP signatures, look at the detailed Python 2.7.6 page:" in the middle of the page) (I installed it to the default C:\Python27)

 

3. Download and extract PlexConnect from Github ( I extracted it to C:\Program Files (x86)\Plex\PlexConnect)

 

4. Created a folder called Cert in the root of C (C:\Cert)

 

5. Made a .bat file with the txt ("C:\OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:. railers.pem -keyout C:. railers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com" -config C:\OpenSSL-Win32\bin\openssl.cfg

 
C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:. railers.pem -outform der -out C:. railers.der
 
type C:. railers.key >> C:. railers.pem
 
trailers.der")
 
6. Double clicked the .bat file and installed the Cert
 
7. Copied the "trailers.pem" file the .bat file created and pasted it into "C:\Program Files (x86)\Plex\PlexConnect\assets\certificates" (All instructions say to manually create the folder called certificates, but PlexConnect has that folder already there when extracting it from the .zip file)
 
8. Download & installed iphone Configuration Utility
 
9. Open up iPhone Configuration Utility and click on the "Configuration Profiles" page on the left hand side under the Library
 
10. Type in whatever you want under "Name" and "Identifier" In the "General" tab ( I just put Plexconnect for both)
 
11. Click on the "Credentials" tab and click "Configure"
 
12. Scroll down the list till you see "trailers.apple.com" and  click ok.
 
13. Power on your AppleTV, then plug the microUSB cable from your AppleTV to your computer (So have just the AppleTV plugged into the power, then plug the microUSB into your computer, I had a hard time for a while because I was doing the USB first and was getting it constantly in Restore Mode. So just power, then microUSB, no HDMI and no Ethernet)
 
14. Once the AppleTV is recognized in the iphone configuration utility, click on it in the library tab
 
15. Then click on the "Configurations Profile" tab
 
16. There is only one item listed "Plexconnect" and click install
 
17. Once it installs it should change to remove.
 
18. Double click the "Plexconnect.py" file in the path C:\Program Files (x86)\Plex\PlexConnect
 
19. Unplug the MicroUSB from the AppleTV and plug in the HDMI and Ethernet cables
 
20. Now on the AppleTV device itself, go to the settings and change the DNS to the plex server
 
21. Go to the Trailers app and Plex should run.....
 
Only for me it does not. It says "Trailers is Unavailable. Please try again later".
 
This is the point at where I am. I have no clue what I need to do to get it to work again. Those are the steps I did today and it work. and then I followed those steps countless times again and they are not working anymore. 
 
I remember when I did this back in October of 2013 I had to install a cert before. Do I have to have more than one or just the plexconnect one?
 
If anyone can help me out, and let me know if I am just being an idiot and missing a step somewhere I would greatly appreciate it. 
 
 

Two things that jumped into my eyes:

Your cert generation bat seems to be old - there has been a revised version creating a trailers.cer instead of .der. It might be only a rename, I don't really know.

With the .cer file you can actually use PlexConnect to serve the cert over network - a lot easier that to fiddle with that configuration utility.

Ok, I've been looking for an updated bat, but was unable to find it. How do I have Plexconnect serve the cert over the network? I'm basically following the Github wiki install guide.

Yep...

WIKI is all you need.

create cert: https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Windows-Certificates (skip the (Optional) part)

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

Ok. Still working on this and checking the forums. I can't believe that there are that many conflicting instructions. I'm trying to run Plexconnect on my Windows 7 machine that is also running my Plex Media Server

You said in your first post that I don't need to mess around with the iphone configuration utility

So I started from Scratch. I plugged my AppleTV3 into my windows machine. Turned the AppleTV3 off and turned it back on. Which started it in recovery mode, and factory restored it with the most up to date firmware (6.0.2)

Plexconnect extracted from Github and put into this path: C:\PlexConnect (with the folder called "PlexConnect" instead of what Github has it named to "plexconnect-master")

Created trailers.cer and .pem files exactly the way the Wiki link you showed me how to

Skipped the iphone congifuration utility part and just moved the traliers.cer and .pem files to "C:\PlexConnect\assets\certificates"

Double clicked on the Plexconnect.py file to start plexconnect

Go to the AppleTV and click on trailers app.... Trailers is unavailable. I have no clue what I am doing wrong. 

 

PMS system with Plexconnect IP Address: 192.168.1.15

Apple TV 3 IP Address: 192.168.1.154

Apple TV 3 DNS: Set manually to 192.168.1.15

you missed...

>> install cert to aTV: https://github.com/i...to-your-appletv

Wow, I feel like a moron. Thank you so much. All I needed to do was to install the cert directly from the ATV. Thank you again. I feel like I can have my weekend now.  

Hi mate,

Could you help me out a little bit. I think I'm experiencing the same issue with you, I did try to use the optional method and ATV3 always stuck at "Trailers is Unavailable".

Another weird thing is, my plexconnect log never specified that it find my PMS as seen in this screenshot:

Can you let me know if your plexconnect return the last two lines when it work and let me know if it wasn't there before. Thanks in advance mate.

Also, did you change anything on your setting.cfg ??

The automatic GDM at startup was removed a long time ago. It will poke for PMS once it is needed.

I'm really not sure what happen here. it seems that I have follow your guide to the dot (exclude the optional profile installation through usb). Here is my log:

00:32:21 PlexConnect: started: 00:32:21
00:32:21 PlexConnect: Version: 0.3.1+
00:32:21 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
00:32:21 PlexConnect: Host OS: win32
00:32:21 Settings: getsetting enable_plexconnect_autodetect=False
00:32:21 Settings: getsetting ip_plexconnect=192.168.1.63
00:32:21 PlexConnect: IP_self (from settings): 192.168.1.63
00:32:21 Settings: getsetting hosttointercept=trailers.apple.com
00:32:21 Settings: getsetting port_webserver=80
00:32:21 Settings: getsetting enable_dnsserver=True
00:32:21 DNSServer: started: 00:32:21
00:32:21 Settings: getsetting port_dnsserver=53
00:32:21 Settings: getsetting ip_dnsmaster=8.8.8.8
00:32:21 Settings: getsetting prevent_atv_update=True
00:32:21 DNSServer: ***
00:32:21 DNSServer: DNSServer: Serving DNS on 192.168.1.63 port 53.
00:32:21 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.63
00:32:21 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
00:32:21 DNSServer: forward other to higher level DNS: 8.8.8.8
00:32:21 DNSServer: ***
00:32:21 WebServer: started: 00:32:21
00:32:21 Settings: getsetting port_webserver=80
00:32:21 WebServer: ***
00:32:21 WebServer: WebServer: Serving HTTP on 192.168.1.63 port 80.
00:32:21 WebServer: ***
00:32:21 ATVSettings: init class CATVSettings
00:32:21 ATVSettings: load settings
00:32:21 Settings: getsetting enable_webserver_ssl=True
00:32:21 WebServer: started: 00:32:21
00:32:21 Settings: getsetting port_ssl=443
00:32:21 Settings: getsetting certfile=./assets/certificates/trailers.pem
00:32:21 Settings: getsetting certfile=./assets/certificates/trailers.pem
00:32:21 WebServer: ***
00:32:21 WebServer: WebServer: Serving HTTPS on 192.168.1.63 port 443.
00:32:21 WebServer: ***
00:32:30 DNSServer: DNS request received!
00:32:30 DNSServer: Source: ('192.168.1.153', 62911)
00:32:30 DNSServer: Domain: trailers.apple.com
00:32:30 DNSServer: ***intercept request
00:32:30 DNSServer: -> DNS response: 192.168.1.63

Here is my setting:

[PlexConnect]
port_pms = 32400
port_webserver = 80
ip_plexconnect = 192.168.1.63
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = High
enable_dnsserver = True
logpath = .
ip_pms = 192.168.178.10
enable_plexgdm = True
hosttointercept = trailers.apple.com
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = False

PMS IP : 192.168.1.63

Plexconnect IP : 192.168.1.63

ATV3 IP : 192.168.1.153

DNS is modified to 192.168.1.63 and profile is added with this URL http://trailers.apple.com/trailers.cer . I also realized that my ATV3 can't connect to Internet using this DNS setup. Is it suppose to happen? Apparently YouTube still working, but if I restart ATV, I can't see all apps unless I revert back the DNS to automatic.

I really hope you could find what idiotic steps that I took that cause this issue.

Thanks in advance

Why did you have to disable plexconnect_autodetect?

To your issue... this was seen a lot on windows. It really looks like you have issues with your cert. Do you run a very recent version of PlexConnect (yeah, I saw it is 0.3.1+)... but there was a change lately.

How about firewalls and stuff? Added Python to allow input/output on UDP?

I download the master from the provided link. For troubleshooting purposes, I tried to turn off firewall, but the issue still persist.


I tried on two machines, one with win 7 and and the other one is win 8. Do u know how to troubleshoot ssl issue? Or do u think, router might be the cause as well? I find it weird, if it is indeed the router because the log said that it receive and intercept the request from Atv.


Regarding the auto check, I tried with both. Disabling it to see if router might re-route the request incorrectly.

Debugging those SSL issues is a pain - there is no good feedback, only YES or NO.

One thing in Win, that earlier seemed to help is to specify the complete ABSOLUTE path to the certs (vs. relative like it is done on default). This issue however should have been solved, like a week or two ago.

I don't think it's the router... does it have another layer of firewall?

The "intercept" you are seeing is the DNS request, i.e. port 53. After that your *should* see a request incoming on port 443 (https, SSL). Depending on the certificate it might or might not show up.

Where are all the Win-pros?

Two things to add:

  • ensure you create an INBOUND rule for BOTH UDP and TCP for Python.exe

  • if you have or intend to reinstall the SSL certs make sure you delete them from your ATV first, it doesn’t like it if you try and overwrite them.

Finally, after checking everything, I managed to resolve the certificate issue by generating a new certificate and re-install it in my ATV3. However, I get a new issue which I'm not sure how to troubleshoot:

Here is the complete logs:

14:40:01 PlexConnect: started: 14:40:01
14:40:01 PlexConnect: Version: 0.3.1+
14:40:01 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
14:40:01 PlexConnect: Host OS: win32
14:40:01 Settings: getsetting enable_plexconnect_autodetect=True
14:40:01 PlexConnect: IP_self: 192.168.1.63
14:40:01 Settings: getsetting hosttointercept=trailers.apple.com
14:40:01 Settings: getsetting port_webserver=80
14:40:01 Settings: getsetting enable_dnsserver=True
14:40:01 DNSServer: started: 14:40:01
14:40:01 Settings: getsetting port_dnsserver=53
14:40:01 Settings: getsetting ip_dnsmaster=8.8.8.8
14:40:01 Settings: getsetting prevent_atv_update=True
14:40:01 DNSServer: ***
14:40:01 DNSServer: DNSServer: Serving DNS on 192.168.1.63 port 53.
14:40:01 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.63
14:40:01 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
14:40:01 DNSServer: forward other to higher level DNS: 8.8.8.8
14:40:01 DNSServer: ***
14:40:02 WebServer: started: 14:40:02
14:40:02 Settings: getsetting port_webserver=80
14:40:02 WebServer: ***
14:40:02 WebServer: WebServer: Serving HTTP on 192.168.1.63 port 80.
14:40:02 WebServer: ***
14:40:02 ATVSettings: init class CATVSettings
14:40:02 ATVSettings: load settings
14:40:02 Settings: getsetting enable_webserver_ssl=True
14:40:02 WebServer: started: 14:40:02
14:40:02 Settings: getsetting port_ssl=443
14:40:02 Settings: getsetting certfile=C:/Program Files (x86)/PlexConnect-master/assets/certificates/trailers.pem
14:40:02 Settings: getsetting certfile=C:/Program Files (x86)/PlexConnect-master/assets/certificates/trailers.pem
14:40:02 WebServer: ***
14:40:02 WebServer: WebServer: Serving HTTPS on 192.168.1.63 port 443.
14:40:02 WebServer: ***
14:40:13 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:40:13 WebServer: http request path:
/&PlexConnectATVLogLevel=1&PlexConnectLog=loadItem%3A%20Channels
14:40:13 Localize: aTVLanguage: en
14:40:13 WebServer: pms address:

14:40:13 WebServer: cleaned path:
/
14:40:13 WebServer: PlexConnect options:
{‘aTVAddress’: ‘192.168.1.153’, ‘aTVScreenResolution’: ‘1080’, ‘PlexConnectATVLogLevel’: ‘1’, ‘PlexConnectLog’: ‘loadItem: Channels’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’}
14:40:13 WebServer: additional arguments:

14:40:13 ATVLogger: loadItem: Channels
14:40:13 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:40:13 WebServer: http request path:
/channels/all
14:40:13 Localize: aTVLanguage: en
14:40:13 WebServer: pms address:

14:40:13 WebServer: cleaned path:
/channels/all
14:40:13 WebServer: PlexConnect options:
{‘aTVScreenResolution’: ‘1080’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’, ‘aTVAddress’: ‘192.168.1.153’}
14:40:13 WebServer: additional arguments:

14:40:13 WebServer: serving .xml: /channels/all
14:40:13 XMLConverter: PlexConnect Cmd:
14:40:13 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:40:13 WebServer: http request path:
/&PlexConnectATVLogLevel=1&PlexConnectLog=loadItem%3A%20Library
14:40:13 Localize: aTVLanguage: en
14:40:13 WebServer: pms address:

14:40:13 WebServer: cleaned path:
/
14:40:13 WebServer: PlexConnect options:
{‘aTVAddress’: ‘192.168.1.153’, ‘aTVScreenResolution’: ‘1080’, ‘PlexConnectATVLogLevel’: ‘1’, ‘PlexConnectLog’: ‘loadItem: Library’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’}
14:40:13 WebServer: additional arguments:

14:40:13 ATVLogger: loadItem: Library
14:40:13 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:40:13 WebServer: http request path:
/PMS(%2F%2Flocal)/library/sections
14:40:13 Localize: aTVLanguage: en
14:40:13 WebServer: pms address:
//local
14:40:13 WebServer: cleaned path:
/library/sections
14:40:13 WebServer: PlexConnect options:
{‘aTVScreenResolution’: ‘1080’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’, ‘aTVAddress’: ‘192.168.1.153’}
14:40:13 WebServer: additional arguments:

14:40:13 WebServer: serving .xml: /library/sections
14:40:13 XMLConverter: PlexConnect Cmd:
14:41:25 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:41:25 WebServer: http request path:
/channels/all
14:41:25 Localize: aTVLanguage: en
14:41:25 WebServer: pms address:

14:41:25 WebServer: cleaned path:
/channels/all
14:41:25 WebServer: PlexConnect options:
{‘aTVScreenResolution’: ‘1080’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’, ‘aTVAddress’: ‘192.168.1.153’}
14:41:25 WebServer: additional arguments:

14:41:25 WebServer: serving .xml: /channels/all
14:41:25 XMLConverter: PlexConnect Cmd:
14:41:26 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:41:26 WebServer: http request path:
/&PlexConnectATVLogLevel=1&PlexConnectLog=loadItem%3A%20Channels
14:41:26 Localize: aTVLanguage: en
14:41:26 WebServer: pms address:

14:41:26 WebServer: cleaned path:
/
14:41:26 WebServer: PlexConnect options:
{‘aTVAddress’: ‘192.168.1.153’, ‘aTVScreenResolution’: ‘1080’, ‘PlexConnectATVLogLevel’: ‘1’, ‘PlexConnectLog’: ‘loadItem: Channels’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’}
14:41:26 WebServer: additional arguments:

14:41:26 ATVLogger: loadItem: Channels
14:41:30 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:41:30 WebServer: http request path:
/&PlexConnectATVLogLevel=1&PlexConnectLog=loadItem%3A%20Library
14:41:30 Localize: aTVLanguage: en
14:41:30 WebServer: pms address:

14:41:30 WebServer: cleaned path:
/
14:41:30 WebServer: PlexConnect options:
{‘aTVAddress’: ‘192.168.1.153’, ‘aTVScreenResolution’: ‘1080’, ‘PlexConnectATVLogLevel’: ‘1’, ‘PlexConnectLog’: ‘loadItem: Library’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’}
14:41:30 WebServer: additional arguments:

14:41:30 ATVLogger: loadItem: Library
14:41:30 WebServer: http request header:
Host: 192.168.1.63:80

X-Apple-Store-Front: 143473-2,19

Accept: /

Accept-Encoding: gzip, deflate

Accept-Language: en;q=0.9

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 6.0.2

User-Agent: iTunes-AppleTV/6.0.2 (3; 8GB; dt:12)

14:41:30 WebServer: http request path:
/PMS(%2F%2Flocal)/library/sections
14:41:30 Localize: aTVLanguage: en
14:41:30 WebServer: pms address:
//local
14:41:30 WebServer: cleaned path:
/library/sections
14:41:30 WebServer: PlexConnect options:
{‘aTVScreenResolution’: ‘1080’, ‘aTVFirmwareVersion’: ‘6.0.2’, ‘aTVLanguage’: ‘en’, ‘aTVAddress’: ‘192.168.1.153’}
14:41:30 WebServer: additional arguments:

14:41:30 WebServer: serving .xml: /library/sections
14:41:30 XMLConverter: PlexConnect Cmd:

After a while, Plexconnect report that there are no library to view. Damn, I'm so close.....!!!!!!!!

Really appreciate if you could help me again.

a - what state was aTV in when you started PlexConnect? I am missing the "discovery" part...

b - don't copy that stuff in the email... please attach those logs.

Do you have any content added to your pms to populate the library tab in plexconnect on the aTV?

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