We're running 3.4.8 and just migrated our ctier VM from a slow box to
a fast box. Some commands will work, but others are giving the below
error. Once that error starts, no command will run as they will all
fail with the same error. The error is on the ctier server who is
dispatching the commands to a site. You can see that the command was
dispatched and ran successfully on the node, but when the results were
returned, the server gave the error. The commands run fine if run
directly on the node.
Why does this error happen, and how do I clean up and stop it?
--snipped from verbose output--
number of nodes to dispatch to: 1, (1 threads)
preparing for sequential execution...
returning RemoteCommand object for command: Status
SSHExec vapp11.atls1 -> "ctl -p Stage1 -t SPTomcatServiceModule -o
sso.app.vapp11.atls1 -c Status"
dispatching to proxy on node: vapp11.atls1
Connecting to vapp11.atls1:22
cmd : ctl -p Stage1 -t SPTomcatServiceModule -o sso.app.vapp11.atls1 -
c Status
[a...@vapp11.atls1 Stage1.SPTomcatServiceModule.sso.app.vapp11.atls1
Status][INFO] begin workflow command (1/1) -> "assertServiceIsUp " ...
[a...@vapp11.atls1 Stage1.SPTomcatServiceModule.sso.app.vapp11.atls1
assertServiceIsUp][WARN] OUTPUT SUCCESS Service listening on
"vapp11.atls1:19101",
sso.app is up.
[a...@vapp11.atls1 Stage1.SPTomcatServiceModule.sso.app.vapp11.atls1
Status][INFO] end workflow command (1/1) -> "assertServiceIsUp "
Overriding previous definition of property "result"
-post-execute:
execute:
Exiting /opt/ctier/ctl/depots/Stage1/modules/Site/commands/Status.xml.
Overriding previous definition of property "result"
Overriding previous definition of property "result"
Command failed:
/opt/ctier/ctl/depots/Stage1/modules/Site/commands/Status.xml:29:
java.nio.channels.OverlappingFileLockException
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run
(Parallel.java:428)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.nio.channels.OverlappingFileLockException
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList
(FileChannelImpl.java:1170)
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add
(FileChannelImpl.java:1072)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:834)
at java.nio.channels.FileChannel.lock(FileChannel.java:860)
at com.controltier.ctl.cli.ctldeploy.GetServerFile.execute
(GetServerFile.java:133)
at
com.controltier.ctl.cli.ctldeploy.DeploymentUtils.updateDeploymentsProperties
(DeploymentUtils.java:111)
at
com.controltier.ctl.tasks.controller.node.NodeDispatchAction.perform
(NodeDispatchAction.java:54)
at com.controltier.ctl.types.controller.ExecuteAction.perform
(ExecuteAction.java:136)
at
com.controltier.ctl.tasks.controller.Controller.performExecuteAction
(Controller.java:353)
at com.controltier.ctl.tasks.controller.Controller.execute
(Controller.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
... 3 more
--- Nested Exception ---
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList
(FileChannelImpl.java:1170)
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add
(FileChannelImpl.java:1072)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:834)
at java.nio.channels.FileChannel.lock(FileChannel.java:860)
at com.controltier.ctl.cli.ctldeploy.GetServerFile.execute
(GetServerFile.java:133)
at
com.controltier.ctl.cli.ctldeploy.DeploymentUtils.updateDeploymentsProperties
(DeploymentUtils.java:111)
at
com.controltier.ctl.tasks.controller.node.NodeDispatchAction.perform
(NodeDispatchAction.java:54)
at com.controltier.ctl.types.controller.ExecuteAction.perform
(ExecuteAction.java:136)
at
com.controltier.ctl.tasks.controller.Controller.performExecuteAction
(Controller.java:353)
at com.controltier.ctl.tasks.controller.Controller.execute
(Controller.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run
(Parallel.java:428)
at java.lang.Thread.run(Thread.java:619)