issues after WOL, must restart backend
#1
I've noticed recently that I'm consistently having issues with ServerWMC backend when my Kodi client issues a WOL. Kodi first indicates an error along the lines of "Recorded folder not found." It fetches the channel list just fine, but when I try to tune a channel I get a "tuner unavailable" error. Restarting the backend fixes the issues. I'm not entirely sure, but I feel like these issues began when I started using the pre-release versions. I'm currently using build 1221. Here's the first several lines from the log file after the backend wakes up.

Code:
2015/11/22 12:44:31.072 Updater> Checking for updates...
2015/11/22 12:44:31.072 Updater> Error: The remote name could not be resolved: 'googledrive.com' - https://googledrive.com/host/0ByNnAMYBoWvfTk8tRWJXYko1T2c/builds/ServerWMC/AutoUpdate.xml
2015/11/22 12:44:31.072 Updater> Next check at 11/22/2015 2:44:31 PM
2015/11/22 12:44:34.736 New client connected: client: 'Kodi^localhost', IP: 192.168.0.18, machine: 'localhost', isRemote: True
2015/11/22 12:44:34.752  > path to Recorded TV Folder: 'smb://Myname*******x@PVR/Recorded TV'
2015/11/22 12:44:34.752 AddonVersion> client: 'Kodi^localhost' has addon/plugin version: 0.6.9, OS: linux
2015/11/22 12:44:34.767 Received client request: localhost|192.168.0.18|GetServerVersion|2015-11-22 20:44:32|192.168.0.13
2015/11/22 12:44:34.767 Finished request GetServerVersion in 0.00s
2015/11/22 12:44:35.842 Received client request: localhost|192.168.0.18|GetChannels|True
2015/11/22 12:44:35.842 Finished request GetChannels in 0.00s
2015/11/22 12:44:35.842 Received client request: localhost|192.168.0.18|GetChannelGroups|True
2015/11/22 12:44:35.842 Finished request GetChannelGroups in 0.00s
2015/11/22 12:44:35.842 Received client request: localhost|192.168.0.18|GetChannelGroupMembers|True|Most Viewed
2015/11/22 12:44:35.842 Finished request GetChannelGroupMembers in 0.00s
2015/11/22 12:44:35.889 Received client request: localhost|192.168.0.18|GetChannels|False
2015/11/22 12:44:36.420 GetRecorderInfo> error getting rec info from Guid, Guid: e7e67c47-cf2e-490b-9ea3-a2d71786d71c, error: System.Runtime.InteropServices.COMException (0x80070037): The specified network resource or device is no longer available. (Exception from HRESULT: 0x80070037)
   at ehiProxy.RecorderMgrClass.FindRecorderByID(Guid guid, IRecorderInfo& ppRecorder)
   at ServerWMC.Worker.Tuner.GetRecorderInfo(Guid guid)

And here's the tuning related errors, after it fetches the channel list.

Code:
2015/11/22 12:44:58.403 Received client request: localhost|192.168.0.18|OpenLiveStream|834407|0|706|KOIN HDTV
2015/11/22 12:44:58.403 OpenLiveStream> -----------------start------------------------
2015/11/22 12:44:58.403 OpenLiveStream> client: Kodi^localhost requesting live stream on channel KOIN HDTV
2015/11/22 12:44:58.403 LiveRemuxStream> live-tv started
2015/11/22 12:44:58.419 SetChannel> Channel: 706 : KOINHD - CBB67 = { (706 : KOINHD - 4FAF) + [ 6.1 : KOINHD - 7979, 706 : KOINDT - CB03E] }
2015/11/22 12:44:58.419 SetChannel> Tuners available for this channel: 3
2015/11/22 12:44:58.419 SetChannel> Tuner DecoyMethod: OnDemand
2015/11/22 12:44:58.419 SetChannel> ---
2015/11/22 12:44:58.419 SetChannel> Attempt: 0,  Tuner: HDHomeRun Prime Tuner 1318E460-2 / 614b7b0b-66ea-4eb5-a62e-a0be5f97b2f2
2015/11/22 12:44:58.419 SetChannel> > Encrypted: False
2015/11/22 12:44:58.419 GetRecorderInfo> error getting rec info from Guid, Guid: 614b7b0b-66ea-4eb5-a62e-a0be5f97b2f2, error: System.Runtime.InteropServices.COMException (0x80070037): The specified network resource or device is no longer available. (Exception from HRESULT: 0x80070037)
   at ehiProxy.RecorderMgrClass.FindRecorderByID(Guid guid, IRecorderInfo& ppRecorder)
   at ServerWMC.Worker.Tuner.GetRecorderInfo(Guid guid)
