HTTP jobs failing after upgrading the System Agent with a status Read timed out
search cancel

HTTP jobs failing after upgrading the System Agent with a status Read timed out

book

Article ID: 268327

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) ESP dSeries Workload Automation - Business Agents (dSeries) ESP dSeries Workload Automation - System Agent (dSeries) Workload Automation Agent Autosys Workload Automation ESP Workload Automation

Issue/Introduction

After upgrading the agent from  from 11.3.07 to 12.1.01, HTTP job executing a POST is failing after 3 minutes with error;


SocketTimeoutException: Read timed out
java.net.SocketTimeoutException: Read timed out
@at java.net.SocketInputStream.socketRead0(Unknown Source)
@at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
@at java.net.SocketInputStream.read(SocketInputStream.java:171)
@at java.net.SocketInputStream.read(SocketInputStream.java:141)
@at org.apache.hc.client5.http.impl.io.LoggingInputStream.read(LoggingInputStream.java:81)
@at org.apache.hc.core5.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:149)
@at org.apache.hc.core5.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
@at org.apache.hc.core5.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:241)
@at org.apache.hc.core5.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:53)
@at org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:298)
@at org.apache.hc.core5.http.impl.io.HttpRequestExecutor.execute(HttpRequestExecutor.java:175)
@at org.apache.hc.core5.http.impl.io.HttpRequestExecutor.execute(HttpRequestExecutor.java:218)
@at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager$InternalConnectionEndpoint.execute(PoolingHttpClientConnectionManager.java:583)
@at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.execute(InternalExecRuntime.java:212)
@at org.apache.hc.client5.http.impl.classic.MainClientExec.execute(MainClientExec.java:105)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
@at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:182)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
@at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:175)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
@at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:96)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
@at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:133)
@at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
@at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:170)
@at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:75)
@at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:89)
@at cybermation.commonservice.transport.http.CybHTTPConnector.a(CybHTTPConnector.java:498)
@at cybermation.commonservice.transport.http.CybHTTPConnector.a(CybHTTPConnector.java:478)
@at cybermation.commonservice.transport.http.CybHTTPConnector.post(CybHTTPConnector.java:543)
@at cybermation.plugins.appservices.handler.httpv1.CybHTTPProcessorPost.executeHttpRequest(CybHTTPProcessorPost.java:98)
@at cybermation.plugins.appservices.handler.httpv1.CybHTTPAbstractProcessor.process(CybHTTPAbstractProcessor.java:149)
@at cybermation.plugins.appservices.handler.CybHTTPHandlerV1.run(CybHTTPHandlerV1.java:172)
@at java.lang.Thread.run(Thread.java:827)

Environment

Release: 12.1.x, 24.0 

Cause

There is no response from the web server after 3 minutes so job failed with a status 'Read timed out' as the default timeout changed after Workload Automation System Agent 12.0 from 0 (no timeout) to 180 seconds (3 minutes). 

Resolution

Increase the http client timeout for the agent or set the value to 0 (no timeout) in agentparm.txt and restart the agent.

Example:

http.client.timeout=1800

This sets the timeout to 1800 seconds (30 minutes).

 

Additional Information