Plexconnect setup "Trailers not available right now"

just one caveat to my post above - testing the webserver, add the port number on the end of the IP address to test the Webserver so in my case

http://192.168.2.7:32400

then see the XML looks like this

<MediaContainer size="12" flashInstalled="1" friendlyName="MYMAC" machineIdentifier="5affdd9af73213d107492d7c9f53235950867c24" multiuser="1" myPlex="1" myPlexMappingState="mapped"myPlexSigninState="ok" myPlexUsername="myname@btinternet.com" platform="MacOSX" platformVersion="10.8.4" requestParametersInCookie="1" silverlightInstalled="1"soundflowerInstalled="0" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderVideo="1"transcoderVideoBitrates="64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000" transcoderVideoQualities="0,1,2,3,4,5,6,7,8,9,10,11,12"transcoderVideoResolutions="128,128,160,240,320,480,768,720,720,1080,1080,1080,1080" updatedAt="1379074341" version="0.9.8.6.175-88ffbb2" webkit="1">
<Directory count="1" key="channels" title="channels"/>
<Directory count="1" key="clients" title="clients"/>
<Directory count="1" key="library" title="library"/>
<Directory count="1" key="music" title="music"/>
<Directory count="1" key="photos" title="photos"/>
<Directory count="1" key="playQueues" title="playQueues"/>
<Directory count="1" key="playlists" title="playlists"/>
<Directory count="1" key="search" title="search"/>
<Directory count="1" key="servers" title="servers"/>
<Directory count="1" key="system" title="system"/>
<Directory count="1" key="transcode" title="transcode"/>
<Directory count="1" key="video" title="video"/>
 
 
Cheers Ollie

Hi there!

First of all, congrats to you all for doing such a nice piece of work!
Well, my english is poor because I´m brazilian! So, be patient please.
 
I having the same issue about "Trailers not available right now" but a little diferent!!!
 
I read the FAQ and saw all the links for Newbies.
 
