Apple TV stuck on Accessing Trailers

So, I'm having this issue since the first day I set up my Apple TV

I have checked the terminal window and it gives me a bunch of errors, which I googled and haven't found a solution

It forces me to reboot my computer and works again until I update my library or my internet drops (My computer auto connects and is accessible from the Apple TV)

Funny thing is that only movies are inaccessible, TV Shows work (takes like 1 minute to load)

Here's the log: http://pastebin.com/7yzmsVTS

Here's my info:

Apple TV 3, Firmware 6.0.2

DNS: 192.168.1.2

IP Address: 192.168.1.2

Mac Mini, Mac OS X 10.9.2

PMS: Version 0.9.9.7.429-f80a8d6

IP Address: 192.168.1.2

PlexConnect: 0.3.1+

Settings.cfg:

[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 = .
 

 

 

Any help would be appreciated

Thanks in advance!

If you are using the latest plexconnect and pms I would recommend backing up your certs and reinstalling both of them. I would also reinstall python. If none of that works I would re-install your os as it may be corrupt. How long ago was the os installed? Have you been constantly updating your os to new versions of OSX?

Seeing the "bunch of errors" might help. :)

Old version of PlexConnect - as far as I can see it happens when you select "Trailer" on the PrePlay Screens. There was a change in youtube's API a couple of weeks ago - try updating and report back if issue still persists.

wahlman.j: Yes, I'm using the latest versions, I always try to be up-to-date on everything

Python comes preinstalled in OS X (2.7), so I never updated it or changed anything (I read newer versions don't work, so I stuck wit that)

I did a clean install when 10.9 (Mavericks) came out, since then I only updated twice (10.9.1 and 10.9.2)

Unsoluble: You can see them the log attached, from what I read, they are xml and pyton errors

Baa: I updated a few weeks ago, I saw you introduced a few changes to the Movies and TV Shows sections, also fixed some of the subtitles not working (I was able to select them but they never showed when playing a movie or TV Show), will re-download and see if that fixes it

Thanks for the response!  :)

Quick update: I re-downloaded PlexConnect and still the same issue

 

14:25:53 DNSServer: DNS request received!

14:25:53 DNSServer: Source: ('192.168.1.128', 52161)

14:25:53 DNSServer: Domain: itunes.apple.com

14:25:53 DNSServer: ***forward request

14:25:53 DNSServer: -> DNS response from higher level

14:26:03 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line 

    

    

    {{ADDXML(RecentlyReleased::newest)}}

 

    {{VAR(items:NoKey:FALSE)}}  

 

    

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 912, in TREE_ADDXML

    PMS = PlexAPI.getXMLFromPMS(self.PMS_baseURL, path, self.options, auth_token)

  File "/Applications/PlexConnect-master/PlexAPI.py", line 363, in getXMLFromPMS

    XML = etree.parse(response)

  File "", line 62, in parse

  File "", line 38, in parse

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read

    data = self._sock.recv(left)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 567, in read

    s = self.fp.read(amt)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read

    data = self._sock.recv(left)

timeout: timed out

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line 

    

    

    

 

    {{VAR(items:NoKey:FALSE)}}  

 

    

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 912, in TREE_ADDXML

    PMS = PlexAPI.getXMLFromPMS(self.PMS_baseURL, path, self.options, auth_token)

  File "/Applications/PlexConnect-master/PlexAPI.py", line 363, in getXMLFromPMS

    XML = etree.parse(response)

  File "", line 62, in parse

  File "", line 38, in parse

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read

    data = self._sock.recv(left)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 567, in read

    s = self.fp.read(amt)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 380, in read

    data = self._sock.recv(left)

