"Trailers Unavailable" but app is connecting to PlexConnect (SSL issue?)

OK, so I'm trying to get this set up on my OpenWRT router.  Everything APPEARS to be working correctly.  I can even see that the ATV is connecting to the PlexConnect software.  The problem is that I'm still getting the "Trailers Unavailable" message. 

 

I've tried increasing my log level but it hasn't given me any additional information.

 

Here's what I see:

 

root@DRADIS:~/PlexConnect-master# ./PlexConnect.py
18:46:55 PlexConnect: ***
18:46:55 PlexConnect: PlexConnect
18:46:55 PlexConnect: Press CTRL-C to shut down.
18:46:55 PlexConnect: ***
18:46:55 PlexConnect: started: 18:46:55
18:46:55 PlexConnect: IP_self (from settings): 192.168.1.1
18:46:55 WebServer: started: 18:46:55
18:46:55 WebServer: ***
18:46:55 WebServer: WebServer: Serving HTTP on 192.168.1.1 port 80.
18:46:55 WebServer: ***
18:46:55 XMLConverter: PlexGDM off - PMS from settings: 192.168.1.10:32400
18:46:55 WebServer: started: 18:46:55
18:46:55 WebServer: ***
18:46:55 WebServer: WebServer: Serving HTTPS on 192.168.1.1 port 443.
18:46:55 WebServer: ***
18:47:02 Localize: aTVLanguage: en
18:47:02 WebServer: serving application.js
18:48:27 Localize: aTVLanguage: en
18:48:27 WebServer: serving application.js

Again, everything is connecting, just not moving forward.  I JUST downloaded the PlexConnect code so I don't think that's the problem.  I can also see that the certificate is installed on the ATV.

 

I read a small post where someone mentioned that the SSL certs need to be cut on the machine that will be using them.  Is this true?  If so, it could be my problem as I cut the certs on my Mac and then uploaded them to the router.

 

 

OK, I realized that the additional info winds up in the logs and not in the console.  Here's what I have:

