Trailers unavailable after watching

Plexconnect works and is running on OSX fine (macmini) and the ATV's mostly work but sometimes i keep getting Trailers unavailable when going back to the menu after watching something. And sometimes when we go to Trailers first time when starting up the ATV it also says Trailers unavailable. Then when going back to trailers again it works.

 

Any idea on this? 

DNS is forwarded on our router to the macmini for trailers.apple.com and atv.plexconnect and those work.

The only thing i do not use is the built in DNS in plexconnect since i forward both adresses in our router.

If you use the PlexConnect DNS instead do you get the same issue?

Just wondering if your router is sometimes too slow (probably easy to tweak timeouts if that is the case).

I have to try that out today, didnt know that could cause a problem.

Just a thought and probably a good place to start troubleshooting.
I am not sure about The router config but hopefully you can just comment out the relevant lines so it is easy to out back in place.

When we set the AppleTV hard to Plexconnect (with dns enabled) it seems to work fine indeed, any idea what i could possibly do to make it work with our router? Its a Cisco RV320 router where you can just assign local DNS names to an IP and it always pings fine to the right plexconnect box so i have no idea how this is possible.

Well ATV.plexconnect is no longer needed so remove that from the config just in case that will fix it (I don’t think so though as it should just skip over if that is not being looked up but it is worth a try).

What config to remove it from? DNS or?

Also, there is no solution you can think of to make it work right with my routers' dns?

Remove ATV.plexconnect from your routers config as it is no longer used.

I am not sure why it should be such an issue but you may want to check out this and the associated commit:

https://github.com/iBaa/PlexConnect/issues/194


If you increase the timeout further does it help?

Im changing it to 60 now and testing again.

Just tested it that doesnt seem to solve it  :(

Hmm not sure what is the issue then.

Maybe Baa has some ideas, although whether it is something that can be tweaked at the PlexConnect end or if it is a router issue only I don’t know.

I guess it needs to be on Plexconnect side since all computers ping constantly to the right IP due to the router set hard to that ip.

Even when i keep pinging over and over it goes to the right iP.

Do you see any activity in the PlexConnect logs once this issue creeps up?

I am trying to understand where the communication is lost... I remember one incident where my PlexConnect was unable to find the PMS after some time. PlexGDM was pretty much dead in the water - I never understood what went wrong, though.

The logs give nothing it seems but im trying another possible solution today, ill post back when i know it for sure :)

Same problem on my end actually. Sometimes a restart is required, and sometimes I only need to press play on the content (happens on both tv shows and movies) twice. I figured it was due to my disks spinning up or something. 

For the record, my DNS is set to point directly on my server mac mini, not going through anything "out of the ordinary". Pure out of the box experience for me. 

Will check logs when it happens next time to see if there are any errors or weird stuff going on.

So far i have seen that when you just leave DNS enabled in plexconnect but keep your ATV set to your routers DNS which is then forwarded to the plexconnect IP it seems to work fine, when you disable the dns on plexconnect it works sometimes. Doing more tests today.

Hmm that didnt fix it it seems, even sometimes when i set it to the plexconnect dns very sometimes it comes up with the real trailers stuff from apple instead of plexconnect, i have no idea how that is even possible.... The only thing i see in the log is:

23:22:47 PlexAPI: Error loading response XML from Plex Media Server
23:22:47 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line 
                
                  
Traceback (most recent call last):
  File "/Users/admin/PlexConnect/XMLConverter.py", line 501, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "/Users/admin/PlexConnect/XMLConverter.py", line 843, in TREE_ADDXML
    self.PMSroot[tag] = PMS.getroot()  # store additional PMS XML
AttributeError: 'bool' object has no attribute 'getroot'
 
In fact, right now i keep getting the real Trailers app from Apple, even when its set to the Plexconnect DNS... WTF.
After rebooting the ATV like 5x and then going to Trailers and back and Trailers and back suddenly it came again with Plexconnect.

This is getting weird, isn't it?

The error you are seeing might get caused, when PMS is not answering with an XML file - timeout or similar. It shouldn't, I have no explanation why it pops up, though.

