PlexConnect icon indicating copy to clipboard operation
PlexConnect copied to clipboard

Trailer not available when waking up from sleep

Open cferron opened this issue 11 years ago • 24 comments

ATV 3.0 / PMS 0.9.8.17.282 / PlexConnect 0.3

I had trailers not available message here and then on ATV. The fi for it so far is:

  • Restart Plexconnect deamon with the restart.bash script.
  • Restart the AppleTV using remote menu + down key combination.

Any idea how this could be fixed? kinda of annoying.

Thanks

cferron avatar Dec 22 '13 18:12 cferron

Can pinpoint to ONE of your two options for the fix? Are both of those steps needed?

iBaa avatar Dec 22 '13 19:12 iBaa

Yes both seemed to be needed.... Hard to determine the exact sequence.

Also using the restart script once makes plexconnect to shudown, running the script twice is necesary.

14:22:31 PlexConnect: started: 14:22:31 14:22:31 PlexConnect: Version: 0.3 14:22:31 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)] 14:22:31 PlexConnect: Host OS: darwin 14:22:31 PlexConnect: IP_self: 192.168.1.2 14:22:31 DNSServer: started: 14:22:31 14:22:31 DNSServer: *** 14:22:31 DNSServer: DNSServer: Serving DNS on 192.168.1.2 port 53. 14:22:31 DNSServer: *** 14:22:31 WebServer: started: 14:22:31 14:22:31 WebServer: Failed to connect to HTTP on 192.168.1.2 port 80: [Errno 48] Address already in use 14:22:31 PlexConnect: WebServer not alive. Shutting down. 14:22:31 PlexConnect: Shutting down. 14:22:32 WebServer: Shutting down. 14:22:32 WebServer: Shutting down. 14:22:32 PlexConnect: shutdown

cferron avatar Dec 22 '13 19:12 cferron

When you update to the latest version of plexconnect using git pull command, do you have to restart the deamon? Restart the PMS?

cferron avatar Dec 28 '13 16:12 cferron

You have to restart the daemon as far as I understand. PMS should not be necessary. However, you could basically just wait for the next re-boot...

iBaa avatar Jan 05 '14 09:01 iBaa

I usually restart the deamon using the restart script, but I have to watch the log to make sure it restart as pointed above.

I'm still trying to figure a pattern about this issue. so far what I have found is that I can navigate on the appleTV the Plex connect menu and everything but when I select a movie (sometimes it work, sometimes it does not) it keeps loading then the trailers not available message appears.

Usually restarting the AppleTV using remote menu + down key combination works out without doing anything else. I'll have to catch some log information on the PMS + PlexConnect.

cferron avatar Jan 08 '14 00:01 cferron

I had the same problem, but by turning GDM off and hard coding IP addresses for the PMS and the Plex Connect I never have to reboot anymore.

wcannon44 avatar Jan 09 '14 03:01 wcannon44

GDM off, where? In plexconnect settings file? or PMS settings?

Harcoding address, Where? Can you indicate this to me.

I will try and follow-up after.

Thanks

cferron avatar Jan 09 '14 11:01 cferron

You turn it off within the setting.cfg by editing it with any text editor. Change the value from True to False. Also, if plex connect is on the same box as you plex media server, using 127.0.0.1 does not work. You need to put their real address. Now this is all assuming you have you static IP for you PMS and your Plex Connect box.

wcannon44 avatar Jan 09 '14 12:01 wcannon44

-> https://github.com/iBaa/PlexConnect/wiki/Settings-for-advanced-use-and-troubleshooting

iBaa avatar Jan 09 '14 19:01 iBaa

Exact same behaviour here. Restart fix the issue until it gets to sleep again.

Claude

On Wed, Jan 29, 2014 at 10:14 AM, FoxtrotLima [email protected]:

I have this issue, however restarting the ATV (alone) is usually sufficient. I've also coincidentally gone down the aforementioned paths of setting static IPs for PMS and the ATV in the configuration file and through my time capsule (GDM disabled with capital F).

The interface itself IS present. Sometimes persistence will get stuff to play, usually easier to restart.

Reply to this email directly or view it on GitHubhttps://github.com/iBaa/PlexConnect/issues/204#issuecomment-33592942 .

Claude Ferron Acheteur / Buyer Marmen inc. Technicien en logistique des transports Certificat des transitaires internationaux -- CIFFA

cferron avatar Jan 29 '14 15:01 cferron

after some testing, i have found this seems to be a problem with OSX only. The references i made above were running on server 2012 R2. I moved back to OSX on my mac pro with the same config and i have to reboot my apple tv every time it wakes up from sleep.

wcannon44 avatar Feb 13 '14 18:02 wcannon44

I run OSX and my ATV sleeps multiple times daily and it has never affected me so there is something more specific to it. Does your PMS OS sleep?

finkdiff avatar Feb 13 '14 20:02 finkdiff

