Yet another problem loading content

Hey guys,

 

I have been through the whole setup and after going into trailers all my files are there, it displays all the metadata to but whenever I try to play a file it display's the dreaded 'An error occurred loading this content'

 

I'm running Mac OSX 10.9 and an Apple TV 3, just upgraded to a Plex Pass to.

 

Here's a copy and pass of my terminal.

 

Last login: Fri Jan  3 16:20:48 on ttys000

Macintosh-2:PlexConnect-master jarrodvertigan$ sudo ./PlexConnect.py

Password:

21:22:20 PlexConnect: ***

21:22:20 PlexConnect: PlexConnect

21:22:20 PlexConnect: Press CTRL-C to shut down.

21:22:20 PlexConnect: ***

21:22:20 PlexConnect: started: 21:22:20

21:22:20 PlexConnect: Version: 0.3.1+

21:22:20 PlexConnect: Python: 2.7.5 (default, Aug 25 2013, 00:04:04) 

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

21:22:20 PlexConnect: Host OS: darwin

21:22:20 PlexConnect: IP_self: 192.168.1.50

21:22:20 DNSServer: started: 21:22:20

21:22:20 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use

21:22:20 PlexConnect: DNSServer not alive. Shutting down.

21:22:20 PlexConnect: Shutting down.

21:22:20 PlexConnect: shutdown

Macintosh-2:PlexConnect-master jarrodvertigan$ sudo ./PlexConnect.py

21:26:58 PlexConnect: ***

21:26:58 PlexConnect: PlexConnect

21:26:58 PlexConnect: Press CTRL-C to shut down.

21:26:58 PlexConnect: ***

21:26:58 PlexConnect: started: 21:26:58

21:26:58 PlexConnect: Version: 0.3.1+

21:26:58 PlexConnect: Python: 2.7.5 (default, Aug 25 2013, 00:04:04) 

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

21:26:58 PlexConnect: Host OS: darwin

21:26:58 PlexConnect: IP_self: 192.168.1.50

21:26:58 DNSServer: started: 21:26:58

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

21:26:58 PlexConnect: DNSServer not alive. Shutting down.

21:26:58 PlexConnect: Shutting down.

21:26:58 PlexConnect: shutdown

Macintosh-2:PlexConnect-master jarrodvertigan$ 

 
Any suggestions would be greatly appreciated.
 
 

The log shows something is using port 53, you need to find out what this is and address it so plex connect can use port 52 for DNS, if you have a DNS server running on the machine, the you will need to look at the advanced setup ad use it to redirect the required domains

Although with this error you would not get any of your media on the ATV.

Thanks for the tip, i'v definitely got the media files and all  the metadata.

Sorry but I not too experienced with this sort of thing, is there an easy way to check what may be on Port 53?

I found a guide on another site, definitely not running a dns server or bind, still not sure as to what is taking up Port 53

Since you DO actually get some metadata and stuff BUT port 53 is in use you're probably running PlexConnect TWICE (or even more). That can cause all sort of problems (I would think)

Don't know about MAC, but on Windows you can check for python.exe processes.

I had the same issue with my iMac showing same error of using Port 53 and I don't run a DNS Server at all.

I fixed it by rebooting and restarting PlexConnect and all was fine, so give that a try :)

Okay so I shut down Plex and restarted it.

When I launched terminal things started looking a bit better, this was the results.

Last login: Fri Jan  3 22:21:16 on ttys000

Macintosh-2:PlexConnect-master jarrodvertigan$ sudo ./PlexConnect.py

Password:

09:35:00 PlexConnect: ***

09:35:00 PlexConnect: PlexConnect

09:35:00 PlexConnect: Press CTRL-C to shut down.

09:35:00 PlexConnect: ***

09:35:00 PlexConnect: started: 09:35:00

09:35:00 PlexConnect: Version: 0.3.1+

09:35:00 PlexConnect: Python: 2.7.5 (default, Aug 25 2013, 00:04:04) 

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

09:35:00 PlexConnect: Host OS: darwin

09:35:00 PlexConnect: IP_self: 192.168.1.53

09:35:00 DNSServer: started: 09:35:00

09:35:00 DNSServer: ***

09:35:00 DNSServer: DNSServer: Serving DNS on 192.168.1.53 port 53.

09:35:00 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.53

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

09:35:00 DNSServer: forward other to higher level DNS: 8.8.8.8

09:35:00 DNSServer: ***

09:35:00 WebServer: started: 09:35:00