19:56:09 ATVSettings: init class CATVSettings                                   
19:56:09 ATVSettings: load settings                                             
19:56:09 Settings: getsetting enable_plexgdm=False                              
19:56:09 Settings: getsetting ip_pms=192.168.1.10                               
19:56:09 Settings: getsetting port_pms=32400                                    
19:56:09 XMLConverter: PlexGDM off - PMS from settings: 192.168.1.10:32400      
19:56:09 ATVSettings: setOption: update pms_uuid to ('PMS_from_Settings',)      
19:56:09 WebServer: started: 19:56:09                                           
19:56:09 Settings: getsetting ip_webserver=192.168.1.1                          
19:56:09 Settings: getsetting port_webserver=80                                 
19:56:09 Settings: getsetting port_ssl=443                                      
19:56:09 Settings: getsetting certfile=./assets/certificates/trailers.pem       
19:56:09 Settings: getsetting certfile=./assets/certificates/trailers.pem       
19:56:09 WebServer: ***                                                         
19:56:09 WebServer: WebServer: Serving HTTPS on 192.168.1.1 port 443.           
19:56:09 WebServer: ***                                                         
19:56:13 WebServer: http request header:                                        
Host: trailers.apple.com^M                                                      
Accept-Encoding: gzip, deflate^M                                                
Accept: */*^M                                                                   
Accept-Language: en;q=0.9^M                                                     
Cookie: itspod=37; ns-mzf-inst=39-121-80-144-107-8041-370345-37-nk11; Pod=37; mz
Connection: keep-alive^M                                                        
X-Apple-TV-Resolution: 1080^M                                                   
X-Apple-TV-Version: 5.3^M                                                       
User-Agent: iTunes-AppleTV/5.3 (3; 8GB; dt:12)^M                                
                                                                                
19:56:13 WebServer: http request path:                                          
/appletv/us/js/application.js                                                   
19:56:13 Localize: aTVLanguage: en                                              
19:56:13 WebServer: cleaned path:                                               
/appletv/us/js/application.js                                                   
19:56:13 WebServer: PlexConnect options:                                        
{'aTVLanguage': 'en'}                                                           
19:56:13 WebServer: additional arguments:                                       
                                                                                
19:56:13 WebServer: serving application.js                                      
19:56:17 PlexConnect: Shutting down.                                            
19:56:17 WebServer: Shutting down.                                              
19:56:17 ATVSettings: save settings                                             
19:56:17 WebServer: Shutting down.                                              
19:56:17 PlexConnect: shutdown                                                  

Alright, I also cut the key directly on the server using openssl and the instructions from here:

http://langui.sh/2013/08/27/appletv-ssl-plexconnect/

But that didn't help, I'm getting the exact same problem. 

>> I can also see that the certificate is installed on the ATV.

In the attached log? I can't...

I can't see any message of/for the DNSServer. Did you set up your own? Did you install "trailers.apple.com" as well as "aTV.PlexConnect" as hosts to reroute?

>> I can also see that the certificate is installed on the ATV.
In the attached log? I can't...
 
I can't see any message of/for the DNSServer. Did you set up your own? Did you install "trailers.apple.com" as well as "aTV.PlexConnect" as hosts to reroute?


Thanks for the response. I used the DNS server on the router. I set up trailers.apple.com (which is how it's finding the Connect instance in the first place) but I didn't do aTV.PlexConnect. Can you be more specific?

No... :-)

In the attempt to reduce the use of "trailer" throughout PlexConnect, we implemented a new virtual host: atv.plexconnect.

trailers is now ONLY used for accessing application.js, everything else is living in atv.plexconnect. You have to add a that new host along with trailers, pointing to the same machine.

No... :-)

In the attempt to reduce the use of "trailer" throughout PlexConnect, we implemented a new virtual host: atv.plexconnect.

trailers is now ONLY used for accessing application.js, everything else is living in atv.plexconnect. You have to add a that new host along with trailers, pointing to the same machine.

Ah, a second host!  Ok, I'll try that when I get home. 

Did I miss that in the wiki?  I really tried to solve this on my own.

Hm. WIKI doesn't really talk about disabling the built-in DNS server, I think.

OK, so I added the new DNS entry:

root@DRADIS:~/PlexConnect-master# nslookup atv.plexconnect
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

Name:      atv.plexconnect
Address 1: 192.168.1.1 trailers.apple.com
 

So that all seems to work. 

But I'm still getting the same error.  Here's the full log:

22:27:29 PlexConnect: started: 22:27:29
22:27:29 Settings: getsetting enable_plexconnect_autodetect=False
22:27:29 Settings: getsetting ip_plexconnect=192.168.1.1
22:27:29 PlexConnect: IP_self (from settings): 192.168.1.1
22:27:29 Settings: getsetting enable_dnsserver=False
22:27:29 WebServer: started: 22:27:29
22:27:29 Settings: getsetting ip_webserver=192.168.1.1
22:27:29 Settings: getsetting port_webserver=80
22:27:29 WebServer: ***
22:27:29 WebServer: WebServer: Serving HTTP on 192.168.1.1 port 80.
22:27:29 WebServer: ***
22:27:29 ATVSettings: init class CATVSettings
22:27:29 ATVSettings: load settings
22:27:29 Settings: getsetting enable_plexgdm=False
22:27:29 Settings: getsetting ip_pms=192.168.1.10
22:27:29 Settings: getsetting port_pms=32400
22:27:29 XMLConverter: PlexGDM off - PMS from settings: 192.168.1.10:32400
22:27:29 ATVSettings: setOption: update pms_uuid to ('PMS_from_Settings',)
22:27:29 WebServer: started: 22:27:29
22:27:29 Settings: getsetting ip_webserver=192.168.1.1
22:27:29 Settings: getsetting port_webserver=80
22:27:29 Settings: getsetting port_ssl=443
22:27:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
22:27:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
22:27:29 WebServer: ***
22:27:29 WebServer: WebServer: Serving HTTPS on 192.168.1.1 port 443.
22:27:29 WebServer: ***
22:27:33 WebServer: http request header:
Host: trailers.apple.comM
Accept-Encoding: gzip, deflateM
Accept: */*M
Accept-Language: en;q=0.9M
Cookie: itspod=37; ns-mzf-inst=39-121-80-144-103-8052-370270-37-nk11; Pod=37; m
z_at0-90801676=AwQAAAEMAADEfAAAAABSM+WFBTH28RMlVr/PUFdBIf8nExRQX/Q=; mz_at_ssl-
90801676=AwUAAAEMAADEfAAAAABSM+WFGIUzQr9f+P0NoGtbVdqgntJMAUY=; X-Dsid=90801676;
 s_vi=[CS]v1|27B280F505011DA8-4000010BA006CE44[CE]M