timeout: timed out

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 

          

          

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 878, in TREE_CUT

    key, leftover, dfltd = self.getKey(src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 718, in getKey

    el, srcXML, attrib = self.getBase(src, srcXML, attrib)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyAdded'

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 

          

          

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 878, in TREE_CUT

    key, leftover, dfltd = self.getKey(src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 718, in getKey

    el, srcXML, attrib = self.getBase(src, srcXML, attrib)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyAdded'

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd COPY, line 

                  

                  {{VAR(items:NoKey:TRUE)}}  

                  

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 838, in TREE_COPY

    src, srcXML, tag = self.getBase(src, srcXML, tag)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyAdded'

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 

          

          

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 878, in TREE_CUT

    key, leftover, dfltd = self.getKey(src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 718, in getKey

    el, srcXML, attrib = self.getBase(src, srcXML, attrib)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyReleased'

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 

          

          

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 878, in TREE_CUT

    key, leftover, dfltd = self.getKey(src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 718, in getKey

    el, srcXML, attrib = self.getBase(src, srcXML, attrib)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyReleased'

 

14:26:23 XMLConverter: XML_ExpandNode - Error in cmd COPY, line 

                  

                  {{VAR(items:NoKey:TRUE)}}  

                  

Traceback (most recent call last):

  File "/Applications/PlexConnect-master/XMLConverter.py", line 581, in XML_ExpandNode

    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 838, in TREE_COPY

    src, srcXML, tag = self.getBase(src, srcXML, tag)

  File "/Applications/PlexConnect-master/XMLConverter.py", line 776, in getBase

    src = self.PMSroot[srcXML]

KeyError: 'RecentlyReleased'

 

14:26:23 WebServer: serving .xml: /library/sections/4/all

14:26:43 WebServer: serving /js/utils.js

14:26:43 DNSServer: DNS request received!

14:26:43 DNSServer: Source: ('192.168.1.128', 50692)

14:26:43 DNSServer: Domain: trailers.apple.com

Different Exceptions, if I remember correctly. The later log indicates issues with a missing response from PMS...

Did you restart PlexConnect after downloading / exit PlexConnect on aTV before entering Trailers again?

Yes, I even restarted my computer

Once I restarted it worked again, but as soon as I updated my library to test if it was fixed, it gave me the same error

I have tried shutting PlexConnect down before updating my library and turning it back on after it, same issue

>>same error

What same error? The one from first post or last?

What do you mean when saying "updated my library"?

Same error: 

14:26:03 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line

And everything that comes after that

Updating my library, see the screenshot attached

I would uninstall plex media server if it’s causing issues then reinstall it and add back your library and channels:


https://plexapp.zendesk.com/hc/en-us/articles/201941078-Uninstall-Plex-Media-Server

Can I suggest you try disabling whatever it is that's changing your system font, perhaps? That's not exactly a clean OS you're running...

wahlman.j: Will do that

Unsoluble: there's nothing to disable since I replaced the system font, also, why would changing the system font interfere with it? I've been changing my system font in Linux and Windows for ages and never encountered any problem, same thing with Mac, I've been using Mac OS X for 6 years now, never had any issue  :wacko:

Is it possible you have added some media that had non standard characters in file name of meta data that is causing the issue?

I only suggest it because changing the system font is beneath the normal layer of user-level customization, and indicates that you have a propensity to mess around with things you aren't "supposed to" — not judging, just know from experience that unexplained errors that seem to be unique to a client can often be traced back to this sort of thing. Fixing stuff like this is often easiest with a relatively hack-free OS.

But if you're confident that nothing you've ever done below the standard operating space is likely to be interfering here, then sure, we'll look elsewhere. :)

drewbie: That's a good one. I had some movies in ISO-8859-1 charset, that is: ñ, á, é, í, ó and ú (Not because they were wrong, just because some movies titles aren't in english).

I renamed them and uninstalled PMS, re-added everything and updated my library while running PlexConnect, so far no errors

So I don't know which one seems to have fixed it, but from now on I'll be more cautious regarding media filenames (except for that, my library is organised following the wiki)

Unsoluble: I know you have to cover every possible issue, but as far as I know, fonts are part of the UI and have nothing to do with system behaviour. Also, Plex Home Theater works perfectly on 2 clients and Plex works perfectly on my iPad and iPhone

I could be wrong, and yes, I like to mess with things, but I don't change things randomly and out of boredom. Also I keep backups of everything I changed (And system fonts are the only thing I've changed to be honest)

Thank you guys for your help, will test a few days to see if it's completely fixed

Happy it’s working, I thought baa, roidy and the gang had addressed all the issues with those characters, but I asked because I had seen reports of issues in the past.


It would be good if you added back on character at a time and see which breaks it, so the guys can investigate a solution

Happy it's working, I thought baa, roidy and the gang had addressed all the issues with those characters, but I asked because I had seen reports of issues in the past.

It would be good if you added back on character at a time and see which breaks it, so the guys can investigate a solution


Yep, if you add another file that breaks it and we know what it is then we can fix it, glad you got it working though :)

Will try to replicate the error renaming one movie, one character at a time

I'll post back with the results  :)

Sorry guys, but the error is back...

And I haven't changed anything, so it means it's not fixed