09:35:00 WebServer: ***

09:35:00 WebServer: WebServer: Serving HTTP on 192.168.1.53 port 80.

09:35:00 WebServer: ***

09:35:01 WebServer: started: 09:35:01

09:35:01 WebServer: ***

09:35:01 WebServer: WebServer: Serving HTTPS on 192.168.1.53 port 443.

09:35:01 WebServer: ***

 

Now when I go into trailers it can't load anything at all, not even metadata, so I restarted the Apple TV, now it only shows two channels, 'Computers' and 'Settings'.

 

This is really starting to do my head in.

 

 

 

Now

Here are my setup details.

Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software): ATV 3  5.3  (6105)
The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 192.168.1.50
The device and operating system (including version number) that PlexConnect is installed on: MAC OSX 10.9
The local IP address of the device that PlexConnect is installed on: 192.168.1.50
The device and operating system (including version number) that the Plex media server (PMS) is installed on: MAC OSX 10.9
The Plex media server (PMS) version number you are running (do not put 'latest'): Version 0.9.8.18.290-11b7fdd
The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.1.50
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. Plex Connect-Master  2 January 2014 23:21 (AEST)

I found on another thread a line of code to check what's on Port 53, this is the result.

Macintosh-2:~ jarrodvertigan$ sudo lsof -i -P

COMMAND    PID           USER   FD   TYPE             DEVICE SIZE/OFF   NODE NAME

launchd      1           root   19u  IPv4 0xd74f6520bc33a235      0t0    UDP *:137

launchd      1           root   20u  IPv4 0xd74f6520bc33a04d      0t0    UDP *:138

launchd      1           root   26u  IPv6 0xd74f6520bcaf11f5      0t0    TCP *:515 (LISTEN)

launchd      1           root   27u  IPv4 0xd74f6520bcaf31fd      0t0    TCP *:515 (LISTEN)

launchd      1           root   28u  IPv6 0xd74f6520bcaf0db5      0t0    TCP localhost:631 (LISTEN)

launchd      1           root   29u  IPv4 0xd74f6520bcaf2a15      0t0    TCP localhost:631 (LISTEN)

UserEvent   11           root    4u  IPv4 0xd74f6520bdf77dfd      0t0    UDP *:*

UserEvent   11           root    8u  IPv4 0xd74f6520bc3396c5      0t0    UDP *:*

configd     17           root   16u  IPv6 0xd74f6520bdfb3235      0t0 ICMPV6 *:*

mDNSRespo   37 _mdnsresponder    8u  IPv4 0xd74f6520bdf77a2d      0t0    UDP *:5353

mDNSRespo   37 _mdnsresponder    9u  IPv6 0xd74f6520bdf77845      0t0    UDP *:5353

mDNSRespo   37 _mdnsresponder   15u  IPv4 0xd74f6520bc33859d      0t0    UDP *:62065

mDNSRespo   37 _mdnsresponder   17u  IPv6 0xd74f6520bdf77fe5      0t0    UDP *:62065

locationd   42     _locationd    5u  IPv4 0xd74f6520bc337c15      0t0    UDP *:*

blued       55           root    4u  IPv4 0xd74f6520bc339e65      0t0    UDP *:*

apsd        58           root   14u  IPv4 0xd74f6520bc6c71fd      0t0    TCP 192.168.1.53:62458->17.132.254.12:5223 (ESTABLISHED)

apsd        58           root   15u  IPv4 0xd74f6520bc6c71fd      0t0    TCP 192.168.1.53:62458->17.132.254.12:5223 (ESTABLISHED)

airportd    60           root   10u  IPv6 0xd74f6520bdf798ad      0t0    UDP *:*

airportd    60           root   21u  IPv4 0xd74f6520bc339a95      0t0    UDP *:*

airportd    60           root   22u  IPv4 0xd74f6520bc3398ad      0t0    UDP *:*

airportd    60           root   25u  IPv4 0xd74f6520bc337dfd      0t0    UDP *:*

airportd    60           root   28u  IPv4 0xd74f6520bc337a2d      0t0    UDP *:*

airportd    60           root   29u  IPv4 0xd74f6520bc337845      0t0    UDP *:*

airportd    60           root   31u  IPv4 0xd74f6520bc33765d      0t0    UDP *:*

ntpd       122           root   20u  IPv4 0xd74f6520bc3394dd      0t0    UDP *:123

