Another (windows64) "Trailers Unavailable" :-(

I am at my wits end. I ahve tried to install PLexconnect on ATV2 and ATV3 at home, and everything I do results in ‘Trailers unavailable’. I have Windows 7 64bit machine, and have tried jsut 100s of combinations of certificate paths, certificate installs (including in the 'trusted root)… everything. Yet I cannot get it to work. It seems so many have got it to work, I am hopeful that someone may be able to see where I ahve gone wrong. Thank you in advance for any generous help.


Settings :

[PlexConnect]

logpath = .

enable_dnsserver = True

ip_webserver = 0.0.0.0

prevent_atv_update = True

port_dnsserver = 53

enable_plexconnect_autodetect = True

port_pms = 32400

port_webserver = 80

ip_plexconnect = 0.0.0.0

certfile = D:/My Documents/Plex stuff/PlexConnect-XML_templates/assets/Certificates/trailers.pem

ip_dnsmaster = 8.8.8.8

loglevel = Normal

ip_pms = 192.168.0.11

enable_plexgdm = False

port_ssl = 443


Plex Log20:11:59 PlexConnect: started: 20:11:59

20:11:59 PlexConnect: IP_self: 192.168.0.11

20:11:59 DNSServer: started: 20:11:59

20:11:59 DNSServer: ***

20:11:59 DNSServer: DNSServer: Serving DNS on port 53.

20:11:59 DNSServer: intercept: [‘trailers.apple.com’, ‘atv.plexconnect’] => 192.168.0.11

20:11:59 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld.apple.com.edgesuite.net’] => 127.0.0.1

20:11:59 DNSServer: forward other to higher level DNS: 8.8.8.8

20:11:59 DNSServer: ***

20:11:59 WebServer: started: 20:11:59

20:11:59 WebServer: ***

20:11:59 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.

20:11:59 WebServer: ***

20:11:59 XMLConverter: PlexGDM off - PMS from settings: 192.168.0.11:32400

20:12:00 WebServer: started: 20:12:00

20:12:00 WebServer: ***

20:12:00 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.

20:12:00 WebServer: ***

20:12:04 DNSServer: DNS request received!

20:12:04 DNSServer: Source: (‘192.168.0.63’, 61850)

20:12:04 DNSServer: Domain: trailers.apple.com

20:12:04 DNSServer: ***intercept request

20:12:04 DNSServer: → DNS response: 192.168.0.11

20:12:04 Localize: aTVLanguage: en

20:12:04 WebServer: serving application.js

20:12:04 DNSServer: DNS request received!

20:12:04 DNSServer: Source: (‘192.168.0.63’, 51257)

20:12:04 DNSServer: Domain: atv.plexconnect

20:12:04 DNSServer: ***intercept request

20:12:04 DNSServer: → DNS response: 192.168.0.11

20:12:04 Localize: aTVLanguage: en

20:12:04 WebServer: serving .xml: /PlexConnect.xml

20:12:04 ATVSettings: add section 007



Is this last two lines ok in the log ?? Serving .xml /PlexConnect.xml ? I am such a noob, but I absolutely love PLex (have bought it for Ipad, and Android), but I am desperate to get it back onto ATV.

:frowning:

you got your slashes wrong

D:/My Documents/Plex stuff/PlexConnect-XML_templates/assets/Certificates/trailers.pem

should be

D:\My Documents\Plex stuff\PlexConnect-XML_templates\assets\Certificates railers.pem

also not sure python likes spaces my suggestion is this make a folder on your C:\Certificates and put the trailers.pem in there so path would be c:\certificates railers.pem

change settings and restart plex connect.  Also make sure you are running at least 2.7 of python not 2.6

Thanks so much for the reply Monsieur Latte.

I have made the changes suggested, and even recreated the certificates from the very start.  I also have Python 2.7.

Still getting "Trailers Unavailable" :-(

Here is the updated Settings and Log

Settings :

[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = C:\Certificates railers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.0.11
enable_plexgdm = False
port_ssl = 443
 

Log :

10:02:35 PlexConnect: started: 10:02:35
10:02:35 PlexConnect: IP_self: 192.168.0.11
10:02:35 DNSServer: started: 10:02:35
10:02:35 DNSServer: ***
10:02:35 DNSServer: DNSServer: Serving DNS on port 53.
10:02:35 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.0.11
10:02:35 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
10:02:35 DNSServer: forward other to higher level DNS: 8.8.8.8
10:02:35 DNSServer: ***
10:02:35 WebServer: started: 10:02:35
10:02:35 WebServer: ***
10:02:35 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
10:02:35 WebServer: ***
10:02:35 XMLConverter: PlexGDM off - PMS from settings: 192.168.0.11:32400
10:02:35 WebServer: started: 10:02:35
10:02:35 WebServer: ***
10:02:35 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
10:02:35 WebServer: ***
10:02:39 DNSServer: DNS request received!
10:02:39 DNSServer: Source: ('192.168.0.102', 63021)
10:02:39 DNSServer: Domain: trailers.apple.com
10:02:39 DNSServer: ***intercept request
10:02:39 DNSServer: -> DNS response: 192.168.0.11
10:02:40 Localize: aTVLanguage: en
10:02:40 WebServer: serving application.js
10:02:40 DNSServer: DNS request received!
10:02:40 DNSServer: Source: ('192.168.0.102', 61604)
10:02:40 DNSServer: Domain: atv.plexconnect
10:02:40 DNSServer: ***intercept request
10:02:40 DNSServer: -> DNS response: 192.168.0.11
10:02:40 Localize: aTVLanguage: en
10:02:40 WebServer: serving .xml: /PlexConnect.xml
10:02:40 ATVSettings: add section 007

Is there anything else that looks wrong please ?  Thanks so much for trying to help.

Just another piece of the puzzle, when I put into Internet Explorer this :    https://192.168.0.11:32400  

I get 'This page can't be displayed'

Does this mean that the certificate is not installed properly ?  I double clicked trailers.der  and installed the certificate in my personal folder, and then it appear in the 'Iphone Configuration' so that I could install it on the aTV.

Thanks again

For python the type of slashes in a file path is non-important... python just translates it to the OS as needed: "/" in a Win system is absolutely ok.

PlexConnect already serves "application.js" as well as "PlexConnect.xml". From this, certificates are already validated. With certificate issues, aTV wouldn't trust the .js, won't run it and therefore not request the .xml.

Not sure why you try to request https://192.168.0.11:32400. Port 32400 is the main PMS port, and PMS doesn't talk on https, does it? Either go to http://192.168.0.11:32400 to see your PMS's main xml or go to https://192.168.0.11:443 to check PlexConnect's SSL server... either way you wouldn't gain anything, as - according to the logs - it runs pretty well.

Question is... why do the logs stop with line "10:02:40 ATVSettings: add section 007". Does PlexConnect have enough rights to store Settings.cfg, ATVSettings.cfg and PlexConnect.log into its working directory?

Hi Baa - thanks very much for the reply and comments.

My error on the address ; as you point out it should have been http://192.168.0.1:32400.   If I go to this address, I get the PLex main xml, which details the follwing plus some directory stuff :

However I cannot open up pages https://192.168.0.11:443 properly.  If I try to open up that address on internet explorer, I firstly get an error "There is a problem with this websites security certificate".  If I click "Continue to this website", I get the error "The website devlined to show this webpage".

If I try to open up the address https://192.168.0.11:443 on Firefox, I immediately get the error :

Error code 403.

Message: Not Serving Client 192.168.0.11.

Error code explanation: 403 = Request forbidden -- authorization will not help.

Do these errors indicate something is wrong with the Plexconnecte SSL server ?

I do not know why the Plex log stops at that line : "11:24:19 ATVSettings: add section 007".  That is simply all that occurs, until another request comes in.   IS this a clue somehow as to where it is falling down ?  PMS is working fine for the Samsung TV and Apple iPad.

I am not sure what you mean by "Does PlexConnect have enough rights to store Settings.cfg, ATVSettings.cfg and PlexConnect.log into its working directory?"   I have tried running python with administrator privileges, but that didnt seem to make any difference at all.  DO I nee dto do anything else to give Plexconnect more 'rights' ?

Thanks again for trying to help.

However I cannot open up pages https://192.168.0.11:443 properly.  If I try to open up that address on internet explorer, I firstly get an error "There is a problem with this websites security certificate".  If I click "Continue to this website", I get the error "The website devlined to show this webpage".


This is actually a good thing. It means plex connect it locating your trailers.pem and presenting it.

Therefore it sounds more like an issue with the trailers.cer/profile on the ATV.

Have you loaded it multiple times?
Did you get any errors when you loaded it?
Did you use the cer and pem that were generated at the same time? (this is mandatory)
Can you remove the profile on the ATV and try again?

Note the windows specific instructions generates a der file not cer file due to typo by the person who posted the instructions, make sure you rename it to .cer if you followed those instructions.

1) certificate is fine  - otherwise it would get stuck at "serving application.js". Log shows the next step as well "serving PlexConnect.xml".

2) "11:24:19 ATVSettings: add section 007".

This happens, when PlexConnect gets a request without a valid aTV UDID. I actually thought, we fix that... on the other hand it doesn't really matter for PlexConnect.xml, as it does not depend on aTV specific settings.

Anyways, whenever this comes up (or any other "add section"...) it actually adds some settings to its ATVSettings.cfg cache. I am not sure if it now crashes right in that step or just shortly after...

Please set "loglevel=High" in settings.cfg, redo your startup and attach the generated PlexConnect.log. I hope to be able to find more evidence there...

Thanks drewbie and Baa so much for trying to help.

Have renamed the der file to cer, and reinstalled the certificate.  But still no luck.

Here is the log, with the log setting to High :

16:58:36 PlexConnect: started: 16:58:36
16:58:36 Settings: getsetting enable_plexconnect_autodetect=True
16:58:36 PlexConnect: IP_self: 192.168.0.11
16:58:36 Settings: getsetting enable_dnsserver=True
16:58:36 DNSServer: started: 16:58:36
16:58:36 Settings: getsetting port_dnsserver=53
16:58:36 Settings: getsetting ip_dnsmaster=8.8.8.8
16:58:36 Settings: getsetting prevent_atv_update=True
16:58:36 DNSServer: ***
16:58:36 DNSServer: DNSServer: Serving DNS on port 53.
16:58:36 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.0.11
16:58:36 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
16:58:36 DNSServer: forward other to higher level DNS: 8.8.8.8
16:58:36 DNSServer: ***
16:58:37 WebServer: started: 16:58:37
16:58:37 Settings: getsetting ip_webserver=0.0.0.0
16:58:37 Settings: getsetting port_webserver=80
16:58:37 WebServer: ***
16:58:37 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
16:58:37 WebServer: ***
16:58:37 ATVSettings: init class CATVSettings
16:58:37 ATVSettings: load settings
16:58:37 Settings: getsetting enable_plexgdm=False
16:58:37 Settings: getsetting ip_pms=192.168.0.11
16:58:37 Settings: getsetting port_pms=32400
16:58:37 XMLConverter: PlexGDM off - PMS from settings: 192.168.0.11:32400
16:58:37 ATVSettings: setOption: update pms_uuid to ('PMS_from_Settings',)
16:58:37 WebServer: started: 16:58:37
16:58:37 Settings: getsetting ip_webserver=0.0.0.0
16:58:37 Settings: getsetting port_webserver=80
16:58:37 Settings: getsetting port_ssl=443
16:58:37 Settings: getsetting certfile=C:\Certificates railers.pem
16:58:37 Settings: getsetting certfile=C:\Certificates railers.pem
16:58:37 WebServer: ***
16:58:37 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
16:58:37 WebServer: ***
16:58:46 DNSServer: DNS request received!
16:58:46 DNSServer: Source: ('192.168.0.116', 51995)
16:58:46 DNSServer: Domain: trailers.apple.com
16:58:46 DNSServer: ***intercept request
16:58:46 DNSServer: -> DNS response: 192.168.0.11
16:58:47 WebServer: http request header:
Host: trailers.apple.com

Accept-Encoding: gzip, deflate

Accept: */*

Accept-Language: en;q=0.9

Cookie: itspod=42; ns-mzf-inst=179-4-80-151-104-8123-422083-42-st13; Pod=42; mz_at0-553856843=AwQAAAEMAADEfAAAAABSNVNV+S0R+megj296+9K4y1IWKjk3SCg=; mz_at_ssl-553856843=AwUAAAEMAADEfAAAAABSNVNVB/kPvXdk18u1mFJFnoz51F4N1ro=; X-Dsid=553856843; s_vi=[CS]v1|28DD7AF385012A56-40000136600DCF0A[CE]

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 5.3

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


16:58:47 WebServer: http request path:
/appletv/us/js/application.js
16:58:47 Localize: aTVLanguage: en
16:58:47 WebServer: cleaned path:
/appletv/us/js/application.js
16:58:47 WebServer: PlexConnect options:
{'aTVLanguage': 'en'}
16:58:47 WebServer: additional arguments:

16:58:47 WebServer: serving application.js
16:58:47 DNSServer: DNS request received!
16:58:47 DNSServer: Source: ('192.168.0.116', 57743)
16:58:47 DNSServer: Domain: atv.plexconnect
16:58:47 DNSServer: ***intercept request
16:58:47 DNSServer: -> DNS response: 192.168.0.11
16:58:47 WebServer: http request header:
Host: atv.plexconnect

Accept-Encoding: gzip, deflate

Accept: */*

Accept-Language: en

Connection: keep-alive

X-Apple-TV-Resolution: 1080

X-Apple-TV-Version: 5.3

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


16:58:47 WebServer: http request path:
/PlexConnect.xml
16:58:47 Localize: aTVLanguage: en
16:58:47 WebServer: cleaned path:
/PlexConnect.xml
16:58:47 WebServer: PlexConnect options:
{'aTVLanguage': 'en'}
16:58:47 WebServer: additional arguments:

16:58:47 WebServer: serving .xml: /PlexConnect.xml
16:58:47 XMLConverter: PlexConnect Cmd:
16:58:47 XMLConverter: no PlexConnectUDID - pick 007
16:58:47 ATVSettings: add section 007
16:58:47 ATVSettings: getsetting *
16:58:47 ATVSettings: checksetting: default pms_uuid to PMS_from_Settings
16:58:47 ATVSettings: getsetting PMS_from_Settings
16:58:47 XMLConverter: XMLTemplate: PlexConnect.xml
 

1) certificate is fine  - otherwise it would get stuck at "serving application.js". Log shows the next step as well "serving PlexConnect.xml".

