So close ... another Trailers is unavailable ....

I have a plex media server installed on a linux box that works to lots of clients. I have an ATV 3 the seems to be good, and a Windows 7 client running plexconnect. I thought I followed all the install guides properly and it does pass through DNS requests when doing various activities now on my ATV. However, when I try to hit Trailers I get the dreaded "Trailers is unavailable. Try again Later". On the console it just says "intercept request" and goes nowhere. Here is all the detail, I hope someone can help. Thanks.

 

ATV model and firmware version: ATV3 and 6.0.2 (6646.81.1) 
The DNS server set on the ATV : 192.168.28.31
The local IP of PlexConnect is installed on: 192.168.28.31
The device and OS PlexConnect is installed on: Computer running Windows 7 x64 Pro
The device and OS Plex media server is installed on: Computer running Fedora 19
The Plex media server version: 0.9.8.14
The local IP of Plex media server is installed on: 192.168.28.10
The PlexConnect version number: 0.3.1+
The contents of your 'Settings.cfg' file: 
 
[PlexConnect]
port_pms = 32400
port_webserver = 80
ip_plexconnect = 192.168.28.31
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = High
enable_dnsserver = True
logpath = .
ip_pms = 192.168.28.10
enable_plexgdm = False
hosttointercept = trailers.apple.com
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = False
 
I have attached my log file. Any tips? Thanks.

Is that log node you restarted plex connect with log level = High?


Given the rest of plexconnect is working it sounds like it might be an issue with the certificate on the ATV.


Did you download the right version if OpenSSL for your windows machine?


Did the profile save correctly onto the ATV?

That could be it. I installed this Win32 OpenSSL v1.0.1f Light and now I see that the site offers Win64 OpenSSL v1.0.1f Light My windows client running plexconnect is a Windows 7 x64 Pro client so perhaps it needs the Win64 software. I will uninstall and try again. The directions I was following the profile install can be found here:

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

I did exactly what was asked and I thought it worked. I will report back if anything changes when I try the Win64 OpenSSL software.

So that did not help. I installed the Win64 version then ran these codes to create the certificates:

Create a Certificate

C:\OpenSSL-Win64\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-Win64\bin\openssl.cfg

Next I ran this

C:\OpenSSL-Win64\bin\openssl.exe x509 -in C: railers.pem -outform der -out C: railers.cer

Finally I ran this

type C: railers.key >> C: railers.pem

You can see I simply edited to reflect the Win64 version. All codes ran fine and created the necessary files. I copied them and placed them in the correct directories. I then ran Plexconnect.py again and installed the certificate using the "Ethernet" method and profile creation specified here https://github.com/iBaa/PlexConnect/wiki/Install-Guide-AppleTV-Ethernet. I still have the same problem. I have included the log again. This one seems to have a little more detail. Odd since I specified loglevel = High for a while.

Any other thoughts?

Dont see the updated log.

Sorry. I just edited and attached. I thought I had added it.

Noithign specific is jumping out at me, so I wonder if the Profile has not added successfully?

If you go into the Add Profile section on the ATV do you see the profile? (I added mine using the old USB method so not sure if it shows details of not for the Network version).

when adding it via the network way you are tying "http://IP_Address/trailers.cer" (without the quotes)?

I am leaning towards a certificate issue because there is nothing in the log trying to actually connect to Plex as of yet.

Did you delete the old cert profile from the ATV before loading the new one, if you did not it will likely not work.

...there seems to be an issue with *some* instances of Python on Windows, where the concatenated certfile path doesn't fully work out. Strange thing is, it works fine for the python based testing algorithm, as well as for serving the file to aTV.
But somehow it seems to fail with the actual configuration in the Socket server... maybe, because it is calling C background functions?

I implemented some quick cleaning of the path string... if described was your issue, the latest changes might help. Grab the latest from github and give it a try!

I will try the latest from github. Drewbie I was not trying "http://IP_Address/trailers.cer". Rather I was putting in "http://trailers.apple.com/trailers.cer" as instructed in the ApplyTV Ethernet guide. In the Profile area of my ATV it says.

Status: trailers.apple.com

received: 01/10/14

payload: certificate

It seems like it loaded properly.

f00b4r, I did delete the old profile before loading in the new profile. Likewise, I deleted all traces of the old certificate and Win32_OpenSSL before installing Win64_OpenSSL and generating a new certificate. 

Unfortunately Baa, that did not seem to do anything. I feel like I'm so close. Clearly my ATV is using the Plexconnect machine for DNS. It is successful in reaching it, and it responds for all requests. Then, when the Plexconnect machine receives the call for trailers.apple.com it knows to intercept and I imagine redirect to my Plex box with the cert that says "I'm trailers.apple.com", but it just appears to stop. Any other ideas to try?

I have included my log again from this morning's try.

...just because I have seen issues with it in the past:

- What's the path/directory you have PlexConnect living in?

- Edit Settings.cfg and modify the "certfile =" to the absolute path, in Win style - "like C:\Programs\...\PlexConnect\assets\..."

I have PlexConnect living at the root of my C: drive. So I edited the Settings.cfg file to read an absolute path. I then removed the profile from the ATV. I added a profile, this time using http://192.168.28.31/trailers.cer time is the local IP of the computer running PlexConnect. Apple ATV accepted this, but automatically renamed the profile "trailers.apple.com". I see that as a positive thing. It also clearly shows the received day as today so again, it looks like it is receiving a certificate properly.

I then ran PlexConnect and tested various apps on the ATV, like Netflix. All good and the DNS requests show up in the CMD window on the machine running PlexConnect. Then tried Trailers and same response. Nothing.

This is how I specified the absolute path in Settings.cfg:

certfile = C:\PlexConnect-master\assets\certificates railers.pem

Do you have another computer in the LAN?

What do you get when browsing to 192.168.28.31:80 and 192.168.28.31:443?

I don't know what it is with that Microsoft stuff...

Oh. This is stupid. The changes to solve your issue were not yet synced to github.

I will push it now... any chance for another try (with fresh data from github)?

Yes! Yes! That worked. The change you made worked for me. So to recap, I have a Linux (Fedora 19) box running Plex (0.9.8.14). I also have a Windows 7 x 64 machine running PlexConnect (0.3.1) and I can stream media wonderfully to my ATV3 (iOS 6.0.2 (6646.81.1)).
 
I only watched 5 minutes, but the show looked clear and smooth on my TV. Thanks so much, this is amazing!

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