Missing services after Anomaly Detector 10.0.5
search cancel

Missing services after Anomaly Detector 10.0.5

book

Article ID: 204260

calendar_today

Updated On:

Products

CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

After upgrading Anomaly Detector from 10.0.2 to 10.0.5, the server comes back from restart and all services are not running, only services shown are "CA NFA RibSource" and "CAInvokerService".

MySQL itself shows an unknown service error.  The Hunter Tracker Service and Host Resolver Service are not listed.

The AD_install log shows the following when the MySql service creation was attempted:

C:\<path>>sc.exe create "NetQoS MySql" binPath= "D:\UserApps\NFA\MySql\bin\mysqld.exe --defaults-file=D:\UserApps\NFA\MySql\my.ini \"NetQoS MySql\"" DisplayName= "CA MySql" start= auto 
[SC] CreateService FAILED 1072:

The specified service has been marked for deletion.

C:\<path>>sc.exe failure "NetQoS MySql" reset= 0 actions= restart/60000 
[SC] ChangeServiceConfig2 FAILED 1072:

The specified service has been marked for deletion.

Environment

Release : 20.2

Component : NQRPTA - REPORTERANALYZER

Cause

The services were created because they still existed and had not been fully deleted yet.  

Resolution

Using Regedit to remove the MySql services and then recreate the three services.

To remove the service, follow these steps:

1. Open RegEdit on the server and navigate to the following path:
 - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
2. Find the "NetQoS MySql" in the Services directory.
3. If it exists, delete it and continue to step 4.  Otherwise, continue to step 4.
4. Reboot the server and then check the services.  The NetQoS MySql service should be gone.

To recreate the services, run the following commands from the command line with Administrator permission:

sc.exe create "NetQoS MySql" binPath= "D:\UserApps\NFA\MySql\bin\mysqld.exe --defaults-file=D:\UserApps\NFA\MySql\my.ini \"NetQoS MySql\"" DisplayName= "CA MySql" start= auto

sc.exe failure "NetQoS MySql" reset= 0 actions= restart/60000

sc.exe create "NetQoS Hunter Tracker Service" binPath= "D:\UserApps\NFA\nqad\bin\NetQoSHunterTracker.exe" error= ignore type= own type= interact start= auto DisplayName= "CA NFA Hunter Tracker Service" depend= "NetQoS MySql"

sc.exe failure "NetQoS Hunter Tracker Service" reset= 0 actions= restart/60000

sc.exe create "NetQoS AD Host Resolver Service" binPath= "D:\UserApps\NFA\nqad\bin\ADHostResolver.exe" error= ignore type= own type= interact start= auto DisplayName= "CA NFA Host Resolver Service" depend= "NetQoS MySql"

sc.exe failure "NetQoS AD Host Resolver Service" reset= 0 actions= restart/60000

After rebooting, you should see all these services up and running.