iyyappan1985eee
Contributor
Contributor

HQ Agent not starting properly. Unable to send autoinventory platform data to server

Hi All,

       

Server RHEL 5.9

HQ Server - 4.4.0

HQ Agent - Windows

HQ Agent Version - 4.4.0

Initially HQ agent in windows was installed and working fine.. Post  some plugin deployment in Agent and server side, agent is not communicating with Server properly. 

Agent Logs

=========

error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:29:48,010 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:29:48,534 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:31:01,773 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 50 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:31:45,449 ERROR [Thread-1] [SSLConnectionListener] Rejecting client from /*:.*.*.*  Passed an invalid auth token (1372105007729-2177401052998788304-4549319728569690623)

org.hyperic.hq.bizapp.agent.TokenNotFoundException: Token not found

    at org.hyperic.hq.bizapp.agent.TokenManager.getToken(TokenManager.java:147)

    at org.hyperic.hq.bizapp.agent.server.SSLConnectionListener.handleNewConn(SSLConnectionListener.java:102)

Server Logs

=========

2013-06-29 00:38:37,786 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.ScanState@548] Server not added because another scan method already detected it:[AIServerExtValue: {queueStatus=0 customProperties=[B@78389d86 productConfig=[B@4cee0613 controlConfig=null measurementConfig=[B@1ed0f0da responseTimeConfig=null diff=0 ignored=false serverTypeName=Active Directory name=NY2PDC Active Directory autoinventoryIdentifier=C:\Windows\NTDS installPath=C:\Windows\NTDS description=null servicesAutomanaged=false id=null mTime=null cTime=1372335272136} ExtServices=]

2013-06-29 00:38:37,787 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@698] Received auto-inventory report from AgentMachine ; IPs -> 192.168.215.25,127.0.0.1; CertDN -> CAM-AGENT-1372090762852-6052812090061276900-2160452068520360577; (8 servers)

2013-06-29 00:38:37,788 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.ScanState@548] Server not added because another scan method already detected it:[AIServerExtValue: {queueStatus=0 customProperties=[B@78389d86 productConfig=[B@4cee0613 controlConfig=null measurementConfig=[B@1ed0f0da responseTimeConfig=null diff=0 ignored=false serverTypeName=Active Directory name=AgentMachine Active Directory autoinventoryIdentifier=C:\Windows\NTDS installPath=C:\Windows\NTDS description=null servicesAutomanaged=false id=null mTime=null cTime=1372335272136} ExtServices=]

2013-06-29 00:38:37,796 ERROR [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@741] Ignoring non-existent server type: Active Directory 2008

javax.ejb.FinderException: name not found: Active Directory 2008

        at org.hyperic.hq.appdef.server.session.ServerManagerEJBImpl.findServerTypeByName(ServerManagerEJBImpl.java:708)

        at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

2013-06-29 00:38:37,807 INFO  [Thread-2882] [org.hyperic.hq.appdef.server.session.AI2AppdefDiff@471] CpuCount changed for AgentMachine from: 4, to: 2

2013-06-29 00:38:37,811 INFO  [Thread-2882] [org.hyperic.hq.appdef.server.session.AIQSynchronizer@106] Queueing new platform: AgentMachine

2013-06-29 00:38:37,819 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@778] reassigning platform agent (fqdn=AgentMachine,id=10111) from={address=192.168.215.25 port=2144 authToken=1372110843468-7806543436836096273-8442563087520726054  to={address=192.168.215.35 port=2144 authToken=1372105007729-2177401052998788304-4549319728569690623

2013-06-29 00:38:37,825 WARN  [Thread-2882] [org.hibernate.util.JDBCExceptionReporter@77] SQL Error: 1062, SQLState: 23000

2013-06-29 00:38:37,827 ERROR [Thread-2882] [org.hibernate.util.JDBCExceptionReporter@78] Duplicate entry 'AgentMachinel' for key 2

2013-06-29 00:38:37,828 ERROR [Thread-2882] [org.hibernate.event.def.AbstractFlushingEventListener@301] Could not synchronize database state with session

org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)

        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

        at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)

        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)

        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)

Server to Agent and Agent to Server telnet is communicating fine.   We tried removing the deployed plugin and restart the agent by deleting data folder, but facing same issue.

0 Kudos
1 Reply
BharaniRaviKant
Contributor
Contributor

hello iyyappan,

can you explain in detail what exactly your custom plugin does.

regards,

R Bharani Ravi Kanth

0 Kudos