Nope. The only part that may be a little off from a normal setup is that all of my storage is on a separate NAS. But this all worked fine with windows. I am using AFP instead of SMB for OSX, but i tried SMB as well and have had the same problems.

wcannon44 avatar Feb 13 '14 20:02 wcannon44

OSX here as well, PMS on a laptop, files are located on NAS connected over AFP...

On Thu, Feb 13, 2014 at 3:53 PM, wcannon44 [email protected] wrote:

Nope. The only part that may be a little off from a normal setup is that all of my storage is on a separate NAS. But this all worked fine with windows. I am using AFP instead of SMB for OSX, but i tried SMB as well and have had the same problems.

Reply to this email directly or view it on GitHubhttps://github.com/iBaa/PlexConnect/issues/204#issuecomment-35024579 .

Claude Ferron Acheteur / Buyer Marmen inc. Technicien en logistique des transports Certificat des transitaires internationaux -- CIFFA

cferron avatar Feb 14 '14 04:02 cferron

Are you able to set up a test library (maybe on another account) that only has local files?

finkdiff avatar Feb 14 '14 08:02 finkdiff

so i think i may just be too quick. I woke my AppleTV this morning and got the same error. It only errors on me when i go to play the content. So i went back to the main menu, let it sit for 30 seconds, and went back in and it all works fine. I may just be impatient and need to let my NAS spin up. Im going to all local storage soon.

wcannon44 avatar Feb 14 '14 13:02 wcannon44

I'm experiencing the same issue on my OS X Server machine. I've noticed that it seems like the Webserver freezes. I can see that the DNS points the request to Webserver but there is none response.

icep87 avatar Mar 05 '14 21:03 icep87

I have the same issue. My Plex Server and PlexConnect is running on a Debian 7. I almost always have to use the menu + down combo to restart my Apple TV to fix.

I have GDM turned off with an IP manually set. Not quite sure what cases this.

salbahra avatar Apr 24 '14 02:04 salbahra

I wanted to add myself to the list of those experiencing this issue. I was hopeful the suggestions of a fixed ip_pms address would resolve the matter, but whether GDM is enabled or the ip_pms address is explicitly defined seems to matter little.

Like others, a restart of the AppleTV helps but I continue to suspect the issue is with PlexConnect itself. After restarting the PlexConnect process (which runs on the same host as the PMS) all seems well for some time. I should also note that failure of the Trailers.app isn't limited to waking the AppleTV from sleep; it can occur just after I've finished watching something and the Trailer.app is attempting to contact PlexConnect to reload the channel listings from PMS.

Here's what is perplexing me most... In my PlexConnect.log I see the following:

08:51:35 WebServer: WebServer: Serving HTTP on 192.168.1.121 port 80.
08:51:35 WebServer: ***
08:51:35 WebServer: WebServer: Serving HTTPS on 192.168.1.121 port 443.
08:51:35 WebServer: ***
13:50:53 PlexAPI: No Response from Plex Media Server
13:50:53 PlexAPI: We failed to reach a server. Reason: Unauthorized
13:50:53 PlexAPI: Servers (local+MyPlex): 1

That becomes the indicator that the Trailer.app is going to fail and I need to restart PlexConnect for it to begin operating again. Perhaps a very important detail there: restarting PlexConnect resolves the issue without having to restart the AppleTV.

I should also note that I do keep current on both PMS and PlexConnect releases (usually updating both within a week of new releases/changes) so I'm "latest" all around.

tekbuddha avatar May 20 '14 18:05 tekbuddha

I have the same problem. I have to get out of "Trailers" completely and then go back in. PMS is on Mac OSX and the Mac Mini sleeping is not an issue. Seems to be an issue when the apple TV sleeps.

wilkinsbrian avatar May 24 '14 20:05 wilkinsbrian

Still a problem ?

moodyblue avatar Feb 27 '18 22:02 moodyblue

I don’t use this anymore.

wilkinsbrian avatar Feb 27 '18 23:02 wilkinsbrian

Problem seem to have disappeared on my side...

Claude Ferron envoyé à partir de mon cell Android

Le 27 févr. 2018 18 h 39, "wilkinsbrian" [email protected] a écrit :

I don’t use this anymore.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iBaa/PlexConnect/issues/204#issuecomment-369067099, or mute the thread https://github.com/notifications/unsubscribe-auth/AATrtHw6HjoqEn3qGNYYriYCkfbLjkMHks5tZJIhgaJpZM4BV2QP .

cferron avatar Feb 27 '18 23:02 cferron

@moodyblue i still have this issue time to time. so if some one leave it in trailers on plex and then the ATV goes to sleep when you turn the atv back on it will has trailers open it wont connect some times coming out and back in to the app fixes it and other times you have to do a reboot of the atv

Fish2 avatar Feb 27 '18 23:02 Fish2