Starting PlexConnect in Terminal "Failed to access certificate"

Any help will be greatly appreciated.

 

After installing PlexConnect by following the Github instructions when I use the Apple TV 3 and click on the Trailers App it just opens up the Apple App as per normal, no Plex.

 

I read on this site if this occurs change the address in the Setting.cfg file. I did this, I changed it to ./Applications/PlexConnect-master/assets/certificates/trailers.pem

 

Now when I start try to start PlexConnect in Terminal it won't start. Please read on ...

 

 

Apple TV 3 (MD199XA)

Firmware 6.1.1.1 (6698.99.19)

ATV 3 DNS 10.0.0.138

Local IP Plex Connect 10.0.0.56

Mac Mini (Macmini6,2) Intel Core i7 2.3Ghz 16Gb

OS X 10.9.3 (13D65)

PMS IP 10.0.0.56

PMS Version 2.1.12

Plex Connect Version (GitHub Source) Thursday, 5 June 2014 11:47 am

 

Setting,cfg File contents:

 

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

 

After I enter sudo "/Applications/PlexConnect-master/PlexConnect.py" in terminal I get the following  ...

 

 

 

02:34:09 PlexConnect: ***

02:34:09 PlexConnect: PlexConnect

02:34:09 PlexConnect: Press CTRL-C to shut down.

02:34:09 PlexConnect: ***

02:34:09 PlexConnect: started: 02:34:09

02:34:09 PlexConnect: Version: 0.3.1+

02:34:09 PlexConnect: Python: 2.7.7 (v2.7.7:f89216059edf, May 31 2014, 12:53:48) 

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

02:34:09 PlexConnect: Host OS: darwin

02:34:09 PlexConnect: IP_self: 10.0.0.56

02:34:09 DNSServer: started: 02:34:09

02:34:09 DNSServer: ***

02:34:09 DNSServer: DNSServer: Serving DNS on 10.0.0.56 port 53.

02:34:09 DNSServer: intercept: ['trailers.apple.com'] => 10.0.0.56

02:34:09 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1

02:34:09 DNSServer: forward other to higher level DNS: 8.8.8.8

02:34:09 DNSServer: ***

02:34:09 WebServer: started: 02:34:09

02:34:09 WebServer: started: 02:34:09

02:34:09 WebServer: Failed to access certificate: /Applications/PlexConnect-master/Applications/PlexConnect-master/assets/certificates/trailers.pem

02:34:09 PlexConnect: WebServer_SSL not alive. Shutting down.

02:34:09 PlexConnect: Shutting down.

02:34:10 WebServer: ***

02:34:10 WebServer: WebServer: Serving HTTP on 10.0.0.56 port 80.

02:34:10 WebServer: ***

02:34:10 WebServer: Shutting down.

02:34:14 DNSServer: Shutting down.

02:34:14 PlexConnect: shutdown

02:34:14 PlexConnect: shutdown

 

 

 

How can I solve this issue?

Well, don't change that path. :-)

The thing is... like you changed it, starting with "./", it will search the path/file relative to the current PlexConnect directory. If you look at the error it says "Failed to access certificate: /Applications/PlexConnect-master/Applications/PlexConnect-master/assets/certificates/trailers.pem" - and that path is most probably not on your hard drive.

If you do get the std. trailers app to begin with, you most probably did not change the aTV's DNS setting. Did you?

Hey, thanks for the reply.

btw I'm new to mac, bear with me lol

I'm not quite sure I understand.

Are you saying I should change the "./" so it won't search a relative path?

No I haven't changed the ATV 3 DNS address, should I?

Do this to start fresh. Open terminal and type this in:


sudo su

cd /Applications

git clone https://github.com/iBaa/PlexConnect.git

cd /Applications/PlexConnect/support/OSX

./createcert.bash

./install.bash


Once complete load certs on your atv via network method outlined here:


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


OR use this app since you are using OSX:


https://forums.plex.tv/topic/108332-openplex-osx-app/

Are you saying I should change the "./" so it won't search a relative path?

No I haven't changed the ATV 3 DNS address, should I?

Path:

I am saying you shouldn't specify the whole path, when you start out relative to your programs directory...

Nothing to do with MacOS. Starting a path with "." will give you a relative address (Win, OSX, Linux... basically everywhere the same). If you need an absolute path, start with "/" only, which indicates the root directory.

In PlexConnect's case however, there should be no need to specify the absolute path, you should be able to just use the default setting.