2) "11:24:19 ATVSettings: add section 007".

This happens, when PlexConnect gets a request without a valid aTV UDID. I actually thought, we fix that... on the other hand it doesn't really matter for PlexConnect.xml, as it does not depend on aTV specific settings.

Anyways, whenever this comes up (or any other "add section"...) it actually adds some settings to its ATVSettings.cfg cache. I am not sure if it now crashes right in that step or just shortly after...

Please set "loglevel=High" in settings.cfg, redo your startup and attach the generated PlexConnect.log. I hope to be able to find more evidence there...

 Hi again Baa..  Not sure if this is relevant, but my ATVSettings.cfg file never changes. Its still dated the date I installed it.   THe only file that changes is the PlexConnect.log, and whenever I update Settings.cfg

ATVSettings.cfg stores the configuration you are setting on aTV->PlexConnect->Settings. It is stored whenever PlexConnect does a nice and proper shutdown.

To your log file (it is not "attached", it is copy-pasted...):

For the log to be complete, you need to to a proper shutdown as well, to make sure PlexConnect, python as well as your OS had the chance to flush all the caches. I honestly can't understand how this should be the "end".

Hi Baa,  Thanks again for trying to help.

Did a proper shutdown of Plex connect.  Below is the link to the Log, as well as the Apple TV settings