Connection: keep-aliveM
X-Apple-TV-Resolution: 1080M
X-Apple-TV-Version: 5.3M
User-Agent: iTunes-AppleTV/5.3 (3; 8GB; dt:12)M

22:27:33 WebServer: http request path:
/appletv/us/js/application.js
22:27:33 Localize: aTVLanguage: en
22:27:33 WebServer: cleaned path:
/appletv/us/js/application.js
22:27:33 WebServer: PlexConnect options:
{'aTVLanguage': 'en'}
22:27:33 WebServer: additional arguments:

22:27:33 WebServer: serving application.js
22:27:37 WebServer: http request header:
Host: trailers.apple.comM
Accept-Encoding: gzip, deflateM
Accept: */*M
Accept-Language: en;q=0.9M
Cookie: itspod=37; ns-mzf-inst=39-121-80-144-103-8052-370270-37-nk11; Pod=37; m
z_at0-90801676=AwQAAAEMAADEfAAAAABSM+WFBTH28RMlVr/PUFdBIf8nExRQX/Q=; mz_at_ssl-
90801676=AwUAAAEMAADEfAAAAABSM+WFGIUzQr9f+P0NoGtbVdqgntJMAUY=; X-Dsid=90801676;
 s_vi=[CS]v1|27B280F505011DA8-4000010BA006CE44[CE]M
Connection: keep-aliveM
X-Apple-TV-Resolution: 1080M
X-Apple-TV-Version: 5.3M
User-Agent: iTunes-AppleTV/5.3 (3; 8GB; dt:12)M

22:27:37 WebServer: http request path:
/appletv/us/js/application.js
22:27:37 Localize: aTVLanguage: en
22:27:37 WebServer: cleaned path:
/appletv/us/js/application.js
22:27:37 WebServer: PlexConnect options:
{'aTVLanguage': 'en'}
22:27:37 WebServer: additional arguments:

22:27:37 WebServer: serving application.js
22:28:01 PlexConnect: Shutting down.
22:28:01 WebServer: Shutting down.
22:28:01 ATVSettings: save settings
22:28:02 WebServer: Shutting down.
22:28:02 PlexConnect: shutdown


So, there's still a problem and I have no idea what it could be.  Is there a way to try to narrow it down?  Pieces I can remove to see what's working and what's not?

Is there a way to confirm that the machine (router) can access the Plex Server?  Perhaps Plex is blocking it?

It is either an issue with your DNS or the certificate.

For testing... Use the PlexConnect DNS, point aTV DNS to it, and go from there (once you have it running, you can always cut corners and use your own DNS). If this fails the same way, redo your certificate stuff. 

Does the cert have to be cut on the same machine that I'm going to use it on?  Or can I cut it on my Mac and then transfer it to the router?

You can transfer it. As long as the trailers.pem, key, and certificate were made at the same time.

Alright, that's what I thought.  Thanks.  I'll test and see what I can find.

Hi!

Im new at this place :)

I have the same problem, and I dont know anything about this..

The install seems to work, but when I look in the "Trailer App" , I can see the PMS files.

But when I try to play "Trailers is not avaliable, try later".

Pls help :(

->      READ BEFORE POSTING    

"How to report an issue"...

No... :-)

In the attempt to reduce the use of "trailer" throughout PlexConnect, we implemented a new virtual host: atv.plexconnect.

trailers is now ONLY used for accessing application.js, everything else is living in atv.plexconnect. You have to add a that new host along with trailers, pointing to the same machine.

* beats head on desk *

When did you guys introduce that? Hopefully it explains why recently I get as far as "serving application.js" but the ATV2 says "trailers unavailable". I'm using dnsmasq on OpenWRT to handle my own DNS rewriting as I wanted to limit the re-write to just my ATV2 (although I may never have got that part working...)

Fingers crossed...

A lot of people are generating bad certs. The site was updated today. Try to delete your old certs and install your new certs. Plexconnect should not shutdown, obviously.

https://langui.sh/2013/08/27/appletv-ssl-plexconnect/

MOVED TO NEW THREAD:

http://forums.plexapp.com/index.php/topic/82576-plexconnect-trailers-unavailable-when-running-from-macbook/

Bgnicht,


Rather than hijacking a thread how about starting your own with all the information as specified in the pinned read before posting thread and associated wiki page on how to report an issue.


This information is what helps the community and developers to help you

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