Re: Unable to start service OvCtrl The handle is invalid. (6) (2052 Views)
Reply
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 1 of 26 (7,774 Views)
Accepted Solution

Unable to start service OvCtrl The handle is invalid. (6)

Hi,

Below error is getting when trying to start ovc.

C:\Program Files\HP\HP BTO Software\bin>ovc -start
Unable to start service OvCtrl
The handle is invalid. (6)

Kindly help.

Regards
Please use plain text.
Valued Contributor
Suresh Reddy_1
Posts: 230
Registered: ‎09-03-2009
Message 2 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Can you check ovcert -check it should give OK . Try to klll the agent completely and restart ovc -kill and ovc -start.

I think you might have checked 383 port is opened from Node ,bbcutil -ping .

Thanks & Regards,
Suresh Reddy.
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 3 of 26 (7,775 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi Suresh,

Pleasr refer below output.

C:\Program Files\HP\HP BTO Software\bin>ovcert -status
Status: Undefined (Certificate Client could not be contacted).

C:\Program Files\HP\HP BTO Software\bin>ovcert -check

OvCoreId set : OK
Private key installed : OK
Certificate installed : OK
Certificate valid : OK
Trusted certificates installed : OK
Trusted certificates valid : OK

Check succeeded.

C:\Program Files\HP\HP BTO Software\bin>ovcert -list
+---------------------------------------------------------+
| Keystore Content |
+---------------------------------------------------------+
| Certificates: |
| b038cf42-5656-7539-1da1-e1ae810f77f8 (*) |
+---------------------------------------------------------+
| Trusted Certificates: |
| CA_22cff6a8-6e9f-7532-0787-f279c0e8874d |
| CA_9708f782-a745-7539-1dc9-ea84a17f0072 |
+---------------------------------------------------------+


C:\Program Files\HP\HP BTO Software\bin>ovc -start
Unable to start service OvCtrl
The handle is invalid. (6)
Please use plain text.
Valued Contributor
Suresh Reddy_1
Posts: 230
Registered: ‎09-03-2009
Message 4 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Dear Sumit,

Out put should be like this:
C:\Documents and Settings\emsadmin>ovcert -status
Status: Certificate is installed.

But in your case:
C:\Program Files\HP\HP BTO Software\bin>ovcert -status
Status: Undefined (Certificate Client could not be contacted).

That means Agent certificate is not trusted or not installed properly.

Can you do below steps:
1.ovcert -remove
(removing all the certificates from node)
2.ovcert -certrq
(Retriggering the certificate)
3.Grant the certificate from OM server and check the ovcert -status if it is ok then kill the complate agent and start.

Thanks & Regards,
Suresh Reddy.
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 5 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

I cannot execute ovcert -certreq from node because ovc is not running.

Please use plain text.
Respected Contributor
Dubey
Posts: 664
Registered: ‎10-22-2008
Message 6 of 26 (7,773 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi ,


Try below things:-

(1) Check the nslookup from both end.
(2) check the bbc ping command and I think its issue with communication between agent and server.
(3) check system.txt for latest entry in log file.
(4)Check the coreid ,agent coreid would be same at both end.

Regards,
N.Dubey
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 7 of 26 (7,773 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

everything seems ok except bbcutil -ping from Management server.
From Node:

C:\Program Files\HP\HP BTO Software\bin>bbcutil -ping http://vpovo

http://vpovo: status=eServiceOK coreID=22cff6a8-6e9f-7532-0787-f279c0e8874d
bbcV=06.10.065 appN=ovbbccb appV=06.10.065 conn=150 time=78 ms


From Management server:

bbcutil -ping http://10.1.13.10

http://10.1.13.10: (bbc-289) status=eCBUnavailable time=3 ms

Please use plain text.
Respected Contributor
Dubey
Posts: 664
Registered: ‎10-22-2008
Message 8 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

HI,

Its clear that there is not any communitcation between mangement server and managed node.Management server is not able to communicate with managed node.Now please let me know below:-

(1) Do you have upgraded the agent version?What version of agent you are using?

(2) Do you have any other HPOV agent installed on the same server.

(3) Try to kill services manually and start .Then if you are still not able to solve issue ,send me the latest system.txt file.

(4) Check the core ID it should be same in both management server and managednode.Also make sure status of managed node coreifd should be installed.

Regards,
N.Dubey

Regards,
N.Dubey

Please use plain text.
Valued Contributor
Suresh Reddy_1
Posts: 230
Registered: ‎09-03-2009
Message 9 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Can you share system.txt.
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 10 of 26 (7,772 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi Dubey,

1) Yes upgraded the agent from 8.13 to 8.53
Agent version is:
C:\Program Files\HP\HP BTO Software\bin>opcagt -version
8.53.7

2)No other HPOV agent installed on the same server.

3)Killed and started again but same error exists.

4)coreid is same same on both management server and managednode and status is ok.