ntpd       122           root   21u  IPv6 0xd74f6520bc339c7d      0t0    UDP *:123

ntpd       122           root   22u  IPv6 0xd74f6520bc33910d      0t0    UDP localhost:123

ntpd       122           root   23u  IPv4 0xd74f6520bc338f25      0t0    UDP localhost:123

ntpd       122           root   24u  IPv6 0xd74f6520bc338b55      0t0    UDP localhost:123

ntpd       122           root   25u  IPv6 0xd74f6520bc50c59d      0t0    UDP macintosh-2.local:123

ntpd       122           root   26u  IPv4 0xd74f6520bd4c710d      0t0    UDP 192.168.1.53:123

UserEvent  145 jarrodvertigan    4u  IPv4 0xd74f6520bdf79a95      0t0    UDP *:*

SystemUIS  168 jarrodvertigan    9u  IPv4 0xd74f6520bdf7765d      0t0    UDP *:*

Finder     169 jarrodvertigan    8u  IPv4 0xd74f6520c062d1fd      0t0    TCP localhost:63541->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   10u  IPv4 0xd74f6520bd04fa15      0t0    TCP localhost:63542->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   20u  IPv4 0xd74f6520c062d1fd      0t0    TCP localhost:63541->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   21u  IPv4 0xd74f6520bd04fa15      0t0    TCP localhost:63542->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   22u  IPv4 0xd74f6520bdf8da15      0t0    TCP localhost:63543->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   23u  IPv4 0xd74f6520bc64c1fd      0t0    TCP localhost:63544->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   24u  IPv4 0xd74f6520bdf8da15      0t0    TCP localhost:63543->localhost:26164 (ESTABLISHED)

Finder     169 jarrodvertigan   25u  IPv4 0xd74f6520bc64c1fd      0t0    TCP localhost:63544->localhost:26164 (ESTABLISHED)

sharingd   200 jarrodvertigan   12u  IPv4 0xd74f6520bc50bfe5      0t0    UDP *:*

Dropbox    270 jarrodvertigan   15u  IPv4 0xd74f6520bc2c71fd      0t0    TCP 192.168.1.53:62466->snt-re3-7a.sjc.dropbox.com:80 (ESTABLISHED)

Dropbox    270 jarrodvertigan   21u  IPv4 0xd74f6520bc378a15      0t0    TCP localhost:26164->localhost:63541 (ESTABLISHED)

Dropbox    270 jarrodvertigan   23u  IPv4 0xd74f6520bc2c6a15      0t0    TCP localhost:26164->localhost:63542 (ESTABLISHED)

Dropbox    270 jarrodvertigan   26u  IPv4 0xd74f6520bdf794dd      0t0    UDP *:17500

Dropbox    270 jarrodvertigan   29u  IPv4 0xd74f6520c0a8aa15      0t0    TCP *:17500 (LISTEN)

Dropbox    270 jarrodvertigan   30u  IPv4 0xd74f6520bf5e0a15      0t0    TCP localhost:26164->localhost:63543 (ESTABLISHED)

Dropbox    270 jarrodvertigan   31u  IPv4 0xd74f6520c185ea15      0t0    TCP localhost:26164->localhost:63544 (ESTABLISHED)

Dropbox    270 jarrodvertigan   37u  IPv4 0xd74f6520c18961fd      0t0    TCP localhost:26164 (LISTEN)

CIJScanne  334 jarrodvertigan    4u  IPv4 0xd74f6520bc338785      0t0    UDP *:63707

CIJScanne  334 jarrodvertigan    5u  IPv4 0xd74f6520bc4634dd      0t0    UDP *:59365

Python     546           root    4u  IPv4 0xd74f6520bc50cb55      0t0    UDP 192.168.1.50:53

Python     546           root    7u  IPv4 0xd74f6520bc50c96d      0t0    UDP *:63347

Python     547           root    4u  IPv4 0xd74f6520bf5e11fd      0t0    TCP 192.168.1.50:80 (LISTEN)

Python     548           root    4u  IPv4 0xd74f6520bf6c81fd      0t0    TCP 192.168.1.50:443 (LISTEN)

cupsd     1116           root   11u  IPv6 0xd74f6520bcaf0db5      0t0    TCP localhost:631 (LISTEN)

cupsd     1116           root   12u  IPv4 0xd74f6520bcaf2a15      0t0    TCP localhost:631 (LISTEN)

cupsd     1116           root   16u  IPv4 0xd74f6520bc4dea15      0t0    TCP *:631 (LISTEN)

cupsd     1116           root   17u  IPv6 0xd74f6520bcaf0975      0t0    TCP *:631 (LISTEN)

com.apple 1165 jarrodvertigan   58u  IPv4 0xd74f6520bc6c6a15      0t0    TCP 192.168.1.53:63524->channelproxy-shv-13-prn1.facebook.com:443 (ESTABLISHED)

com.apple 1165 jarrodvertigan   63u  IPv4 0xd74f6520bc6c6a15      0t0    TCP 192.168.1.53:63524->channelproxy-shv-13-prn1.facebook.com:443 (ESTABLISHED)

netbiosd  1226       _netbios    3u  IPv4 0xd74f6520bc33a04d      0t0    UDP *:138

netbiosd  1226       _netbios    4u  IPv4 0xd74f6520bc33a235      0t0    UDP *:137

Python    1290           root    4u  IPv4 0xd74f6520bc46404d      0t0    UDP 192.168.1.53:53

Python    1290           root    7u  IPv4 0xd74f6520bc463e65      0t0    UDP *:*

Python    1291           root    4u  IPv4 0xd74f6520bc71fa15      0t0    TCP 192.168.1.53:80 (LISTEN)

Python    1292           root    4u  IPv4 0xd74f6520bc3791fd      0t0    TCP 192.168.1.53:443 (LISTEN)

iTunes    1300 jarrodvertigan   31u  IPv4 0xd74f6520bc76a1fd      0t0    TCP *:3689 (LISTEN)

iTunes    1300 jarrodvertigan   32u  IPv6 0xd74f6520bcaed675      0t0    TCP *:3689 (LISTEN)

iTunes    1300 jarrodvertigan   43u  IPv4 0xd74f6520bc5e61fd      0t0    TCP 192.168.1.53:3689->192.168.1.52:49161 (CLOSE_WAIT)

iTunes    1300 jarrodvertigan   45u  IPv4 0xd74f6520bc64ba15      0t0    TCP 192.168.1.53:3689->192.168.1.52:49160 (CLOSE_WAIT)

iTunes    1300 jarrodvertigan   47u  IPv6 0xd74f6520becee675      0t0    TCP macintosh-2.local:3689->apple-tv.local:49187 (CLOSE_WAIT)

iTunes    1300 jarrodvertigan   49u  IPv6 0xd74f6520bcaf0535      0t0    TCP macintosh-2.local:3689->apple-tv.local:49184 (CLOSE_WAIT)

com.apple 1451 jarrodvertigan   15u  IPv4 0xd74f6520c07911fd      0t0    TCP 192.168.1.53:63491->173.192.82.194-static.reverse.softlayer.com:80 (ESTABLISHED)

com.apple 1451 jarrodvertigan   17u  IPv4 0xd74f6520c07911fd      0t0    TCP 192.168.1.53:63491->173.192.82.194-static.reverse.softlayer.com:80 (ESTABLISHED)

Plex\x20M 1466 jarrodvertigan   39u  IPv4 0xd74f6520bc7c51fd      0t0    TCP *:32400 (LISTEN)

Plex\x20M 1466 jarrodvertigan   40u  IPv4 0xd74f6520bdf8e1fd      0t0    TCP *:32443 (LISTEN)

Plex\x20M 1466 jarrodvertigan   62u  IPv4 0xd74f6520c04bf96d      0t0    UDP *:32414

Plex\x20M 1466 jarrodvertigan   67u  IPv4 0xd74f6520bc3383b5      0t0    UDP *:32410

Plex\x20M 1466 jarrodvertigan   69u  IPv4 0xd74f6520bdf7a04d      0t0    UDP *:32413

Plex\x20M 1466 jarrodvertigan   70u  IPv4 0xd74f6520bdf79e65      0t0    UDP localhost:52073

Plex\x20M 1466 jarrodvertigan   71u  IPv4 0xd74f6520bdf77c15      0t0    UDP 192.168.1.53:50370

Plex\x20M 1466 jarrodvertigan   72u  IPv4 0xd74f6520bc606a95      0t0    UDP localhost:58335

Plex\x20M 1466 jarrodvertigan   73u  IPv4 0xd74f6520bdf77475      0t0    UDP 192.168.1.53:50888

Plex\x20S 1467 jarrodvertigan   10u  IPv4 0xd74f6520bd0501fd      0t0    TCP *:63219 (LISTEN)

