# Problems updating to new github install

**URL:** <https://forums.plex.tv/t/problems-updating-to-new-github-install/49947>\
**Category:** Apps & Creations\
**Created:** [December 14, 2013, 10:10pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947 "2013-12-14T22:10:17Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 14, 2013, 10:10pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/1 "2013-12-14T22:10:17Z")

</div>

I've been trying to update to the newest plexconnect from github

&nbsp;

However after unzipping and trying to open plexconnect.py. I get the python script to open for a second and then it closes.&nbsp;

I thought this could have been to a bad install of python so I deleted and downloaded version 2.7.6 and tried again. Same thing occurs.&nbsp;

&nbsp;

I am not sure what to try at this point. I've searched the forums but can't find any help there.&nbsp;

&nbsp;

Thanks in advance

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 14, 2013, 10:13pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/2 "2013-12-14T22:13:58Z")

</div>

Try opening a command window, navigating to the right directory and starting it using that.

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 14, 2013, 10:50pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/3 "2013-12-14T22:50:58Z")

</div>

I may be using the cmd function incorrectly. But I was unable to make a difference.

Thank you for the quick reply!

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 14, 2013, 11:04pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/4 "2013-12-14T23:04:19Z")

</div>

What are you typing in the command window?  
Does the window not stay on the screen so you can see any error?

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 14, 2013, 11:10pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/5 "2013-12-14T23:10:42Z")

</div>

The python window does not stay open.

I tried a couple different things with command prompt. start plexconnect.py

and i tried copy pasting the directory location as well.&nbsp;C:\Program Files (x86)\PlexConnect-master\PlexConnect.py

I don't know how to use cmd though. Only ip config release/renew.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 14, 2013, 11:34pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/6 "2013-12-14T23:34:28Z")

</div>

Not the Python window, the cmd window.  
  
Change to the directory then in a separate command start the Python script.  
  
Use “cd thepathtoyourfolder”

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 12:20am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/7 "2013-12-15T00:20:45Z")

</div>

Sorry just to clarify

cd Program Files (x86)\PlexConnect-master\PlexConnect.py

is what i enter into the cmd window?

C:\\> cd Program Files (x86)\PlexConnect-master\PlexConnect.py is what i have been trying

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 12:20am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/8 "2013-12-15T00:20:56Z")

</div>

Sorry just to clarify

cd Program Files (x86)\PlexConnect-master\PlexConnect.py

is what i enter into the cmd window?

C:\\> cd Program Files (x86)\PlexConnect-master\PlexConnect.py is what i have been trying

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 15, 2013, 12:23am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/9 "2013-12-15T00:23:58Z")

</div>

Remove PlexConnect.py from what you are trying to enter to change directory then enter “PlexConnect.py” to run the script

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 1:05am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/10 "2013-12-15T01:05:29Z")

</div>

thank you so much for your patience and explanation. I really appreciate it

this is what resulted

&nbsp;

C:\\>cd Program Files (x86)\PlexConnect-master\

&nbsp;

C:\Program Files (x86)\PlexConnect-master\>plexconnect.py

18:01:50 PlexConnect: \*\*\*

18:01:50 PlexConnect: PlexConnect

18:01:50 PlexConnect: Press CTRL-C to shut down.

18:01:50 PlexConnect: \*\*\*

18:01:50 Settings: add section PlexConnect

18:01:50 Settings: add option port\_pms=32400

18:01:50 Settings: add option port\_webserver=80

18:01:50 Settings: add option ip\_plexconnect=0.0.0.0

18:01:50 Settings: add option certfile=./assets/certificates/trailers.pem

18:01:50 Settings: add option ip\_dnsmaster=8.8.8.8

18:01:50 Settings: add option loglevel=Normal

18:01:50 Settings: add option enable\_dnsserver=True

18:01:50 Settings: add option logpath=.

18:01:50 Settings: add option ip\_pms=192.168.178.10

18:01:50 Settings: add option enable\_plexgdm=True

18:01:50 Settings: add option hosttointercept=trailers.apple.com

18:01:50 Settings: add option port\_ssl=443

18:01:50 Settings: add option enable\_webserver\_ssl=True

18:01:50 Settings: add option prevent\_atv\_update=True

18:01:50 Settings: add option port\_dnsserver=53

18:01:50 Settings: add option enable\_plexconnect\_autodetect=True

Traceback (most recent call last):

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\PlexConnect.py", line 165, in

&nbsp; &nbsp; success = startup()

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\PlexConnect.py", line 52, in s

tartup

&nbsp; &nbsp; cfg = Settings.CSettings()

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\Settings.py", line 51, in \_\_in