Technically it should show an error description on the aTV... wait - this is during TREE_ADDXML? That means, we got a real XML from PMS (well, or didn't ask for one...) and subsequent requests get cancelled out? I don't understand...

same thing is happening to me.  Everything is running on my mac mini using Mavericks 10.9.1

ATV2

Plexconnect downloaded 5 Jan

ATV firmware V6 of ATV2 software

IP of both PMS server and local machine running Plex connect is 10.0.1.5

LOG file:

17:54:49 PlexConnect: started: 17:54:49
17:54:49 PlexConnect: Version: 0.3.1+
17:54:49 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)]
17:54:49 PlexConnect: Host OS: darwin
17:54:49 PlexConnect: IP_self: 10.0.1.5
17:54:49 DNSServer: started: 17:54:49
17:54:49 DNSServer: ***
17:54:49 DNSServer: DNSServer: Serving DNS on 10.0.1.5 port 53.
17:54:49 DNSServer: ***
17:54:49 WebServer: started: 17:54:49
17:54:49 WebServer: ***
17:54:49 WebServer: WebServer: Serving HTTP on 10.0.1.5 port 80.
17:54:49 WebServer: ***
17:54:49 WebServer: started: 17:54:49
17:54:49 WebServer: ***
17:54:49 WebServer: WebServer: Serving HTTPS on 10.0.1.5 port 443.
17:54:49 WebServer: ***
19:11:06 ATVSettings: add section C07F4WZWDDR5
19:11:06 PlexAPI: ***
19:11:06 PlexAPI: looking up Plex Media Server
19:11:06 PlexAPI: ***
19:11:07 PlexAPI: GDM: Servers discovered: 1
19:11:07 PlexAPI: Servers (local+MyPlex): 1
22:52:16 PlexAPI: Error loading response XML from Plex Media Server
22:52:17 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line 
    
    
    {{ADDXML(RecentlyAdded::recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}
    {{ADDXML(RecentlyViewedEpisodes::recentlyViewed?X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}
 
    {{VAR(items:NoKey:FALSE)}}  
 
    
Traceback (most recent call last):
  File "/Applications/PlexConnect-master/XMLConverter.py", line 501, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 843, in TREE_ADDXML
    self.PMSroot[tag] = PMS.getroot()  # store additional PMS XML
AttributeError: 'bool' object has no attribute 'getroot'
 
22:52:36 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 
          
          
Traceback (most recent call last):
  File "/Applications/PlexConnect-master/XMLConverter.py", line 501, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 802, in TREE_CUT
    key, leftover, dfltd = self.getKey(src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 636, in getKey
    el, srcXML, attrib = self.getBase(src, srcXML, attrib)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 700, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'
 
22:52:36 XMLConverter: XML_ExpandNode - Error in cmd CUT, line 
          
          
Traceback (most recent call last):
  File "/Applications/PlexConnect-master/XMLConverter.py", line 501, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 802, in TREE_CUT
    key, leftover, dfltd = self.getKey(src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 636, in getKey
    el, srcXML, attrib = self.getBase(src, srcXML, attrib)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 700, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'
 
22:52:36 XMLConverter: XML_ExpandNode - Error in cmd COPY, line 
                  
                  {{VAR(items:NoKey:TRUE)}}  
                  
Traceback (most recent call last):
  File "/Applications/PlexConnect-master/XMLConverter.py", line 501, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 762, in TREE_COPY
    src, srcXML, tag = self.getBase(src, srcXML, tag)
  File "/Applications/PlexConnect-master/XMLConverter.py", line 700, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'
 
20:02:20 PlexAPI: ***
20:02:20 PlexAPI: looking up Plex Media Server
20:02:20 PlexAPI: ***
20:02:21 PlexAPI: GDM: Servers discovered: 1
20:02:21 PlexAPI: Servers (local+MyPlex): 1
20:06:17 PlexAPI: ***
20:06:17 PlexAPI: looking up Plex Media Server
20:06:17 PlexAPI: ***
20:06:18 PlexAPI: GDM: Servers discovered: 1
20:06:18 PlexAPI: Servers (local+MyPlex): 1
19:48:40 PlexAPI: ***
19:48:40 PlexAPI: looking up Plex Media Server
19:48:40 PlexAPI: ***
19:48:41 PlexAPI: GDM: Servers discovered: 2
19:48:41 PlexAPI: Servers (local+MyPlex): 2
20:11:55 ATVSettings: add section DCYGF9ZJDDR5
20:11:55 PlexAPI: ***
20:11:55 PlexAPI: looking up Plex Media Server
20:11:55 PlexAPI: ***
20:11:57 PlexAPI: GDM: Servers discovered: 1
20:11:57 PlexAPI: Servers (local+MyPlex): 1
 
 
Settings.cfg:
[PlexConnect]
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
enable_dnsserver = True
logpath = .
ip_pms = 192.168.178.10
enable_plexgdm = True
hosttointercept = trailers.apple.com
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True
 

Yep I also keep having the problem of it randomly showing me trailers unavailable, sometimes i can keep watching show after show and then suddenly BANG the trailers unavailable shows up.

I thought I was the only one having this problem :P