- ATV3 5.3 (6105) Ip adress 192.168.1.126
- The DNS server set on the ATV: 192.168.1.108
- PlexConnect and PMS on Windows 7 192.168.1.108
- PMS 0.9.8.6.175-88ffbb2
- PlexConnect 09/10/2013 (creation date of the folder)
- Phyton 2.75
- Cert created and installed on aTV and copyied into PlexConnect subfolder 
(http://langui.sh/2013/08/27/appletv-ssl-plexconnect/)
When I use my browser and text http://192.168.1.108:32400/ apears the XML file
So the Cert is working fine, right?
 
Here is my Settings.cfg
 
[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:\AKI\PlexConnect-master\assets\certificates railers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
 
I checked my ports on the router:
cmd / netstat -an
Both ports (80 and 443 are LISTENING) after I started PlexConnect
So, NO firewall issues, right?
 
Here is the Main Issue: For the first time I run Trailers on aTV, PlexConnect connects.
I can see the main Menu showing the library (but not the movie titles).
It runs like this:
 
13:48:35 PlexConnect: started: 13:48:35
13:48:35 PlexConnect: IP_self: 192.168.1.108
13:48:35 DNSServer: started: 13:48:35
13:48:35 DNSServer: ***
13:48:35 DNSServer: DNSServer: Serving DNS on port 53.
13:48:35 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.108
13:48:35 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
13:48:35 DNSServer: forward other to higher level DNS: 8.8.8.8
13:48:35 DNSServer: ***
13:48:36 WebServer: started: 13:48:36
13:48:36 WebServer: ***
13:48:36 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
13:48:36 WebServer: ***
13:48:36 PlexGDM: ***
13:48:36 PlexGDM: looking up Plex Media Server
13:48:36 PlexGDM: ***
13:48:36 WebServer: started: 13:48:36
13:48:36 WebServer: ***
13:48:36 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
13:48:36 WebServer: ***
13:48:37 PlexGDM: servers discovered: 1
13:48:37 XMLConverter: PlexGDM - PMS: 192.168.1.108:32400
13:48:42 DNSServer: DNS request received!
13:48:42 DNSServer: Source: ('192.168.1.126', 64396)
13:48:42 DNSServer: Domain: phobos.apple.com
13:48:42 DNSServer: ***forward request
13:48:42 DNSServer: -> DNS response from higher level
13:48:43 DNSServer: DNS request received!
13:48:43 DNSServer: Source: ('192.168.1.126', 63180)
13:48:43 DNSServer: Domain: trailers.apple.com
13:48:43 DNSServer: ***intercept request
13:48:43 DNSServer: -> DNS response: 192.168.1.108
13:48:43 DNSServer: DNS request received!
13:48:43 DNSServer: Source: ('192.168.1.126', 51947)
13:48:43 DNSServer: Domain: ax.init.itunes.apple.com
13:48:43 DNSServer: ***forward request
13:48:43 DNSServer: -> DNS response from higher level
13:48:43 Localize: aTVLanguage: en
13:48:43 WebServer: serving application.js
13:48:43 DNSServer: DNS request received!
13:48:43 DNSServer: Source: ('192.168.1.126', 56455)
13:48:43 DNSServer: Domain: itunes.apple.com
13:48:43 DNSServer: ***forward request
13:48:43 DNSServer: -> DNS response from higher level
13:48:43 DNSServer: DNS request received!
13:48:43 DNSServer: Source: ('192.168.1.126', 51691)
13:48:43 DNSServer: Domain: atv.plexconnect
13:48:43 DNSServer: ***intercept request
13:48:43 DNSServer: -> DNS response: 192.168.1.108
13:48:43 Localize: aTVLanguage: en
13:48:43 WebServer: serving .xml: /PlexConnect.xml
13:48:43 ATVSettings: add section 007
13:48:44 Localize: aTVLanguage: en
13:48:44 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\utils.js
13:48:44 Localize: aTVLanguage: en
13:48:44 ATVLogger: loadItem: Library
13:48:44 Localize: aTVLanguage: en
13:48:44 WebServer: serving .xml: /library/sections
13:48:44 ATVSettings: add section C1MKG3D6FF54
13:48:44 Localize: aTVLanguage: en
13:48:44 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\utils.js
13:48:44 Localize: aTVLanguage: en
13:48:44 WebServer: serving .xml: /library/sections/1/recentlyAdded
13:48:56 Localize: aTVLanguage: en
13:48:56 ATVLogger: loadItem: Channels
13:48:56 Localize: aTVLanguage: en
13:48:56 WebServer: serving .xml: /channels/all
13:48:56 Localize: aTVLanguage: en
13:48:56 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\utils.js
13:48:58 Localize: aTVLanguage: en
13:48:58 ATVLogger: loadItem: Search
13:48:58 Localize: aTVLanguage: en
13:48:58 WebServer: serving .xml: /SearchForm.xml
13:48:59 Localize: aTVLanguage: en
13:48:59 ATVLogger: loadItem: Settings
13:48:59 Localize: aTVLanguage: en
13:48:59 WebServer: serving .xml: /
13:48:59 Localize: aTVLanguage: en
13:48:59 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\utils.js
13:48:59 Localize: aTVLanguage: en
13:48:59 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\settings.js
13:49:05 Localize: aTVLanguage: en
13:49:05 ATVLogger: loadItem: Library
13:49:05 Localize: aTVLanguage: en
13:49:05 WebServer: serving .xml: /library/sections
13:49:05 Localize: aTVLanguage: en
13:49:05 WebServer: serving  C:\AKI\PlexConnect-master\assets\js\utils.js
13:49:06 Localize: aTVLanguage: en
13:49:06 WebServer: serving .xml: /library/sections/2/recentlyAdded
13:49:08 Localize: aTVLanguage: en
13:49:08 ATVLogger: loadURL (override): http://atv.plexconnect/library/sections/2
13:50:00 PlexConnect: Shutting down.
13:50:00 WebServer: Shutting down.
13:50:00 WebServer: Shutting down.
13:50:03 DNSServer: Shutting down.
13:50:03 PlexConnect: shutdown
 
Then crushes: "Trailers not available right now"
The SECOND time I run Trailers on aTV, PlexConnect runs different:
 
13:55:20 PlexConnect: started: 13:55:20
13:55:20 PlexConnect: IP_self: 192.168.1.108
13:55:20 DNSServer: started: 13:55:20
13:55:20 DNSServer: ***
13:55:20 DNSServer: DNSServer: Serving DNS on port 53.
13:55:20 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.108
13:55:20 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
13:55:20 DNSServer: forward other to higher level DNS: 8.8.8.8
13:55:20 DNSServer: ***
13:55:20 WebServer: started: 13:55:20
13:55:20 WebServer: ***
13:55:20 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
13:55:20 WebServer: ***
13:55:20 PlexGDM: ***
13:55:20 PlexGDM: looking up Plex Media Server
13:55:20 PlexGDM: ***
13:55:20 WebServer: started: 13:55:20
13:55:20 WebServer: ***
13:55:20 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
13:55:20 WebServer: ***
13:55:21 PlexGDM: servers discovered: 1
13:55:21 XMLConverter: PlexGDM - PMS: 192.168.1.108:32400
13:55:24 DNSServer: DNS request received!
13:55:24 DNSServer: Source: ('192.168.1.126', 62930)
13:55:24 DNSServer: Domain: trailers.apple.com
13:55:24 DNSServer: ***intercept request
13:55:24 DNSServer: -> DNS response: 192.168.1.108
13:55:24 Localize: aTVLanguage: en
13:55:24 WebServer: serving application.js
13:55:29 PlexConnect: Shutting down.
13:55:29 WebServer: Shutting down.
13:55:29 WebServer: Shutting down.
13:55:34 DNSServer: Shutting down.
13:55:34 PlexConnect: shutdown
 
It doesn´t show the library and PlexConnect stops.
"Trailers not available right now"
 
In the first log look at
13:49:08 ATVLogger: loadURL (override): http://atv.plexconnect/library/sections/2
In the second one look at
13:55:24 WebServer: serving application.js
 
I think I didn´t read this on the entire Forum.
What means OVERRIDE?
 
Please, could you guys help me?
Thanks!
Best regards from Brazil!
Ed

just one caveat to my post above - testing the webserver, add the port number on the end of the IP address to test the Webserver so in my case

http://192.168.2.7:32400

then see the XML looks like this

<MediaContainer size="12" flashInstalled="1" friendlyName="MYMAC"
 ...
 
 
Cheers Ollie

This is PMS speaking. Has nothing to do with PlexConnect running or not.

EdIshikawa... I don't even know where to start here :-D

>>I having the same issue about "Trailers not available right now" but a little diferent!!!

>>I read the FAQ and saw all the links for Newbies.

Really? Did you see http://forums.plexapp.com/index.php/topic/69410-read-before-posting/?p=457215 as well? And read it?

Or... (just one post above the other link)

General rules...
- the more information the better
- but: no logfiles copy-pasting - attach it or show a pastebin link) with loglevel=High and limiting to the issue, please.

But as we are here now, we can also just answer:

>>When I use my browser and text http://192.168.1.108:32400/ apears the XML file

>>So the Cert is working fine, right?
No. Port 32400 is PMS, not PlexConnect. You will get this answer even without PlexConnect running.
If you need/want to test PlexConnect, request :80. Or :443 for SSL.

>>What means OVERRIDE?

We "overrode" the aTV built-in .js function loadURL(), adding some PlexConnect extensions (as well as log functionality).

Log 1 looks good, nice and clean shutdown... what do you mean with "Then crushes"?

>>13:55:24 WebServer: serving application.js

Log 2 seems to indicate that we shipped "application.js", but aTV wasn't happy with it. It was not received (stuck in your ethernet?), or not trusted (certificate?). Or the Webserver (Port80) somehow is messed up.

So sorry Baa...

Next time I will creat a brand new topic. 

EdIshikawa... I don't even know where to start here :-D

>>I having the same issue about "Trailers not available right now" but a little diferent!!!

>>I read the FAQ and saw all the links for Newbies.

Really? Did you see http://forums.plexapp.com/index.php/topic/69410-read-before-posting/?p=457215 as well? And read it?

Or... (just one post above the other link)

General rules...
- the more information the better
- but: no logfiles copy-pasting - attach it or show a pastebin link) with loglevel=High and limiting to the issue, please.

