2014-12-18, 10:36 PM
Is there a good way to debug this? Windows 8.1. I can run this bat file from the command line, runs fine. I can run it from the update EPG link in the nextpvr app under channels, runs. However, the daily run at time comes, and, passes with no update. So, I look in the nrecord.log file and see:
2014-12-17 08:08:24.769 [DEBUG][10] Pre EPG Update
2014-12-17 08:09:54.770 [DEBUG][10] About to update EPG
2014-12-17 08:09:54.793 [DEBUG][10] Updating EPG...
2014-12-17 08:09:54.794 [DEBUG][10] Running UpdateEPG.bat
2014-12-17 08:09:54.794 [DEBUG][10] About to run C:\Users\Public\NPVR\Scripts\UpdateEPG.bat
2014-12-17 08:10:04.800 [DEBUG][10] C:\Users\Public\NPVR\Scripts\UpdateEPG.bat has completed
2014-12-17 08:10:04.800 [DEBUG][10] Checking for any XMLTV listings
2014-12-17 08:10:04.837 [DEBUG][10] Will process xmltv file: C:\ProgramData\ServerCare\WebGrab\mdb\guide.xml
2014-12-17 08:10:04.838 [DEBUG][10] Skipping non-existant xmltv file: C:\ProgramData\ServerCare\WebGrab\mdb\guide.xml
Please note the non existant file does in fact exist, and, that the update epg script runs for an hour. I am not going to be using WebGrabber for when I go live with this, (will be using schedules direct but not going to purchase it until whole system is set up and all functioning as I want it) but, it's convenient for testing purposes. When the log file shows it running in 10 seconds, it's not running. But the clues are I suppose 10 seconds, and, the non existant file, and, that it works from Update EPG and command line. Sounds like security. However, I don't know what user the service runs under, and, I thought that the service as set up by the installer which runs as local system user should be fine with all default directories created by the installer, I cant seem to find anything wrong. But obviously there is. I don't really use Windows very much, so, not sure of the ins and outs or what to check.
The bat file contains:
@ECHO off
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO BIT64) ELSE (GOTO BIT32)
:BIT64
SET ProgramPath=%PROGRAMFILES(X86)%
GOTO END
:BIT32
SET ProgramPath=%PROGRAMFILES%
GOTO END
:END
"%ProgramPath%\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "C:\ProgramData\ServerCare\WebGrab"
@REM comment out next line, to stop the command window from automaticly closing
@REM PAUSE
EXIT
2014-12-17 08:08:24.769 [DEBUG][10] Pre EPG Update
2014-12-17 08:09:54.770 [DEBUG][10] About to update EPG
2014-12-17 08:09:54.793 [DEBUG][10] Updating EPG...
2014-12-17 08:09:54.794 [DEBUG][10] Running UpdateEPG.bat
2014-12-17 08:09:54.794 [DEBUG][10] About to run C:\Users\Public\NPVR\Scripts\UpdateEPG.bat
2014-12-17 08:10:04.800 [DEBUG][10] C:\Users\Public\NPVR\Scripts\UpdateEPG.bat has completed
2014-12-17 08:10:04.800 [DEBUG][10] Checking for any XMLTV listings
2014-12-17 08:10:04.837 [DEBUG][10] Will process xmltv file: C:\ProgramData\ServerCare\WebGrab\mdb\guide.xml
2014-12-17 08:10:04.838 [DEBUG][10] Skipping non-existant xmltv file: C:\ProgramData\ServerCare\WebGrab\mdb\guide.xml
Please note the non existant file does in fact exist, and, that the update epg script runs for an hour. I am not going to be using WebGrabber for when I go live with this, (will be using schedules direct but not going to purchase it until whole system is set up and all functioning as I want it) but, it's convenient for testing purposes. When the log file shows it running in 10 seconds, it's not running. But the clues are I suppose 10 seconds, and, the non existant file, and, that it works from Update EPG and command line. Sounds like security. However, I don't know what user the service runs under, and, I thought that the service as set up by the installer which runs as local system user should be fine with all default directories created by the installer, I cant seem to find anything wrong. But obviously there is. I don't really use Windows very much, so, not sure of the ins and outs or what to check.
The bat file contains:
@ECHO off
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO BIT64) ELSE (GOTO BIT32)
:BIT64
SET ProgramPath=%PROGRAMFILES(X86)%
GOTO END
:BIT32
SET ProgramPath=%PROGRAMFILES%
GOTO END
:END
"%ProgramPath%\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "C:\ProgramData\ServerCare\WebGrab"
@REM comment out next line, to stop the command window from automaticly closing
@REM PAUSE
EXIT