DNS:

Well, yeah. If you want aTV to poke the PlexConnect DNS feature, you have to redirect it there. The modified DNS lookup - that's the main magic behind PlexConnect, I guess.

You beauty!!! 

It's working....Thank you so much for your help. I used the OpenPlex app and the supplied directions.

Problem 1. All sources of video in 'Channels' are buffering. Video plays for 4 seconds, stops, starts, stops, starts etc. I only have an 8mbps connection. However, streaming 720p from Netflix and Hulu Plus on two different devices at the same time in the house is no problem.

Problem 2. Since I live in Australia, I have to use the Unblock-Us DNS servers to access Netflix and Hulu Plus ...

I don't suppose you know the work around for any of this?

Path:

I am saying you shouldn't specify the whole path, when you start out relative to your programs directory...

Nothing to do with MacOS. Starting a path with "." will give you a relative address (Win, OSX, Linux... basically everywhere the same). If you need an absolute path, start with "/" only, which indicates the root directory.

In PlexConnect's case however, there should be no need to specify the absolute path, you should be able to just use the default setting.

DNS:

Well, yeah. If you want aTV to poke the PlexConnect DNS feature, you have to redirect it there. The modified DNS lookup - that's the main magic behind PlexConnect, I guess.

Right. I see where I went wrong. Thanks for helping mate.

Do this to start fresh. Open terminal and type this in:

sudo su
cd /Applications
git clone https://github.com/iBaa/PlexConnect.git
cd /Applications/PlexConnect/support/OSX
./createcert.bash
./install.bash

Once complete load certs on your atv via network method outlined here:

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

OR use this app since you are using OSX:

https://forums.plex.tv/topic/108332-openplex-osx-app/

 

You beauty!!! 

 

It's working....Thank you so much for your help. I used the OpenPlex app and the supplied directions.

 

Problem 1. All sources of video in 'Channels' are buffering. Video plays for 4 seconds, stops, starts, stops, starts etc. I only have an 8mbps connection. However, streaming 720p from Netflix and Hulu Plus on two different devices at the same time in the house is no problem.

 

Problem 2. Since I live in Australia, I have to use the Unblock-Us DNS servers to access Netflix and Hulu Plus ...

 

I don't suppose you know the work around for any of this?

I just found the solution to the DNS issue for Netflix - Hulu Plus etc. I set the "ip_dnsmaster" IP in the "Settings.cfg" file to Unblock-US IP ...

Well, that didn't work. I still can't use Netflix or Hulu Plus etc

Do this to start fresh. Open terminal and type this in:

sudo su
cd /Applications
git clone https://github.com/iBaa/PlexConnect.git
cd /Applications/PlexConnect/support/OSX
./createcert.bash
./install.bash

Once complete load certs on your atv via network method outlined here:

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

OR use this app since you are using OSX:

https://forums.plex.tv/topic/108332-openplex-osx-app/

 
Unblock-US DNS is 111.118.175.56 ... I followed the instruction but the ATV keeps telling that Netflix isn't available in my area. 
 
