Menu

#4323 [HHQ-4206] Re-registering the agent using hq-agent.sh setup

Bug
open
None
3
2012-10-09
2010-08-14
No

http://jira.hyperic.com/browse/HHQ-4206
From SUPPORT-8552:



Re-registering the agent using hq-agent.sh setup between unidirectional and bi-directional can prevent the agent from registering.


After the steps below and the exception, the user will need to remove the table entries manually from the database.



Steps to Reproduce:



1.) Install bidirectional agent


2.) Stop that agent and delete it's data dir


3.) Install unidirectional agent for same platform


(at this point you should have one eam_agent entry for both)


4.) Don't delete data dir and leave agent running


5.) Run hq-agent.sh setup


6.) Stop agent and delete data dir


7.) Start agent and try to register with bidirectional again.



You will see something like this:


Starting HQ Agent...


[ Running agent setup ]


Should Agent communications to HQ be unidirectional [default=no]:


What is the HQ server IP address: 127.0.0.1


Should Agent communications to HQ always be secure [default=no]: yes


What is the HQ server SSL port [default=7443]: 7443


- Testing secure connection ... Success


What is your HQ login [default=hqadmin]: hqadmin


What is your HQ password: Not echoing value


What IP should HQ use to contact the agent [default=192.168.42.171]: 192.168.42.171


What port should HQ use to contact the agent [default=2144]: 2144


- Received temporary auth token from agent


- Registering agent with HQ


org.hyperic.hq.bizapp.client.AgentCallbackClientException: Remote error while invoking 'registerAgent: org.hyperic.lather.LatherRemoteException: Runtime exception: RuntimeException


at org.hyperic.hq.bizapp.client.AgentCallbackClient.invokeLatherCall(AgentCallbackClient.java:201)


at org.hyperic.hq.bizapp.client.BizappCallbackClient.registerAgent(BizappCallbackClient.java:135)


at org.hyperic.hq.bizapp.agent.client.AgentClient.cmdSetup(AgentClient.java:808)


at org.hyperic.hq.bizapp.agent.client.AgentClient.cmdSetupIfNoProvider(AgentClient.java:517)


at org.hyperic.hq.bizapp.agent.client.AgentClient.main(AgentClient.java:1257)


Caused by: org.hyperic.lather.LatherRemoteException: org.hyperic.lather.LatherRemoteException: Runtime exception: RuntimeException


at org.hyperic.lather.client.LatherHTTPClient.invoke(LatherHTTPClient.java:124)


at org.hyperic.hq.bizapp.client.AgentCallbackClient.invokeLatherCall(AgentCallbackClient.java:157)


... 4 more


- Error registering agent: Remote error while invoking 'registerAgent: org.hyperic.lather.LatherRemoteException: Runtime exception: RuntimeException

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.