Updated plexconnect now it's not working

Hi,

 

I just updated plexconnect and now i can't get it to load. I get the following :

 

E:\plexconnect>plexconnect.py
16:02:13 PlexConnect: ***
16:02:13 PlexConnect: PlexConnect
16:02:13 PlexConnect: Press CTRL-C to shut down.
16:02:13 PlexConnect: ***
16:02:13 PlexConnect: started: 16:02:13
16:02:13 PlexConnect: IP_self: 192.168.0.17
16:02:13 DNSServer: started: 16:02:13
16:02:13 DNSServer: ***
16:02:13 DNSServer: DNSServer: Serving DNS on port 53.
16:02:13 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192
168.0.17
16:02:13 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnl
.apple.com.edgesuite.net'] => 127.0.0.1
16:02:13 DNSServer: forward other to higher level DNS: 208.122.23.22
16:02:13 DNSServer: ***
16:02:13 WebServer: started: 16:02:13
16:02:13 WebServer: ***
16:02:13 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
16:02:13 WebServer: ***
16:02:13 PlexGDM: ***
16:02:13 PlexGDM: looking up Plex Media Server
16:02:13 PlexGDM: ***
16:02:13 WebServer: started: 16:02:13
16:02:13 WebServer: Failed to access certificate: E:\plexconnect\./assets/certi
icates/trailers.pem
16:02:13 PlexConnect: WebServer_SSL not alive. Shutting down.
16:02:13 PlexConnect: Shutting down.
16:02:14 PlexGDM: servers discovered: 1
16:02:14 XMLConverter: PlexGDM - PMS: 192.168.0.17:32400
16:02:14 WebServer: Shutting down.
16:02:18 DNSServer: Shutting down.
16:02:18 PlexConnect: shutdown
 
I've had a look in the assets/certiicates/ directory and trailers.pem doesn't even exist. Not sure if thats the issue. The old version worked totally fine, guess i shouldn't have updated it.
 
Any help would be appreciated.
16:02:13 WebServer: Failed to access certificate: E:\plexconnect\./assets/certi
icates/trailers.pem
 
open your settings.cfg in plexconnect and replace "E:\plexconnect\./assets/certi
icates/trailers.pem"
 

with this: E:\plexconnect\assets\certificates railers.pem

If you havent created your certificates yet (yes, you have to create them yourself) , follow instructions on this page: http://langui.sh/2013/08/27/appletv-ssl-plexconnect/

and put them in the path that you have defined above..

Still comes up with an error : 

16:27:23 WebServer: Failed to access certificate: e:\plexconnect/assets/certificates/trailers.pem
 
Like i mentioned, that file doesn't exist.

>>'certfile'        :('E:\plexconnect\assets\certificates railers.pem',), \

1) you should not have to change your settings in the sourcecode - don't touch .py files, PlexConnect will generate a .cfg file.

>>I've had a look in the assets/certiicates/ directory and trailers.pem doesn't even exist.

2) as Plextr stated, the trailer.pem file is YOUR own private security/key file. It won't come preinstalled. Find your old one, and drop it into the named folder. Or generate a new... but then you also have to upload the new certificate to your aTV.

grab the iphone configuration utility @ http://support.apple.com/kb/DL1466

grab a micro usb cable

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

If you still need help, holler.. :P

OK thanks guys

Just a small update to say I followed all the instructions and it's working fine now, only took 5 minutes to go through it.

Thanks to everyone who helped.

I had attempted to post this previously, but I can't seem to find the old post...

For those that are using PlexConnect, post changes and updates to support https, if you find that the script works fine on your Mac system, but the AppleScript version that you may run to automate starting and stopping of PlexConnect does NOT, then I have a tip for you.

It has already been referenced that you should refer to the full path to your certificate file to ensure smooth operation, but for those running Plex Server and PlexConnect on an older Mac OS, mine is 10.6.x, then you need to add two more steps.

  1. You need to upgrade to Python 2.7.x, if you have not done so already (it is a requirement for PlexConnect).
  2. In your AppleScript, you need to explicitly say which python you are using, with the full path, for the AppleScript to work. Otherwise the PlexConnect system will run, but still give you Trailers Not Available message on the ATV.

To find exactly where your newest version of python is installed, use the "which python" command on the terminal. Take that path to python and add it ahead of your call to the PlexConnect.py script in your AppleScript and it might help.

I pulled my hair out for hours until I figured that out.

Hope it helps others...

P

>>It has already been referenced that you should refer to the full path to your certificate file to ensure smooth operation

Yes... it as beed said. But neither understood nor proven (AFAIK)... why would it work "better" with full path?

In terms of running Plexconnect through the Applescript, you needed to use absolute path because Applescript doesn’t support relative paths. However, since you included the check on the certificate path this is no longer an issue. I now use the default relative path in settings.cfg and Plexconnect starts up nicely.

I had the exact same thing and followed instructions in the link below. This helped me also :)

grab the iphone configuration utility @ http://support.apple.com/kb/DL1466

grab a micro usb cable

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

If you still need help, holler.. :P

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