[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 111.118.175.56
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
loglevel = Normal
logpath = .

I’m not expert on unblock US nor do I use netflix or hulu plus since I have everything I need using plexconnect. That being said I believe you want to use this (if i’m wrong let me know):


ip_dnsmaster = 8.8.8.8


edit - nevermind you need to use you own dns from your unblock service per these instructions:


https://github.com/iBaa/PlexConnect/wiki/Settings-for-advanced-use-and-troubleshooting

Did you restart PlexConnect?

Did you restart PlexConnect?

 LOL for the life of me I couldn't figure out what I had done wrong. Then I thought "restart" computers 101. It's working now. I just have to figure out the buffering issue. I Use XBMC on my mac and it streams perfectly. Not so the Apple TV using Plex. Thanks heaps guys for taking the time to help me.

Do this to start fresh. Open terminal and type this in:

sudo su
cd /Applications
git clone https://github.com/iBaa/PlexConnect.git
cd /Applications/PlexConnect/support/OSX
./createcert.bash
./install.bash

Once complete load certs on your atv via network method outlined here:

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

OR use this app since you are using OSX:

https://forums.plex.tv/topic/108332-openplex-osx-app/

Forgive the newbie question but I know nothing about terminal commands.

When I type 'git clone https://github.com/iBaa/PlexConnect.git' into terminal I get 'sh: git: command not found'

What am I missing?

You can use the instructions here:


https://github.com/iBaa/PlexConnect


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


OR the terminal free app for OSX here:


https://forums.plex.tv/topic/108332-openplex-osx-app/

Forgive the newbie question but I know nothing about terminal commands.

When I type 'git clone https://github.com/iBaa/PlexConnect.git' into terminal I get 'sh: git: command not found'

What am I missing?

As quoted above me...use the App...its much easier. Follow the instructions....when you open the App make sure you click the settings symbol (top right hand corner on the little window/box that opens up and also click the question mark underneath it....it will open up a guide. Google every term you don't understand.) this has been a learning curve for me too. I'll try to answer any questions you have too, but Im a newbie too...

As quoted above me...use the App...its much easier. Follow the instructions....when you open the App make sure you click the settings symbol (top right hand corner on the little window/box that opens up and also click the question mark underneath it....it will open up a guide. Google every term you don't understand.) this has been a learning curve for me too. I'll try to answer any questions you have too, but Im a newbie too...

Thanks foshi22le!

Okay. I've finally got this sorted and I'm posting this for any other newbies out there that might find this stuff equally incomprehensible.

Like a lot of people, it seems, I had developed the problem where manually changing the DNS in my Apple TV to match the IP of my PlexConnect server resulted in a total loss of connection.  I've tried many things over many hours, including reinstalling PlexConnect, without any luck.

What I have ended up finding to be the culprit was the ip_pms setting in the Settings.cfg file.  It seems that it managed to change itself somehow from the correct IP of my PlexConnect server to 192.168.178.10 which I've discovered is the default setting in the Settings.py file of PlexConnect.  I followed the installation instructions to the letter when reinstalling PlexConnect but for some reason that ip_pms setting remains at 192.168.178.10 and as soon as you manually change the DNS in your ATV you lose connection.

So, the simple solution was to use Nano and edit the Settings.cfg file, which in my case is located in /Applications/PlexConnect-master, and set ip_pms to the IP of your PlexConnect server.

Now, everything seems to be working as good as ever.

I have one question for anyone who might have an answer.  This is what I see in Terminal when PlexConnect runs:

13:53:36 PlexConnect: ***

13:53:36 PlexConnect: PlexConnect

13:53:36 PlexConnect: Press CTRL-C to shut down.

13:53:36 PlexConnect: ***

13:53:36 PlexConnect: started: 13:53:36

13:53:36 PlexConnect: Version: 0.3.1+

13:53:36 PlexConnect: Python: 2.7.5 (default, Mar  9 2014, 22:15:05) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

13:53:36 PlexConnect: Host OS: darwin

13:53:36 PlexConnect: IP_self: 10.0.1.113

13:53:36 DNSServer: started: 13:53:36

13:53:36 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use

13:53:36 PlexConnect: DNSServer not alive. Shutting down.

13:53:36 PlexConnect: Shutting down.

13:53:36 PlexConnect: shutdown

13:53:36 PlexConnect: shutdown

 

This seems to me to be intuitively wrong but as everything seems to be working fine, I haven't really got a clue?  I should add that I have PlexConnect running as a launchctl daemon, if that has any bearing.

Thanks to everyone for your help.

>>What I have ended up finding to be the culprit was the ip_pms setting in the Settings.cfg file.  It seems that it managed to change itself somehow from the correct IP of my PlexConnect server to 192.168.178.10 which I've discovered is the default setting in the Settings.py file of PlexConnect.  I followed the installation instructions to the letter when reinstalling PlexConnect but for some reason that ip_pms setting remains at 192.168.178.10 and as soon as you manually change the DNS in your ATV you lose connection.

 
ip_pms has NOTHING to do with the internet connectivity of your aTV. In fact, as long as enable_plexgdm is on, that settings is not used at all...
You got to make sure ip_dnsmaster is set correcty... to either google (8.8.8.8), you ISP's or any other good one out there.
 
Once you change the aTV DNS to manual and you computer's IP, you got to make sure PlexConnect is running there... otherwise your aTV will loose it's function, being unable to lookup the service's hosts.
 
>>I have one question for anyone who might have an answer.  This is what I see in Terminal when PlexConnect runs:
>>...
>>13:53:36 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
 
You already got some sort of DNS server running. If you spend your time getting PlexConnect to run, it might be just another instance of it. Do you still have another terminal window hiding in the background? Did you install it as service or daemon?