https://dl.dropboxusercontent.com/u/5725003/PlexConnect.log

https://dl.dropboxusercontent.com/u/5725003/ATVSettings.cfg

Hope this has the information you need.

bertieb

This is a strange one... seems like either python library "cElementTree"/"ElementTree" or the main XMLConverter class is broken on your system... the later one works on every other system. ;-)

Are you able to verify/re-install this python library?

What happens when you run XMLConverter stand-alone (python XMLConverter.py)? This kicks an internal small test procedure, which should show you a couple of XML files - again using the ElementTree library.

SUCCESS !!!

Thanks again for your great help.

I ran the XMLConverter stand alone, but I couldn't really see the results : I saw that a whole lot of stuff flashed up but then the window closed.

Then I noticed that I still had a space in my directory for the Plex Files (thanks to "My Documents"), so I shifted the python command to use the scrips in the C:\Python directory, and it immediately worked.  So my guess (though I'm not a programmer by any stretch) is that the space causes problems for Python, but only in calling up certain things ??

I still haven't got Plexconnect working on the aTV2, but this is on a tether jailbreak with a whole host of stuff on it (Nito, XBMX, and somewhere a setting to stop apple updates) , which could be blocking the configuration / certificate upload. Strange, as the iPhone Configuration utility says its all fine.  I'm not sure, but I will keep working at it.

But for now I finally have Plex back in the bedroom, which will lift the Wife approval factor up 127%.

Thank you so much to Baa, drewbie and Monsieur Latter for all the help.

bertieb

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