[ERROR] Opsware agent installation failed. 'The specified service has been marked for deletion.'

  • KM00435905
  • 23-May-2013
  • 04-May-2021

Summary

The article describes how to solve the "[ERROR] Opsware agent installation failed. 'The specified service has been marked for deletion.'" issue encountered at agent installation time.

Error

The following issue has been encountered at agent installation time:

opsware-agent-installer-052113.log

...

[21/May/2013 10:37:25] [TRACE] [05/21/13 06:37:19] TRACE: Executing step: step_10_run_opsware_installer
[21/May/2013 10:37:25] [TRACE] [05/21/13 06:37:19] TRACE: run python command: C:\Program Files\Opsware\agent\lcpython15\python.exe C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent-installer.py --conf C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\~6944-3.OAI
[21/May/2013 10:37:25] [TRACE] [05/21/13 06:37:19] TRACE: run python environ: {'PATH': 'C:\\Program Files\\Opsware\\agent\\lcpython15;C:\\Program Files (x86)\\M1 Licensing;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\HP\\HP BTO Software\\bin;C:\\Program Files\\HP\\HP BTO Software\\bin\\win64;C:\\Program Files\\HP\\HP BTO Software\\bin\\win64\\OpC;C:\\Program Files\\ActivIdentity\\ActivClient\\;C:\\Program Files (x86)\\ActivIdentity\\ActivClient\\;e:\\Pro
[21/May/2013 10:37:27] [TRACE] [05/21/13 06:37:25] TRACE: Traceback (most recent call last):
[21/May/2013 10:37:27] [TRACE]   File "C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent-installer.py", line 2001, in doInstall
[21/May/2013 10:37:27] [TRACE]     apply( func, (), args )
[21/May/2013 10:37:27] [TRACE]   File "C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent-installer.py", line 1913, in doWin32Install
[21/May/2013 10:37:27] [TRACE]     installServices( services, svc_params )
[21/May/2013 10:37:27] [TRACE]   File "C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent-installer.py", line 962, in installServices
[21/May/2013 10:37:27] [TRACE]     apply( installService, (), svc_config )
[21/May/2013 10:37:27] [TRACE]   File "C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent-installer.py", line 613, in installService
[21/May/2013 10:37:27] [TRACE]     raise e
[21/May/2013 10:37:27] [TRACE] error: (1072, 'ChangeServiceConfig', 'The specified service has been marked for deletion.')
[21/May/2013 10:37:27] [TRACE]
[21/May/2013 10:37:27] [TRACE] [05/21/13 06:37:25] TRACE: result: 1

...

[21/May/2013 10:37:28] [ERROR] RunCommand('install_tool_x64.exe --unpack="C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK\opsware-agent.exe","C:\Program Files\Opsware\agent" --install="C:\Program Files\Opsware\agent","C:\Users\ADMINI~1\AppData\Local\Temp\10\~6944-1.WRK" --loglevel=trace') exited with code 1
[21/May/2013 10:37:28] [TRACE] Error message: Incorrect function.

[21/May/2013 10:37:28] [TRACE] install_tool: FAIL
[21/May/2013 10:37:28] [TRACE] Win32InstallN() = 0
[21/May/2013 10:37:28] [ERROR] Opsware agent installation failed.

...

Cause

This problem may occur if the following conditions occur in this order:

  1. You installed a service in a Windows Service application.
  2. You removed the service by using a Windows Installer (.msi) file. 

Fix

a) Reboot the server before you reinstall the service.

    or

b) Try to manually delete that "marked" service:

  • sc delete opswareagent

and

  • Retry the installation