BatchPatch Service Installation

BatchPatch Forums Home Forums BatchPatch Support Forum BatchPatch Service Installation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8912
    SRE_WF_Corp
    Participant

    Hello,

    I currently have Batchpatch installed and when attempting to run as a service, per the documentation, everything looks to work. Unfortunately “Service Instance running:” remains “False” for me. I have tried tracking down the issue regarding credentials and permissions but cannot get this to start. Short of uninstallre-install curious if anyone else has seen this issue or possibly any ideas.

    Thanks,

    Corey

    #10304
    doug
    Moderator

    Anything interesting in the BatchPatchService.log file? This file will be in the directory where the service is installed. Default location is C:Program Files (x86)BatchPatchServiceDOMAIN.AccountBatchPatchService.log

    Anything interesting in the Windows application log in the event viewer?

    #10305
    SRE_WF_Corp
    Participant

    From BatchPatchService Log file:

    11/27/2017 5:02:57 PM: End OnStop()

    11/27/2017 5:03:28 PM: Begin OnStart()

    11/27/2017 5:03:28 PM: Begin StartServiceInstance()

    11/27/2017 5:03:28 PM: BatchPatchServiceInstance.exe started successfully. Process ID: 8892

    11/27/2017 5:03:28 PM: End StartServiceInstance()

    11/27/2017 5:03:28 PM: End OnStart()

    11/27/2017 5:03:58 PM: BatchPatchServiceInstance.exe is no longer running. Initiating StartServiceInstance()

    11/27/2017 5:03:58 PM: Begin StartServiceInstance()

    11/27/2017 5:03:58 PM: BatchPatchServiceInstance.exe started successfully. Process ID: 5268

    11/27/2017 5:03:58 PM: End StartServiceInstance()

    11/27/2017 5:04:28 PM: BatchPatchServiceInstance.exe is no longer running. Initiating StartServiceInstance()

    11/27/2017 5:04:28 PM: Begin StartServiceInstance()

    11/27/2017 5:04:28 PM: BatchPatchServiceInstance.exe started successfully. Process ID: 1436

    11/27/2017 5:04:28 PM: End StartServiceInstance()

    11/27/2017 5:04:58 PM: BatchPatchServiceInstance.exe is no longer running. Initiating StartServiceInstance()

    11/27/2017 5:04:58 PM: Begin StartServiceInstance()

    11/27/2017 5:04:58 PM: BatchPatchServiceInstance.exe started successfully. Process ID: 3140

    11/27/2017 5:04:58 PM: End StartServiceInstance()

    11/27/2017 5:05:28 PM: BatchPatchServiceInstance.exe is no longer running. Initiating StartServiceInstance()

    11/27/2017 5:05:28 PM: Begin StartServiceInstance()

    11/27/2017 5:05:28 PM: BatchPatchServiceInstance.exe started successfully. Process ID: 7388

    11/27/2017 5:05:28 PM: End StartServiceInstance()

    No specific errors other than what looks to be starting and stopping.

    Application log show that the service has started. No errors or warnings.

    Just found this in the BatchPatchServiceSetup.log and will need to investigate the BatchPatchService.InstallLog file, but a re-install maybe the next move.

    3/8/2017 3:26:04 PM: Checking service status…

    3/8/2017 3:26:04 PM: Executing service installation…

    3/8/2017 3:26:14 PM: Service installation problem. Please review the .InstallLog for more details.

    3/8/2017 3:26:14 PM: Error installing service. System.InvalidOperationException: An exception occurred in the OnBeforeInstall event handler of A.cae29f4b07a68197daf50c5b2f952cded. —> System.Exception: Credentials dialog canceled

    at A.cae29f4b07a68197daf50c5b2f952cded.OnBeforeInstall_Encrypted$(cae29f4b07a68197daf50c5b2f952cded , IDictionary )

    at A.cae29f4b07a68197daf50c5b2f952cded.OnBeforeInstall(IDictionary savedState)

    at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

    — End of inner exception stack trace —

    at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

    at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

    at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)

    at (Object , IDictionary )

    at A.c92645d616070f058c3d60697db177bb0.c4b7e391394a7ac41baf8b3be31cc7aef(Object c803566b20cccbc73514b9d5051c48ac2, IDictionary c803566b20cccbc73514b9d5051c48ac2)

    at A.cae29f4b07a68197daf50c5b2f952cded.ce880aa0014be669c7731acc68c8371f9_Encrypted$(cae29f4b07a68197daf50c5b2f952cded )

    at A.cae29f4b07a68197daf50c5b2f952cded.ce880aa0014be669c7731acc68c8371f9()

    at A.cd03c9ed048768150dc80f437a5c4e7be.c0648729821fc25282ffdcd9f10e27839_Encrypted$(String[] )

    #10306
    doug
    Moderator

    You can certainly try uninstalling/reinstalling though I’m not sure that it will have any effect. The error in your service installation log indicates that you cancelled the installation one time when you first went to install it. It’s not a big deal. I assume you were just testing and then soon after you completed the installation, it seems.

    We can see in your log that the BatchPatchServiceInstance.exe starts successfully but then stops or is killed soon after. The question is why does it stop or why is it killed. Do you have any software on the computer that could do such a thing? Antivirus? HIPS? Can you also confirm that you are not launching BatchPatch.exe from within the BatchPatch.zip? This can cause issues. You must first extract BatchPatch.zip so that BatchPatch.exe can be launched on its own instead of directly from within the .zip file.

    #10293
    SRE_WF_Corp
    Participant

    We don’t have an AV running on the server that prevents any execution, just alerts. Batchpatch has been extracted running the .exe.

    I was able to get the “Service Instance running:” working after the uninstallre-install. The dialog box to add credentials was entered correctly. We had it set to “Local System” which seemed reference another credential issue. I appreciate you pointing to the batchpatch log file.

    Thanks for the quick help!

    #10294
    doug
    Moderator

    I’m glad you got it worked out. When BP installs the service, it does not allow you to change the user. It must be installed as the user that is running BP. In order for it to be set to Local System, someone would have had to have gone into the services console and changed it. This would definitely break it.

    -Doug

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.