But as we are here now, we can also just answer:

>>When I use my browser and text http://192.168.1.108:32400/ apears the XML file

>>So the Cert is working fine, right?
No. Port 32400 is PMS, not PlexConnect. You will get this answer even without PlexConnect running.
If you need/want to test PlexConnect, request :80. Or :443 for SSL.

>>What means OVERRIDE?

We "overrode" the aTV built-in .js function loadURL(), adding some PlexConnect extensions (as well as log functionality).

Log 1 looks good, nice and clean shutdown... what do you mean with "Then crushes"?

>>13:55:24 WebServer: serving application.js

Log 2 seems to indicate that we shipped "application.js", but aTV wasn't happy with it. It was not received (stuck in your ethernet?), or not trusted (certificate?). Or the Webserver (Port80) somehow is messed up.

The second log doesn´t happen when I wait 30min until I try again.

So I think something is missing on my ethernet.

About the "crush":

I just can´t access my library. Thumbnails doesn´t appear too.

My TV shows "Accessing Trailers"... and then it doesn´t change at all.

What can I do?

(should I open a new topic to discuss this?)

Thanks for your reply!

Ed

Well, now that the topic is hijacked, it can stay that way - I guess.

I have seen a couple of comments stating "I have no thumbs", "I can't play my media".

Eg here... http://forums.plexapp.com/index.php/topic/80557-missing-some-art-after-ssl-fix/