System.txt logs


0: ERR: Mon May 31 13:22:46 2010: ovc (6928/7324): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Mon May 31 13:22:46 2010: ovc (6928/7324): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 15:50:16 2010: ovc (7880/3152): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 15:50:16 2010: ovc (7880/3152): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 15:50:23 2010: ovc (3436/1756): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 15:50:23 2010: ovc (3436/1756): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 17:13:43 2010: ovc (6908/2356): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 17:13:43 2010: ovc (6908/2356): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 17:20:39 2010: ovc (7984/636): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 17:20:39 2010: ovc (7984/636): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 17:22:26 2010: ovc (8012/6868): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 17:22:26 2010: ovc (8012/6868): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 17:23:55 2010: ovc (6056/5900): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 17:23:55 2010: ovc (6056/5900): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 18:11:19 2010: ovc (6484/6244): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 18:11:19 2010: ovc (6484/6244): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 19:23:45 2010: ovc (2536/3628): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 19:23:45 2010: ovc (2536/3628): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 19:23:55 2010: ovc (6908/4400): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 19:23:55 2010: ovc (6908/4400): (ctrl-102) Could not start ovcd. Error while starting the service.

Regards
Please use plain text.
Respected Contributor
Dubey
Posts: 664
Registered: ‎10-22-2008
Message 11 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi,

The problem will occur if during the agent upgrade a problem occurs which stops the agent upgrade from completing correctly. If the end result of the failied installation is that the "HP Openview Ctrl Service" service is not registered in Control Panel > Services then the agent will not start


So try below:-

(1) Make sure the file ovcd.exe exists in the %OvAgentDir%\bin folder.

(2)If the file exists, then manually register the service with the following command:
ovcd -install

(3) Check Control Panel > Services so as to make sure the "HP Openview Ctrl Service" service has registered correctly, and then start the service.


Share again system.txt ,if above opertion fails to start services.

Regards,
ND
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 12 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Attached is System.txt file.
Please use plain text.
Trusted Contributor
Michal Kovacik
Posts: 79
Registered: ‎07-17-2008
Message 13 of 26 (7,769 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

If you have not done it already, you might also try a reboot to clean up if there are any handles being held by some hanging components...
Please use plain text.
Frequent Advisor
Sumit Kumar_1
Posts: 69
Registered: ‎02-23-2010
Message 14 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi,

The file ovcd.exe exists in the %OvAgentDir%\bin folder and the execution of ovcd -install is showing

C:\Program Files\HP\HP BTO Software\bin>ovcd -install
Unable to install OvCtrlas a service.
The specified service already exists. (1073)

System.txt file contains

0: ERR: Wed Jun 02 19:23:45 2010: ovc (2536/3628): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 19:23:45 2010: ovc (2536/3628): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Wed Jun 02 19:23:55 2010: ovc (6908/4400): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Wed Jun 02 19:23:55 2010: ovc (6908/4400): (ctrl-102) Could not start ovcd. Error while starting the service.
0: ERR: Thu Jun 03 12:39:38 2010: ovc (7268/3960): (ctrl-79) Could not start a service 'OvCtrl': 'The handle is invalid. (6)'.
0: ERR: Thu Jun 03 12:39:38 2010: ovc (7268/3960): (ctrl-102) Could not start ovcd. Error while starting the service.


This server was rebooted also but no luck.


Regards
Sumit Kumar
Please use plain text.
Respected Contributor
Dubey
Posts: 664
Registered: ‎10-22-2008
Message 15 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi Sumit,

Have you check if your managed node begind firewall and comunication is not happpening between both devices.

Also make sure node have administrative right to HP-ove-deleg-user ,try to ececute these command with launching command prompt of admin user.

Regards,
ND
Please use plain text.
Advisor
PFerreira
Posts: 16
Registered: ‎02-15-2007
Message 16 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi Sumit,

Have you found a solution for this issue?
I'm having the same problem with windows 2008 managed servers.

Thanks and Best Regards,

Paulo
Please use plain text.
Advisor
Masood P Sharif
Posts: 23
Registered: ‎08-10-2010
Message 17 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)