2015/11/22 12:44:58.419 SetChannel> Attempt: 1,  Tuner: HDHomeRun Prime Tuner 1318E460-1 / baeda0d7-8bbf-4b24-96de-9acd31296d89
2015/11/22 12:44:58.419 SetChannel> > Encrypted: False
2015/11/22 12:44:58.419 GetRecorderInfo> error getting rec info from Guid, Guid: baeda0d7-8bbf-4b24-96de-9acd31296d89, error: System.Runtime.InteropServices.COMException (0x80070037): The specified network resource or device is no longer available. (Exception from HRESULT: 0x80070037)
   at ehiProxy.RecorderMgrClass.FindRecorderByID(Guid guid, IRecorderInfo& ppRecorder)
   at ServerWMC.Worker.Tuner.GetRecorderInfo(Guid guid)
2015/11/22 12:44:58.419 SetChannel> Attempt: 2,  Tuner: HDHomeRun Prime Tuner 1318E460-0 / e7e67c47-cf2e-490b-9ea3-a2d71786d71c
2015/11/22 12:44:58.419 SetChannel> > Encrypted: False
2015/11/22 12:44:58.419 GetRecorderInfo> error getting rec info from Guid, Guid: e7e67c47-cf2e-490b-9ea3-a2d71786d71c, error: System.Runtime.InteropServices.COMException (0x80070037): The specified network resource or device is no longer available. (Exception from HRESULT: 0x80070037)
   at ehiProxy.RecorderMgrClass.FindRecorderByID(Guid guid, IRecorderInfo& ppRecorder)
   at ServerWMC.Worker.Tuner.GetRecorderInfo(Guid guid)
2015/11/22 12:44:58.419 SetChannel> available tuners found: 0 [decoys:0], requested: 1, searched: 3
2015/11/22 12:44:58.419 LiveRemuxStream> process start error: No tuner available calling Close()
2015/11/22 12:44:58.419 LiveRemuxStream::Close> closed in 0.00 sec
2015/11/22 12:44:58.419 OpenLiveStream> error: No tuner available
2015/11/22 12:44:58.419 Finished request OpenLiveStream in 0.02s
2015/11/22 12:46:11.097 MainWindow::Window_Loaded> not running as service, checking folder status.
2015/11/22 12:46:11.097 MainWindow::Window_Loaded> Done
Reply
#2
It seems like there is something wrong with getting the tuner info from windows after it comes out of sleep, I will try to see what's up. Did you confirm you don't have this problem with the older version?
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#3
its also complaining it cant check for updates after waking up (cannot resolve googledrive.com) so i suspect your network is still "asleep" at the wake up point. And it looks like your tuners are HDHomeRuns which obviously sit on the network as well. So to me it looks like network isn't established as you come out of sleep, and that causes serverWMC (or perhaps even WMC) to have unrecoverable error in connecting to the tuners
pvr.wmc TV addon and ServerWMC Backend Development Team
http://bit.ly/ServerWMC
Reply
#4
Good catch. I also looked at the changes in the pre-release and I can't find anything to cause this. Also doesn't make sense that restarting swmc would clear the problem since we acquire the tuners the same way at startup.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#5
Sorry for the late response. I know you mentioned adding a variable delay after "wake up" in the options because of the weird issue I was having with several channels incorrectly being tagged as DRM enabled right after wake up. Is there an undocumented option I can try to delay ServerWMC from attempting anything after resume from standby? Thanks
Reply
#6
And I'll need to try the older version. But when I tried installing it, ServerWMC complained about a newer version being in existence. I'll have to completely wipe out the old install first. I'll report back
Reply

Logout Mark Read Team Forum Stats Members Help
issues after WOL, must restart backend0