So far, I haven't understood what is going on.

Which aTV software are you using?

Could you please set loglevel=High and provide the PlexConnect.log? I would like to check if there is something wrong in the generated XML files.

Well, now that the topic is hijacked, it can stay that way - I guess.

I have seen a couple of comments stating "I have no thumbs", "I can't play my media".

Eg here... http://forums.plexapp.com/index.php/topic/80557-missing-some-art-after-ssl-fix/

So far, I haven't understood what is going on.

Which aTV software are you using?

Could you please set loglevel=High and provide the PlexConnect.log? I would like to check if there is something wrong in the generated XML files.

Baa

First of all, thank U for the support! awsome!

Let´s go...

I will check for no thumbs issues on Forum.

aTV3 5.3 (6105)

[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:\AKI\PlexConnect-master\assets\certificates railers.pem
ip_dnsmaster = 8.8.8.8
loglevel = High
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
 

Here is my log:

http://pastebin.com/TkaZ6KTY

Thanks!

Ed

iOS 5.3 should be fine...

Are you running some kind of virtual machine?

What happens, when you request this URL "http://192.168.1.108:32400/photo/:/transcode/http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561" (line 1207) in your web browser?

What with "http://127.0.0.1:32400/library/metadata/1233/thumb/1378029561"?

iOS 5.3 should be fine...

Are you running some kind of virtual machine?

What happens, when you request this URL "http://192.168.1.108:32400/photo/:/transcode/http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561" (line 1207) in your web browser?

What with "http://127.0.0.1:32400/library/metadata/1233/thumb/1378029561"?

Hi Baa

No virtual machine

First link: 400 Bad Request

Second link: Shows the poster of one of my movies.

Oh. my bad.

Please try this one, I manually had to change the & to a plain &...

http://192.168.1.108:32400/photo/:/transcode/http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561

There is some strange comment by Elan in the sources...

        # This is bogus (note the extra path component) but ATV is stupid when it comes to caching images, it doesn't use querystrings.
        # Fortunately PMS is lenient...
        #
        return 'http://' + g_param['Addr_PMS'] + '/photo/:/transcode/%s/?width=%d&height=%d&url=' % (quote_plus(res), width, height) + quote_plus(res)

Maybe it is not THAT forgiving... :-)