Plex\x20D 1468 jarrodvertigan   15u  IPv4 0xd74f6520bc50bdfd      0t0    UDP *:1900

Plex\x20D 1468 jarrodvertigan   18u  IPv4 0xd74f6520bc769a15      0t0    TCP *:1328 (LISTEN)

Plex\x20D 1468 jarrodvertigan   21u  IPv4 0xd74f6520bdf7a235      0t0    UDP *:12743

Plex\x20D 1468 jarrodvertigan   24u  IPv4 0xd74f6520bc50bc15      0t0    UDP *:11693

Plex\x20D 1468 jarrodvertigan   27u  IPv4 0xd74f6520be22fa15      0t0    TCP *:32469 (LISTEN)

Plex\x20D 1468 jarrodvertigan   30u  IPv4 0xd74f6520c04c06c5      0t0    UDP *:61261

Plex\x20D 1468 jarrodvertigan   33u  IPv4 0xd74f6520c0581e65      0t0    UDP *:62140

Plex\x20D 1468 jarrodvertigan   43u  IPv4 0xd74f6520bf6c7a15      0t0    TCP localhost:63220->localhost:63219 (CLOSE_WAIT)

Plex\x20D 1468 jarrodvertigan   62u  IPv4 0xd74f6520c04bf96d      0t0    UDP *:32414

Plex\x20D 1468 jarrodvertigan   63u  IPv4 0xd74f6520bc7201fd      0t0    TCP localhost:32400->localhost:63215 (CLOSED)

Plex\x20D 1468 jarrodvertigan   64u  IPv4 0xd74f6520be2301fd      0t0    TCP localhost:32400->localhost:63216 (CLOSED)

Plex\x20D 1468 jarrodvertigan   65u  IPv4 0xd74f6520c1895a15      0t0    TCP localhost:32400->localhost:63217 (CLOSED)

Plex\x20D 1468 jarrodvertigan   66u  IPv4 0xd74f6520c062ca15      0t0    TCP localhost:32400->localhost:63218 (CLOSED)

Macintosh-2:~ jarrodvertigan$ 

 
 
 
 
May apologies for the massive slabs of code I'm copy/pasting, I don't really know how to read it and I just don't want to miss anything.
From what I can tell here nothing is clogging up Port 53 though??

Now you have it working we don’t need te port 53 information.


You say this;

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


But he log says


09:35:00 PlexConnect: IP_self: 192.168.1.53


So your ATV should have its DNS pointed to 192.168.1.53 not 192.168.1.50

Thanks Drewbie I just noticed that, for some reason the DHCP reservation isn't working.

Since resetting plex and the apple tv I'm having issues with Port 53 again! 

SOunds like you are not closing plexconnect correctly thus it is holding open its connection to port 53.

Reboot your machine and make sure when closing the plexconnect command window to always user CTRL-C not just close trhe window.  (ALternatively to rebooting kill all python processes in activity monitor)

Finally I got it working!!

I think it was a combination of things and when I had one thing working the other wasn't.

It seems like the Port 53 thing had something to do with Plex, despite killing the application it still didn't clear it but once I rebooted the Mac it seemed to fix it. 

But whenever the Port was clear I think that was when my DNS settings weren't right, well they were but for whatever reason my MAC wouldn't (and still won't) lock into my DHCP reservation on my router, something to work on but I can live with that for now.

Last step was I just redid everything fresh, restored the Apple TV to original setting, deleted Plex and reinstalled it and deleted and re-installed Plex Connect and I just did the whole process from the start.

Many, many, many thanks to drewbie, freaknl and petsue for holding my hand through the process, It's probably straight forward for you guys but It's quite daunting for someone that knows bugger all about programming!

Now I'm off to go watch some movies!

Cheers and thanks a lot.

Jezza81

Glad you got it working.


On the DHCP reservation just make sure you have entered the MAC address correctly (or change from a dhcp resevation to having a static ip on the machine (not a good idea if it’s a laptop you take to multiple location)

Glad you got it working.

On the DHCP reservation just make sure you have entered the MAC address correctly (or change from a dhcp resevation to having a static ip on the machine (not a good idea if it's a laptop you take to multiple location)

I'll look into it but the laptop very rarely leaves the house, maybe once a year if i'm away on holidays.

MAC address is definitely right, I checked that.

Untill I nut out how to reserve it or have a static IP, every time I turn it on i'll have to check it matches up with the ATV

Or just use a static ip on the machine, as you say it nevers leaves the house anyways…