BatchPatch Forums Home › Forums › BatchPatch Support Forum › BatchPatch Service Installation
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by doug.
-
AuthorPosts
-
November 27, 2017 at 8:10 pm #8912SRE_WF_CorpParticipant
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
November 27, 2017 at 8:25 pm #10304dougModeratorAnything 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?
November 27, 2017 at 10:34 pm #10305SRE_WF_CorpParticipantFrom 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[] )
November 28, 2017 at 1:19 am #10306dougModeratorYou 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.
November 29, 2017 at 3:47 pm #10293SRE_WF_CorpParticipantWe 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!
November 29, 2017 at 5:05 pm #10294dougModeratorI’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
-
AuthorPosts
- You must be logged in to reply to this topic.