JBoss ON UI RHQ Agent Operation "Execute Prompt Command" reports as failed for inventory -s
Issue
- When syncing agent from JBoss ON UI, the operation always fails with below error message, But using agent command line ">inventory -s" doesn't generate the error:
java.lang.RuntimeException: Call to [org.rhq.plugins.agent.AgentServerComponent.invokeOperation()] with args [[executePromptCommand, Configuration[id=16985]]] was rudely interrupted.
at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:560)
at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:542)
at com.sun.proxy.$Proxy86.invokeOperation(Unknown Source)
at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:217)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1038)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:257)
at java.util.concurrent.FutureTask.get(FutureTask.java:119)
at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:554)
... 6 more
- In the agent.log, there is the entry:
2015-04-29 13:33:46,784 WARN [ResourceContainer.invoker.nonDaemon-1] (rhq.core.pc.inventory.InventoryManager)- Plugin Error: Failed to stop component for [Resource[id=10002, uuid=fa92e78e-4049-41f5-8bf6-6fd329de76b3, type={RHQAgent}RHQ Agent, key=localhost RHQ Agent, name=RHQ Agent, parent=localhost, version=4.4.0.JON312GA]].
org.rhq.core.pc.inventory.TimeoutException: Call to [org.rhq.plugins.agent.AgentServerComponent.stop()] with args [] timed out after 5000 milliseconds - invocation thread will be interrupted.
at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:574)
Environment
- Red Hat JBoss Operations Network (ON) 3.1.2, 3.3.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.