I too, am having the same problem but only on some Win2k8 servers. Others are OK.
Please use plain text.
Advisor
PFerreira
Posts: 16
Registered: ‎02-15-2007
Message 18 of 26 (7,770 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Hi Masood and others,

Try the procedure below:

Start menu --> all programs --> right click on command prompt and select Run as Administrator

Then, on command prompt window, execute the ovc -start command.

I Hope this work...

Paulo
Please use plain text.
Advisor
Masood P Sharif
Posts: 23
Registered: ‎08-10-2010
Message 19 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)


Thanks for your help. That was exactly what was wrong and has fixed it.

I'll award some points as soon as I work out how to.
Please use plain text.
Advisor
PFerreira
Posts: 16
Registered: ‎02-15-2007
Message 20 of 26 (7,768 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

I believe that you won't get assign points to me, because this topic was opened for another person.
Please use plain text.
Advisor
Masood P Sharif
Posts: 23
Registered: ‎08-10-2010
Message 21 of 26 (7,757 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)


I need to work how ta anyway from a previous thread I created. Since I am in Switzerland the site automatically changes language to German and I cant speak or read German. Its very frustrating. Every site seems to do this without giving you an option of reverting to English.
Please use plain text.
Occasional Visitor
Stefo
Posts: 1
Registered: ‎05-24-2013
Message 22 of 26 (3,687 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

[ Edited ]

maybe agent was upgrade, but not service...

 

try recreate service:

sc delete OvCtrl
ovcd -install

 

 

Please use plain text.
Occasional Visitor
Na08
Posts: 1
Registered: ‎12-10-2013
Message 23 of 26 (2,088 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

I am facing the same issue and when i tried to check the certificate status, got the following output, what do i do now??

 

 

C:\Documents and Settings\admin_chinken>ovcert -check

OvCoreId set : OK
Private key installed : FAILED
Certificate installed : FAILED
Certificate valid : FAILED
Trusted certificates installed : FAILED
Trusted certificates valid : FAILED

Please use plain text.
Honored Contributor
m_vidyasagar
Posts: 547
Registered: ‎04-21-2011
Message 24 of 26 (2,078 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

Request a new certificate using the following command :

 

ovcert -certreq

 

Later grant the certificate from the mgmt server

- Vidyasagar Machani -

Tell me and I forget. Teach me and I remember. Involve me and I learn. -- Benjamin Franklin
Please use plain text.
Honored Contributor
m_vidyasagar
Posts: 547
Registered: ‎04-21-2011
Message 25 of 26 (2,052 Views)

Re: Unable to start service OvCtrl The handle is invalid. (6)

If its not working then manually generate the certificate on the mgmt server and then import the certificate on the agent ..

 

Generating the certificate on the mgmt server :

 

ovcm -issue -file C:\agent_certificate -name <agent_node_name> -pass <Password> -coreid <agent_coreid>

 

Importing the Certificate on the agent :

 

Copy the agent_certificate file from the mgmg server generated in the above step and execute the below command ..

 

ovcert -importcert -file <Path\agent_certificate> -pass <PAssword_Which_You_Gave_Earlier>

 

Hope this helps you.

 

- Vidyasagar Machani -

Tell me and I forget. Teach me and I remember. Involve me and I learn. -- Benjamin Franklin
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation