Trailers Unavailable / serving /js/application.js

Hello, I am seeking help with configuring Plexconnect on my ATV and PMS. I am unable to operate PlexConnect on my ATV. It appears to be hanging at "serving /js/application.js"

 

I have reinstalled everything from scratch several times, with no discernable changes.

 

Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software):

ATV 2, Model MC572LL/A, 6.0.2 (6646.81.1)

The DNS server set on the ATV (found under the ATV settings > general > network > DNS):

192.168.1.12

The device and operating system (including version number) that PlexConnect is installed on:

MAC OS X 10.6.8, Macmini1,1 Intel Core Duo

The local IP address of the device that PlexConnect is installed on:

192.168.1.12

The device and operating system (including version number) that the Plex media server (PMS) is installed on:

MAC OS X 10.6.8, Macmini1,1 Intel Core Duo (Same as Plexconnect)

The Plex media server (PMS) version number you are running (do not put 'latest'):

Plex Media Server 0.9.8.6.175-88ffbb2

The local IP address of the device that the Plex media server (PMS) is installed on:

192.168.1.12

The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any testing branch e.g. the Elan/PlexInc one.

PlexConnect V0.3 (https://github.com/iBaa/PlexConnect/releases/tag/v0.3)

The content of your 'Settings.cfg' file (if you do not have this file you are running an old version, please update)

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

 

Detail on the media file if it is an issue related to playing a media file (in order to get the necessary information on a particular media file go into the Plex web interface, select the video file, when it brings up the page for the media file click on the "i" information button on the left hand side, it will then bring up a "media info" box, click on the "View XML" button, it will then open a browser window with the relevant information, copy this to http://www.pastebin.com and use the pastebin link to post the details; posting the information directly in the forum may mess up the formatting and generally takes up a lot of space):

*Not applicable*

A detailed description of the issue (the clearer you can make this the better):

Upon selecting Trailers app, PlexConnect appears to hang on WebServer: serving /js/application.js

There is no further response from the server, and ATV times out with the response Trailers Unavailable. Try again later.

Running OSX 10.6.8

Running Python 2.7.6

PlecConnect.log is attached.

 

Is plexconnect shutting down on its own or are your forcing it to shut down by pressing ctrl c?

I forced it to shutdown with a CTRL-C.

I forced it to shutdown with a CTRL-C.


I should clarify that. Plexconnect is not hanging as I originally wrote. The log entry just doesn't show anything other than serving /js/application.js if I click on Trailers.

If I click on something else on the Atv such as Hulu, I do see that referenced in the log. So it isn't "hung"...

I simply hit CTRL-C to shut down and capture the log for this post.

As per the sticky Read before Posting thread, set log level to High and post the content of the log file not the terminal window.



Also confirm you certificate is correctly on the ATV.

I've the same issue on my Synology (described here: https://forums.plexapp.com/index.php/topic/72356-plexconnect-on-synology/?p=523511)

Its only when pulling the latest git version, when using synology package it works perfect, but if I update with git I geht the serving/js/application.js. 

I've reseted the atv, I've done complete reinstall of plex connect, rebuild the certificates, nothing works... Same error log as in the post and here...

As per the sticky Read before Posting thread, set log level to High and post the content of the log file not the terminal window.


Also confirm you certificate is correctly on the ATV.

OP has PlexConnect.log file attached to it, captured with log level set to High.

Yes, certificate is on the ATV (correctly, I can only assume yes). Certificates were generated and appear as a profile on the ATV, following instructions at https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Mac-Certificates

Thanks for looking.



You may have similar symptoms but a completely different setup.
Open a new thread please after reading the “read before posting” sticky and provide all the requested information that is needed to help troubleshoot your issue.



Try deleting the ATV cert profile and then redoing the certs as sometimes this can cause similar issues if something goes wrong.

Try deleting the ATV cert profile and then redoing the certs as sometimes this can cause similar issues if something goes wrong.

Hi f00b4r,

Thanks but no luck. I did the following: 

Symptoms are the same as before. The Trailers app times out with the message Trailers unavailable.

New PlexConnect.log file is attached to reflect this test. (Attempt to load Trailers app is at 08:59:47)

Python version? You stated in you OP 2.7.x but the log shows 2.6.x.


I don’t see plexconnect log showing connecting to PMS, try setting the enable_plexgdm to false and set you ip_pms correctly.

Aha.

Drewbie, one of your suggestions helped, though not sure which. I made these changes:

1. I really DID have Python 2.7.6 installed but it must not have been active. I rebooted my server and now Python: 2.7.6 shows in the PlexConnect.log upon startup.

2. I edited Settings.cfg to set ip_pms to the IP addr of my server running Plex. There were no instructions (that I noted) to indicate this needed to be done. But it made sense...

3. I edited the Settings.cfg for enable_plexgdm from True to False. Again there were no instruction to indicate that this needed to be done, but drewbie suggested it.

So. Thank you for your help, one or more of the three options above worked for me.

Your mileage may vary. Thanks all.

I will say, now that I can see PlexConnect in action I am really really impressed. Nice job devs.

2 and 3 are not really needed as plex connect should connect to your PMS using plexgdm, but because I could not see anything in the log referring to discovering your PMS I suggested it be so no discovery has to happen and it knows where your PMS is (maybe plexgdm is turned off on your PMS, but I can’t remember where the setting is and I’m not near my PMS to look)


But glad it’s working for you.

I will say, now that I can see PlexConnect in action I am really really impressed. Nice job devs.



Yeah it is not bad for a "hack" ;)