it\_\_

&nbsp; &nbsp; self.checkSection()

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\Settings.py", line 92, in chec

kSection

&nbsp; &nbsp; self.saveSettings()

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\Settings.py", line 69, in save

Settings

&nbsp; &nbsp; f = open(self.getSettingsFile(), 'wb')

IOError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\PlexConnect-mas

ter\\Settings.cfg'

&nbsp;

C:\Program Files (x86)\PlexConnect-master\>

&nbsp;

i can not make heads not tails of it to determine a problem.&nbsp;

&nbsp;

Thank you once again

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [December 15, 2013, 7:54am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/11 "2013-12-15T07:54:28Z")

</div>

\>\>IOError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\PlexConnect-mas

ter\\Settings.cfg'

&nbsp;

Looks like the Settings.cfg file was created by a different owner or has ReadOnly status - or it might still be open in some weird acting application.

For a quick test... just rename it (adding BAK or so) and try again. PlexConnect should then be able to create a new one and run properly. You might have to adapt your settings later, then restart PlexConnect.

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 8:34pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/12 "2013-12-15T20:34:57Z")

</div>

So I tried to change settings.py to settings.bak as there wasn't a settings.cfg file in the folder (is that the problem? do i need to create this file?) and that didn't allow the plexconnect.py to do anything at all.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 15, 2013, 8:56pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/13 "2013-12-15T20:56:51Z")

</div>

Don’t mess with settings.py!  
  
Settings.cfg is created on first run and graceful shutdown it looks like you may need to change the PlexConnect folder permissions to allow read and write for it and it’s contents.

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 9:41pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/14 "2013-12-15T21:41:13Z")

</div>

Thank you so much! It was indeed the permission! Got that sorted out now the next step

"Failed to access certificate" I used open SSL and the iphone utility on my apple tv after the last apple update. Do I need to do this again now? Or is this another small issue?

I really appreciate everyone's patience and assistance. This has been one of the best forums I've ever posted on for help. I shall pay it forward when my understanding of operating plex is on par with your levels.

Thank You once again

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [December 15, 2013, 9:46pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/15 "2013-12-15T21:46:30Z")

</div>

Did you remember to dump the matching files in the PlexConnect certs folder?

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 15, 2013, 9:53pm UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/16 "2013-12-15T21:53:30Z")

</div>

I get this (trailers.perm is in the certificates folder)

14:51:12 PlexConnect: \*\*\*

14:51:12 PlexConnect: PlexConnect

14:51:12 PlexConnect: Press CTRL-C to shut down.

14:51:12 PlexConnect: \*\*\*

14:51:12 PlexConnect: started: 14:51:12

14:51:12 PlexConnect: IP\_self: 192.168.1.64

14:51:12 DNSServer: started: 14:51:12

14:51:12 DNSServer: \*\*\*

14:51:12 DNSServer: DNSServer: Serving DNS on 192.168.1.64 port 53.

14:51:12 DNSServer: intercept: ['trailers.apple.com'] =\> 192.168.1.64

14:51:12 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld

.apple.com.edgesuite.net'] =\> 127.0.0.1

14:51:12 DNSServer: forward other to higher level DNS: 8.8.8.8

14:51:12 DNSServer: \*\*\*

14:51:12 WebServer: started: 14:51:12

14:51:12 WebServer: \*\*\*

14:51:12 WebServer: WebServer: Serving HTTP on 192.168.1.64 port 80.

14:51:12 WebServer: \*\*\*

14:51:12 WebServer: started: 14:51:12

14:51:12 WebServer: \*\*\*

14:51:12 WebServer: WebServer: Serving HTTPS on 192.168.1.64 port 443.

14:51:12 WebServer: \*\*\*

&nbsp;

Its not finding my plex server?

---

<div class="post-metadata">

**Author:** ![supernav](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@supernav](https://forums.plex.tv/u/supernav)\
**Post date:** [December 16, 2013, 4:54am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/17 "2013-12-16T04:54:17Z")

</div>

I uninstalled everything reinstalled, ensured the permissions were correct and everything is up and working.

Thank you once again f00b4r and Baa without you I'd have been lost. I appreciate you taking the time to help me out.

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [December 16, 2013, 9:35am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/18 "2013-12-16T09:35:47Z")

</div>

\>\>&nbsp;Its not finding my plex server?

It's not looking for it - before you enter trailers...

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:41am UTC](https://forums.plex.tv/t/problems-updating-to-new-github-install/49947/19 "2019-12-21T00:41:30Z")

</div>

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