NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 220 221 222 223 224 … 433 Next »
Notifications on failure

Notifications on failure
Nistrod
Offline

Member

Posts: 243
Threads: 45
Joined: Jul 2010
#1
2014-03-27, 04:43 AM
So, I go away for a month.
Sometime during this, the PC goes into recalcitrant mode, and I start getting the following error on every recording:
Code:
Failed to start device: 0x8007000e
. It looks for a second device, which gives the same error.
Clearly the driver is being stupid, and this problem is fixed with a reboot.

My question: does anyone have a means to detect this, and say, send an email?
I could arrange for the PC to be rebooted, but I have to know about it.

Cheers
[SIZE="1"]NPVR 2.6.2;Windows 7 Enterprise SP1;i5 750; 8GB mem;Geforce 210;Winfast DTV100 S, Winfast DTV Dongle Gold; 2 x Winfast DTV2000DS
[/SIZE]
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2014-03-27, 11:52 AM
Would an automagic daily reboot help?

http://answers.microsoft.com/en-us/windo...5ce2647148
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2014-03-27, 10:20 PM
Microsoft's devcon can reports status of a device.
Blat is a commandline emailer that can send a text file (output of above?)
Devcon can also reset a device or reboot the PC.

I email a devcon status report to a pvr gmail address each wakeup and keep my eyes open for an error.

PS Grahams daily reboot is a good idea, I have to reboot one machine every 2 or 3 weeks to brings its internal USB tuner back to life. (seemingly down to VIA chipset on motherboard with hauppauge tuner)

PPS if you are good at batch/cmd files (unlike me) it should be possible to only email if "error" is detected in the output of devcon.
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#4
2014-03-28, 09:45 AM
I found a daily reboot prevented a range of Windows and NextPVR problems some of which could take several weeks to appear. I do it after the EPG update as long as NextPVR is not recording.

Chris
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#5
2014-03-28, 12:19 PM
jcjefferies Wrote:I do it after the EPG update as long as NextPVR is not recording.

Chris
Can you share the script that does the check-for-record-status? Smile Sounds like a good thing to have in the EPG update script!
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#6
2014-03-28, 07:17 PM (This post was last modified: 2014-03-28, 07:34 PM by jcjefferies.)
This is my PostUpdateEPG.bat file which must go in the "Scripts" directory. If NextPVR "isinuse" it waits 60 seconds and tries again until it is "Not Recording". I don't think I actually do many recordings in the early hours but its sods law that without the script it would reboot in the middle of some important recording!

echo off
REM Reboot if not recording
set NSHelper=c:\"program files"\npvr\nscripthelper.exe

:check
FOR /F "tokens=*" %%i in ('%NSHelper% -isinuse') do SET condition=%%i
echo %condition%
IF %condition% =="NOT RECORDING" goto reboot

:delay
sleep 60
goto check

:reboot

echo "About to reboot"
shutdown /r


Another option is to install Power Triggers which can be set to stop/start/restart specific devices or services before the computer sleeps or after it wakes. My server had a Nvidia network card which sometimes could not see the NextPVR client after wakeup but restarting it after wakeup cured the problem.

Chris
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#7
2014-03-28, 09:53 PM (This post was last modified: 2014-03-28, 10:09 PM by HarryH3.)
Awesome! Thanks for that. I think I'll be adding that to my server. Smile

Edit: I had to change set NSHelper=c:\"program files"\npvr\nscripthelper.exe
to: set NSHelper=c:\"program files (x86)"\npvr\nscripthelper.exe

because I'm running 64-bit Win 7.

The system rebooted quite nicely. Smile

Is there an easy way to also detect if Comskip is running? It would be nice to not reboot until that's all done as well.
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#8
2014-03-28, 10:28 PM
HarryH3 Wrote:Awesome! Thanks for that. I think I'll be adding that to my server. Smile

Edit: I had to change set NSHelper=c:\"program files"\npvr\nscripthelper.exe
to: set NSHelper=c:\"program files (x86)"\npvr\nscripthelper.exe

because I'm running 64-bit Win 7.

The system rebooted quite nicely. Smile

Is there an easy way to also detect if Comskip is running? It would be nice to not reboot until that's all done as well.
Or if PostProcessing is running?

"I'd rather have a bottle in front of me than a frontal lobotomy"
Nistrod
Offline

Member

Posts: 243
Threads: 45
Joined: Jul 2010
#9
2014-03-29, 01:51 AM
OK, thanks for all the suggestions/scripts.
I will work on this basis, as it appears to be the collective wisdom.
[SIZE="1"]NPVR 2.6.2;Windows 7 Enterprise SP1;i5 750; 8GB mem;Geforce 210;Winfast DTV100 S, Winfast DTV Dongle Gold; 2 x Winfast DTV2000DS
[/SIZE]
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#10
2014-03-31, 11:05 AM
How about adding something like this to see if a particular application is running to check if its safe to reboot?

tasklist /FI "IMAGENAME eq your_app.exe" | find /i "your_app.exe"

IF ERRORLEVEL 2 GOTO app_is_running
IF ERRORLEVEL 1 GOTO app_not_running


Chris
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web URL Command Failure jcole998 2 1,185 2020-01-26, 06:27 PM
Last Post: jcole998
  Manual recording failure, leaving no trace bitoclass 11 2,944 2019-05-11, 05:07 PM
Last Post: bitoclass
  Recording Failure persim 7 2,185 2019-03-27, 05:18 PM
Last Post: mvallevand
  Recording Failure - HDHR Transcoding craigrs84 6 2,202 2018-10-15, 02:23 AM
Last Post: pkscout
  Intermittent recording failure Juliaa 9 3,115 2018-10-14, 09:10 PM
Last Post: mvallevand
  Client Scheduling Failure jcole998 14 4,498 2018-07-29, 06:32 PM
Last Post: sub
  Tuner Not Available Error Apparently Caused by LiveHandle Lease Renewal Failure jmooremcc 5 2,150 2017-11-27, 10:15 PM
Last Post: mvallevand
  How to recover from harddrive failure (Mine is dead) Sharpy420 11 3,264 2017-09-20, 09:04 AM
Last Post: martint123
  Hard drive failure jd1940 2 1,279 2016-10-26, 09:15 PM
Last Post: jd1940
  Nextend Failure jcole998 1 1,154 2016-10-03, 01:35 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode