PlexConnect stopped working, can't get it to work anymore

plexconnect

#1


  • ATV model 3, firmware version 6.1.1




  • The DNS server set on the ATV: 192.168.1.254




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




  • The device and operating system (including version number) that PlexConnect is installed on: Macbook Pro OSX Version 10.9.3




  • The device and operating system (including version number) that the Plex media server (PMS) is installed on: Macbook Pro OSX Version 10.9.3




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

    Version 0.9.9.7
    



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




  • The PlexConnect version number. If using Github source then a time and date of download: June 5, 2014 at 11:47 AM



The contents of your 'Settings.cfg' file:


[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 = ./assets/certificates/trailers.pem

loglevel = Normal

logpath = .

 

 

I had it working fine for a few months and then it stopped working for no apparent reason about a week ago and I haven't been able to get it working since. This is what happens when I try to run it in terminal:

 


18:41:58 PlexConnect: **


18:41:58 PlexConnect: PlexConnect


18:41:58 PlexConnect: Press CTRL-C to shut down.


18:41:58 PlexConnect: **


18:41:58 PlexConnect: started: 18:41:58


18:41:58 PlexConnect: Version: 0.3.1+


18:41:58 PlexConnect: Python: 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) 


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


18:41:58 PlexConnect: Host OS: darwin


18:41:58 PlexConnect: IP_self: 192.168.1.13


18:41:58 DNSServer: started: 18:41:58


18:41:58 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use


18:41:58 PlexConnect: DNSServer not alive. Shutting down.


18:41:58 PlexConnect: Shutting down.


18:41:58 PlexConnect: shutdown


18:41:58 PlexConnect: shutdown


 


I am not running another server and port 53 doesn't show as being used when I check the Activity Monitor.


 


Any help would be appreciated as this is my last attempt to fix it without restoring my Macbook.



 


#2

Have you restarted your mac yet? Can you explain in detail how you installed Plexconnect using a app, webgui, manually via terminal, or using a plist. Are you sharing your internet connection from your mac?


#3

I have tried rebooting many times.

I followed the installation instructions on Github.

Not sure what you mean by "sharing your internet connection".


#4

You can share you internet connection in the network settings on your mac. So what specific instructions are you using exactly to start plexconnect. ./plexconnect.py? Have you ever ran it other then that using anything else? What does this output in terminal?


sudo lsof -i :53


Or this:


sudo lsof -i -P | grep -i "listen"


#5

I am following these instructions: https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Mac


#6

I edited my previous post. So are you launching it manually or via launchctl using that link?


#7

COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME

Python  166 root    4u  IPv4 0xb4531076011047e7      0t0  UDP 192.168.1.13:domain


#8

I edited my previous post. So are you launching it manually or via launchctl using that link?

Manually I believe. Not sure what "launchctl" is...


#9

Can you list the contents of these directories?


/Library/LaunchDaemons & /Library/LaunchAgents


You need to figure out what python process is using port 53. Can you run that other terminal command?


sudo lsof -i -P | grep -i "listen"


#10

Can you list the contents of these directories?

/Library/LaunchDaemons & /Library/LaunchAgents

You need to figure out what python process is using port 53. Can you run that other terminal command?

I don't see anything in LaunchAgents and I don't see a LaunchDaemons folder.


#11

launchd     1           root   26u  IPv6 0xb4531075ff15a43f      0t0    TCP localhost:631 (LISTEN)

launchd     1           root   27u  IPv4 0xb4531075ff15b447      0t0    TCP localhost:631 (LISTEN)

Python    167           root    4u  IPv4 0xb453107601b86447      0t0    TCP 192.168.1.13:80 (LISTEN)

Python    168           root    4u  IPv4 0xb453107601ba6447      0t0    TCP 192.168.1.13:443 (LISTEN)

Dropbox   266     **********   28u  IPv4 0xb453107604567447      0t0    TCP *:17500 (LISTEN)

Dropbox   266     **********   37u  IPv4 0xb453107604bdac5f      0t0    TCP localhost:26164 (LISTEN)

Plex\x20M 267     **********   62u  IPv4 0xb453107603cad447      0t0    TCP *:32400 (LISTEN)

