Build 21658, does not restart after stanby (1 Viewer)

iosub

Portal Pro
April 26, 2006
573
30
San Sebastian
Hi!

I have no problems with MP1.0 after standby it restart without problems, (I have set on config to restart after standby)

but with Build 21658 MP is closed (killed) but it does not restart

Logs Attached

Thanks!
 

Attachments

  • Build 21658NoRestart.zip
    30.7 KB

chemelli

Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    Hi!

    I have no problems with MP1.0 after standby it restart without problems, (I have set on config to restart after standby)

    but with Build 21658 MP is closed (killed) but it does not restart

    Logs Attached

    Thanks!

    Humm strange, looking at your log, seems taht "taskkill" never end so that the script cannot go to next step.

    Can you try to start MP in window mode, and double click restart.vbs to see what happens ? Is MP running under Vista with UAC ?

    Simone
     

    iosub

    Portal Pro
    April 26, 2006
    573
    30
    San Sebastian
    Hi chemelli

    I have found the problem:

    as you can see on the log, restart.vbs is using taskkill, my system is windows Vista Ultimate so I have tskill on windows\system32.

    So the problem is on line:
    If FileSys.FileExists(syspath + "tskill.exe") Then --------------->>>>>> does not find tskill, because checking your code the variable syspath is not directed to windows\system32..

    if I force to use tskill.exe (I have remove "If FileSys.FileExists(syspath + "tskill.exe") " then restart.vbs uses tskill.exe, so it kills mediaportal.exe and then restart mediaportal without problem

    Hope this helps

    Iosu
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    Please test attached version with improved logging:

    11/02/2009-9.15.07: Starting "restart.vbs" with "C:\Windows\System32\WScript.exe" (v. 5.7)
    11/02/2009-9.15.07: Looking for "tskill.exe" in "C:\Windows\System32"
    11/02/2009-9.15.07: "tskill.exe" not found
    11/02/2009-9.15.07: Kill utility will be "taskkill"
    11/02/2009-9.15.07: Executing "taskkill /T /F /IM MediaPortal.exe"
    11/02/2009-9.15.08: Killed "MediaPortal" (Exit code=0)
    11/02/2009-9.15.08: Executing "MediaPortal"
    11/02/2009-9.15.09: Started "MediaPortal" (Exit code=0)

    EDIT

    I found the error in the script, shame on me I forgot a "\"..... :sorry:

    Simone
     

    mironicus

    Portal Pro
    March 9, 2008
    688
    44
    The updated restart.vbs does not solve this issue for me. And I think it's not the cause of the problem.

    You need the Windows Scripting host running to run this script - however I never needed this service before - the previous released svn from 23.1. runs fine after standby/hibernation. The restart.vbs is not needed for my system.
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    The updated restart.vbs does not solve this issue for me. And I think it's not the cause of the problem.

    You need the Windows Scripting host running to run this script - however I never needed this service before - the previous released svn from 23.1. runs fine after standby/hibernation. The restart.vbs is not needed for my system.

    mironicus,

    can I have your logs please ?

    Simone
     

    Users who are viewing this thread

    Top Bottom