http://jira.hyperic.com/browse/HHQ-4285
Unable to Stop tc Runtime server via Control Action.
Executing the Stop command via Control Action results in: 'Stop failed. Unable to kill process'.
The command was issued as hqadmin user.
The agent.log reports:
2010-09-08 15:43:42,512 DEBUG [Thread-164] [ActionThread] Adding job 10605 to 2:11514 queue
2010-09-08 15:43:42,512 DEBUG [Thread-164] [ActionThread] Running job 10605
2010-09-08 15:43:42,518 INFO [Thread-164] [TomcatServerControlPlugin] doCommand args=[/opt/springsource/springsource-tc-server-standard/myserver/bin/tcruntime-ctl.sh, stop]
2010-09-08 15:43:42,525 DEBUG [Thread-164] [Execute] Waiting process
2010-09-08 15:43:42,526 DEBUG [Thread-164] [Execute] End waiting, stop threads
2010-09-08 15:43:42,526 DEBUG [Thread-164] [Execute] Watchdog stopped
2010-09-08 15:43:42,642 DEBUG [Thread-164] [Execute] Stream handler stopped
2010-09-08 15:43:42,642 DEBUG [Thread-164] [Execute] Done exit=0 /usr/bin/env
2010-09-08 15:43:42,668 DEBUG [Thread-164] [Execute] Waiting process
.
.
.
2010-09-08 15:44:42,680 INFO [Thread-164] [Execute] waitFor() interrupted
2010-09-08 15:44:42,680 DEBUG [Thread-164] [Execute] End waiting, stop threads
2010-09-08 15:44:42,680 DEBUG [Thread-164] [Execute] Watchdog stopped
2010-09-08 15:44:43,568 DEBUG [Thread-164] [Execute] Stream handler stopped
2010-09-08 15:44:43,568 DEBUG [Thread-164] [Execute] Done exit=2147483647 /opt/springsource/springsource-tc-server-standard/myserver/bin/tcruntime-ctl.sh stop
2010-09-08 15:44:43,568 ERROR [Thread-164] [TomcatServerControlPlugin] Command did not complete within timeout of 60 seconds
2010-09-08 15:44:43,574 WARN [Thread-164] [TomcatServerControlPlugin] Error terminating Tomcat process. Cause: Operation not permitted
Expected Result:
Able to execute Control Action via UI successfully
Actual Result:
Stop Control Action fails
Steps to Reproduce:
1. Install and start hq-agent on platform running tc Server
2. Log into Hyperic
3. Add to inventory from auto-discover
4. Go to Inventory tab and set Configuration Properties for tc Runtime
5. Go to Control tab
6. Select Stop from the Control Action dropdown list
7. Click the Execute (play) button
8. Note the process times out with the reported stop failure
Work around:
None
Additional Information:
Same error ' Error terminating Tomcat process. Cause: Operation not permitted' occurs in agent.log when attempting the 'Restart' Control Action but then shows:
rd/./tcruntime-ctl.sh INFO Instance name: myserver INFO Script directory: /opt/springsource/springsource-tc-server-standard INFO tc Runtime location:/opt/springsource/springsource-tc-server-standard INFO Instance base: /opt/springsource/springsource-tc-server-standard INFO Binary dir: /opt/springsource/springsource-tc-server-standard/tomcat-6.0.29.B.CI-3 INFO Runtime version: 6.0.29.B.CI-3 INFO Script version: 2.5.0.CI-93 ERROR Instance is already running as PID=14011
The tc Server Standard 2.5.0.CI-156 build was used with the springsource-tc-server-hq-plugin-server/agent-2.5.0-Ci-64 build.
Anonymous