Oh. my bad.

Please try this one, I manually had to change the & to a plain &...

http://192.168.1.108:32400/photo/:/transcode/http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561

No prob

400 Bad Request 

sorry...

For people getting stuck at:

 

09:53:00 WebServer: serving application.js

 
This will most likely be because your system that's running PlexConnect is using Python 2.6 or older.
 
YOU MUST be running Python 2.7 (ideally 2.7.5).
 
For Mac users you can check what version of python you're running by opening terminal and typing:
 
python -V
 
If you need to upgrade to version 2.7, download from : http://www.python.or...releases/2.7.5/
For how-to-install python on OS X, use google or read python.org. This forum topic is for PlexConnect only.
 
Once installed, i  launch PlexConnect by using the command;
 
sudo python2.7 PlexConnect.py      (instead of sudo ./PlexConnect.py)

For people getting stuck at:

 

09:53:00 WebServer: serving application.js

 
This will most likely be because your system that's running PlexConnect is using Python 2.6 or older.
 
YOU MUST be running Python 2.7 (ideally 2.7.5) or later.
 
For Mac users you can check what version of python you're running by opening terminal and typing:
 
python -V
 
If you need to upgrade to version 2.7, download from : http://www.python.or...releases/2.7.5/
For how-to-install python on OS X, use google or read python.org. This forum topic is for PlexConnect only.
 
Once installed, i  launch PlexConnect by using the command;
 
sudo python2.7 PlexConnect.py      (instead of sudo ./PlexConnect.py)
 
(it's necessary to specify python2.7 else it will try and open the file still using system default of version 2.6. There is a way to change system default to python version 2.7, but i'm not sure how, i'm sure google can help you though.)

Hi ramb0!

Thanks for your reply.

I´m using Python 2.75.. (Win 7) 

About the command that you describe: where must I text that?

(Sorry. I´m really a Newbie.. :-)

Ed

Edlshikawa- one last test...

What's the response of this - very much shorter - URL? Does it give the thumbnail picture?

http://192.168.1.108:32400/photo/:/transcode/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561

Edlshikawa- one last test...

What's the response of this - very much shorter - URL? Does it give the thumbnail picture?

http://192.168.1.108:32400/photo/:/transcode/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561

Sorry Baa

400 Bad Request 

Don´t give up please!  :( 

I have an idea:I will try to install all these stuff in another computer to test PlexConnect. Let´s see if it works...

Thanks for your patience.

Ed

Edlshikawa- one last test...

What's the response of this - very much shorter - URL? Does it give the thumbnail picture?

http://192.168.1.108:32400/photo/:/transcode/?width=768&height=768&url=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F1233%2Fthumb%2F1378029561

Baa

It worked!!! At last!  :)

I installed of the stuff on the other computer and it worked perfectly! (The Cert was just a copy of the original and it fits)

So I reinstalled on the original computer again.

I think Python was the issue. Maybe I installed the wrong version (64).

Well, thanks you very much for your support!!!

See you around

Ed

Hu?

Nice one... could you please re-create the log from yesterday (where it failed) with the new setup? I would like to figure out if/ what's changed now...

Thanks!

Baa

Sorry for replying after all these days. I´ve been very busy.

Well, let´s go

Unfortunatly the problem persists.

After the first successful connection to PMS, I can´t connect perfectly anymore.

Now I can (sometimes) access my library. But I can´t play them. I can see metada of the movies but when I try to play them... "Searching for Trailers"

Could you please take a look? 

[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:\AKI\PlexConnect-master\assets\certificates railers.pem
ip_dnsmaster = 8.8.8.8
loglevel = High
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
 

https://www.dropbox.com/s/zxre49bf2qd88w4/PlexConnect.log

Thanks Baa!

[]´s

Ed

ATVSettings? ForceTranscoding on?