PDA

View Full Version : Configuring Windows Service Recovery Actions Fails



Marek22
06-22-2013, 12:06 PM
Hello,
I was trying to configure recovery actions for my service on install, but the error has occured. The error and my IS configuration and desired windows service configuration is on the pictures.
How can I correctly configure this Recovery Actions? I am running the setup as administrator and when I do the configuration manually, it just works.

And the second question is how to configure this service to act reasonable during the patch progress. By reasonable I mean:
1. Stop service
2. Patch files
3. Start service

This topic is not very well documented and I cant find it anywhere on the web. Everyone is just recomending using some .exe custom actions and I wanted to avoid that since IS has support for installing services.

Many thanks,
Marek


1012510126

Log:

MSI (s) (90:64) [18:58:24:313]: Executing op: ServiceInstall(Name=MarekService,DisplayName=MarekService,ImagePath="C:\Program Files (x86)\Marek\MarekService\MarekService.exe",ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies=[~],,,Password=**********,Description=Mareks windows service,,)
InstallServices: Service:
MSI (s) (90:64) [18:58:24:314]: Executing op: ActionStart(Name=MsiConfigureServices,,)
Action 18:58:24: MsiConfigureServices.
MSI (s) (90:64) [18:58:24:315]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:315]: Executing op: ServiceConfigure(,Name=MarekService,Event=1,ConfigType=4,Argument=1)
MSI (s) (90:64) [18:58:24:316]: Changing configuration of service MarekService.
MSI (s) (90:64) [18:58:24:316]: Changed configuration of service MarekService with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
MSI (s) (90:64) [18:58:24:316]: Done changing configuration of service MarekService
MSI (s) (90:64) [18:58:24:316]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:316]: Executing op: ServiceConfigureFailureAction(,Name=MarekService,Event=1,ResetPeriod=60,,,Actions=1[~][~],DelayActions=1000[~][~])
MSI (s) (90:64) [18:58:24:316]: Changing configuration of failure action for service MarekService.
MSI (s) (90:64) [18:58:24:317]: Error: 5. Failed to change current configuration of failure action for service MarekService
MSI (s) (90:64) [18:58:24:317]: Failed to change configuration of failure action for service MarekService
Error 1939. Service 'MarekService' (MarekService) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.
MSI (s) (90:64) [18:58:25:392]: Product: MarekService -- Error 1939. Service 'MarekService' (MarekService) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.

Marek22
06-28-2013, 02:43 AM
Please, noone really knows how to configure this recovery conditions? I found nothing on the internet and in the documentation.

OneDayBehind
10-18-2013, 02:06 PM
I'm having issues getting the recovery settings to work as well. I'm getting the following error:


Error 1939.Service 'My Service' (MyService) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.

Finding nearly no help online, it seems like either this is a feature no one uses or is a feature that doesn't actually work and everyone avoids? :confused:

I don't seem to have any security issues that keep me from changing the recovery settings manually, so I'm inclined to think that the privileges are not the issue. Using the sc command, I can set the recovery settings to where I want them to be, but it would sure be nice to just use the built-in tools in InstallShield.

sc failure MyService actions= restart/180000/restart/180000/""/180000 reset= 86400

fmorales
03-03-2014, 05:40 AM
Hello, any idea about this problem???? I have exactly same error.

Thanks a lot
Francisco Morales



Hello,
I was trying to configure recovery actions for my service on install, but the error has occured. The error and my IS configuration and desired windows service configuration is on the pictures.
How can I correctly configure this Recovery Actions? I am running the setup as administrator and when I do the configuration manually, it just works.

And the second question is how to configure this service to act reasonable during the patch progress. By reasonable I mean:
1. Stop service
2. Patch files
3. Start service

This topic is not very well documented and I cant find it anywhere on the web. Everyone is just recomending using some .exe custom actions and I wanted to avoid that since IS has support for installing services.

Many thanks,
Marek


1012510126

Log:

MSI (s) (90:64) [18:58:24:313]: Executing op: ServiceInstall(Name=MarekService,DisplayName=MarekService,ImagePath="C:\Program Files (x86)\Marek\MarekService\MarekService.exe",ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies=[~],,,Password=**********,Description=Mareks windows service,,)
InstallServices: Service:
MSI (s) (90:64) [18:58:24:314]: Executing op: ActionStart(Name=MsiConfigureServices,,)
Action 18:58:24: MsiConfigureServices.
MSI (s) (90:64) [18:58:24:315]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:315]: Executing op: ServiceConfigure(,Name=MarekService,Event=1,ConfigType=4,Argument=1)
MSI (s) (90:64) [18:58:24:316]: Changing configuration of service MarekService.
MSI (s) (90:64) [18:58:24:316]: Changed configuration of service MarekService with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
MSI (s) (90:64) [18:58:24:316]: Done changing configuration of service MarekService
MSI (s) (90:64) [18:58:24:316]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:316]: Executing op: ServiceConfigureFailureAction(,Name=MarekService,Event=1,ResetPeriod=60,,,Actions=1[~][~],DelayActions=1000[~][~])
MSI (s) (90:64) [18:58:24:316]: Changing configuration of failure action for service MarekService.
MSI (s) (90:64) [18:58:24:317]: Error: 5. Failed to change current configuration of failure action for service MarekService
MSI (s) (90:64) [18:58:24:317]: Failed to change configuration of failure action for service MarekService
Error 1939. Service 'MarekService' (MarekService) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.
MSI (s) (90:64) [18:58:25:392]: Product: MarekService -- Error 1939. Service 'MarekService' (MarekService) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.

fmorales
03-13-2014, 09:14 AM
Hello, I have exactly same problem... any solution ????

SwethaRao
04-21-2014, 06:54 AM
Please review the below KB article:-

http://flexerasoftware.force.com/articles/en_US/PROBLEM/Q204139

This has a possible workaround described. Please try it.

Thanks ~ Swetha

amanchanda
07-19-2016, 04:52 PM
Please review the below KB article:-

http://flexerasoftware.force.com/articles/en_US/PROBLEM/Q204139

This has a possible workaround described. Please try it.

Thanks ~ Swetha

For me, This workaround does not work either. It gives Error 1721. If I try to execute the sc command as script code. The installation completes but the Service is not configured. Flexera charges thousands of dollars per year for maintenance support and what kind of support this company provides. I am disgusted.