Sam_Liu Respected Contributor.
Respected Contributor.
140 views

(OO) Support Tip: Remote command timed out after 20 minutes

On an Operations Orchestration (OO) central, remote command with timeout value of 3600000 (1 hour) is used to call PowerCLI command as the PowerCLI command needs a long time to return result. However the remote command returns exception after 20 minutes.

(command=powershell -file d:\media\vm_deploy_oo.ps1 -exscluster "MGMTCLUS01" -VMfolder "LAB\MGMT\testing\HPSA Admin" -IPAddress 10.111.3.32 -NetMask 255.255.255.128 -Gateway "10.111.3.1"-DNS "49.10.68.10" -VMOS Win2k12R2 -VMName autowin01 -Disk2 5 -Disk3 5 -NumberofCPU 1), (host=localhost), (timeout=3600000), (protocol=local)
{FailureMessage=AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.SocketTimeoutException: Read timed out faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.HttpParser.readRawLine(Unknown Source) at org.apache.commons.httpclient.HttpParser.readLine(Unknown Source) at org.apache.commons.httpclient.HttpConnection.readLine(Unknown Source) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source) at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source) at com.iconclude.dharma.commons.http.axis.DharmaHttpSender.invoke(DharmaHttpSender.java:286) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.iconclude.webservices.ras.RCAgentServiceSoapBindingStub.execute(RCAgentServiceSoapBindingStub.java:425) at com.iconclude.dharma.model.operations.extensions.RASServiceClient.execute(RASServiceClient.java:89) at com.iconclude.dharma.model.operations.WebOperation.execute(WebOperation.java:505) at com.iconclude.dharma.runengine.steppipeline.ExecOp._execute(ExecOp.java:34) at com.iconclude.dharma.runengine.steppipeline.AbstractRunStepPipelineObject.execute(AbstractRunStepPipelineObject.java:52) at com.iconclude.dharma.runengine.impl.RunImpl.cycle(RunImpl.java:867) at com.iconclude.dharma.runengine.impl.RunImpl.access$600(RunImpl.java:105) at com.iconclude.dharma.runengine.impl.RunImpl$CycleTask$1.call(RunImpl.java:747) at com.iconclude.dharma.runengine.impl.RunImpl$CycleTask$1.call(RunImpl.java:745) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {http://xml.apache.org/axis/}hostname:BFAASVCP01SAU java.net.SocketTimeoutException: Read timed out at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at com.iconclude.dharma.commons.http.axis.DharmaHttpSender.invoke(DharmaHttpSender.java:392) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.iconclude.webservices.ras.RCAgentServiceSoapBindingStub.execute(RCAgentServiceSoapBindingStub.java:425) at com.iconclude.dharma.model.operations.extensions.RASServiceClient.execute(RASServiceClient.java:89) at com.iconclude.dharma.model.operations.WebOperation.execute(WebOperation.java:505) at com.iconclude.dharma.runengine.steppipeline.ExecOp._execute(ExecOp.java:34) at com.iconclude.dharma.runengine.steppipeline.AbstractRunStepPipelineObject.execute(AbstractRunStepPipelineObject.java:52) at com.iconclude.dharma.runengine.impl.RunImpl.cycle(RunImpl.java:867) at com.iconclude.dharma.runengine.impl.RunImpl.access$600(RunImpl.java:105) at com.iconclude.dharma.runengine.impl.RunImpl$CycleTask$1.call(RunImpl.java:747) at com.iconclude.dharma.runengine.impl.RunImpl$CycleTask$1.call(RunImpl.java:745) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.HttpParser.readRawLine(Unknown Source) at org.apache.commons.httpclient.HttpParser.readLine(Unknown Source) at org.apache.commons.httpclient.HttpConnection.readLine(Unknown Source) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source) at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source) at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source) at com.iconclude.dharma.commons.http.axis.DharmaHttpSender.invoke(DharmaHttpSender.java:286) ... 23 more ;}

The Problem can be fixed by making the following changes,

1). Add the -Dras.client.timeout=3600 in the Studio.l4j.ini under Studio local directory.
2). Add the wrapper.java.additional.(n)=-Dras.client.timeout=3600 in the wrapper.conf under Central directory.
3). Restart OO services.

Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.