Plex\x20M 267     **********   63u  IPv4 0xb453107603cb6447      0t0    TCP *:32443 (LISTEN)

Plex\x20S 275     **********    9u  IPv4 0xb453107604579447      0t0    TCP *:49216 (LISTEN)

Plex\x20D 285     **********   20u  IPv4 0xb453107604668447      0t0    TCP *:1620 (LISTEN)

Plex\x20D 285     **********   29u  IPv4 0xb453107604667c5f      0t0    TCP *:32469 (LISTEN)


#12

Looks like plexconnect is in use to me currently:


Python 167 root 4u IPv4 0xb453107601b86447 0t0 TCP 192.168.1.13:80 (LISTEN)

Python 168 root 4u IPv4 0xb453107601ba6447 0t0 TCP 192.168.1.13:443 (LISTEN)


Can you restart your mac and re-run that command again without starting plexconnect whatsoever?


#13

launchd     1           root   26u  IPv6 0x319ba2b4ae834c47      0t0    TCP localhost:631 (LISTEN)

launchd     1           root   27u  IPv4 0x319ba2b4ae835c4f      0t0    TCP localhost:631 (LISTEN)

launchctl   2           root   25u  IPv6 0x319ba2b4ae834c47      0t0    TCP localhost:631 (LISTEN)

launchctl   2           root   26u  IPv4 0x319ba2b4ae835c4f      0t0    TCP localhost:631 (LISTEN)

Python    167           root    4u  IPv4 0x319ba2b4b018b467      0t0    TCP 192.168.1.13:80 (LISTEN)

Python    168           root    4u  IPv4 0x319ba2b4b0e3ac4f      0t0    TCP 192.168.1.13:443 (LISTEN)

Dropbox   263     **********   28u  IPv4 0x319ba2b4b2eb3467      0t0    TCP *:17500 (LISTEN)

Dropbox   263     **********   37u  IPv4 0x319ba2b4b2f6ac4f      0t0    TCP localhost:26164 (LISTEN)

Plex\x20M 264     **********   61u  IPv4 0x319ba2b4b2d3ec4f      0t0    TCP *:32400 (LISTEN)

Plex\x20M 264     **********   62u  IPv4 0x319ba2b4b2f48467      0t0    TCP *:32443 (LISTEN)

Plex\x20S 271     **********    8u  IPv4 0x319ba2b4b2d92c4f      0t0    TCP *:49312 (LISTEN)

Plex\x20D 279     **********   20u  IPv4 0x319ba2b4b37e8c4f      0t0    TCP *:1108 (LISTEN)

Plex\x20D 279     **********   29u  IPv4 0x319ba2b4b37e8467      0t0    TCP *:32469 (LISTEN)

Plex\x20S 284     **********    4u  IPv4 0x319ba2b4b3e40467      0t0    TCP *:49376 (LISTEN)


#14

Ok something is loading plexconnect at boot it looks like. Install teamviewer and send me a pm with your temporary user/pw and I can try to debug for you.


#15

So after 2 years of working fine, I can't get plexconnect to work again.

This is what I get when trying to run it in terminal:

22:25:58 PlexConnect: ***
22:25:58 PlexConnect: PlexConnect
22:25:58 PlexConnect: Press CTRL-C to shut down.
22:25:58 PlexConnect: ***
22:25:58 PlexConnect: started: 22:25:58
22:25:58 PlexConnect: Version: 0.3.1+
22:25:58 PlexConnect: Python: 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
22:25:58 PlexConnect: Host OS: darwin
22:25:58 PlexConnect: IP_self: 192.168.1.66
22:25:58 DNSServer: started: 22:25:58
22:25:58 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
22:25:58 PlexConnect: DNSServer not alive. Shutting down.
22:25:58 PlexConnect: Shutting down.
22:25:58 PlexConnect: shutdown
22:25:58 PlexConnect: shutdown


#16

Ok, so I noticed that PlexConnect is now using a different IP address for some reason. I entered that address as the DNS on my aTV and was able to finally access Plex on my aTV but my library was not available. I then entered that address as one that does not require authorization and I was able to see my library, but now none of my movies have thumbnails and I can't play anything from my library...


#17

I got my thumbnails and everything to work by using a net mask when entering addresses that do not require authorization. Now I just can't get launchctl daemon to work...