com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK

Jenkins JIRA | Rafael Ximenes | 3 months ago
  1. 0

    [JIRA] (JENKINS-37894) Unmarshall error when provisoning instance

    Google Groups | 3 months ago | rxim...@ciandt.com (JIRA)
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK
  2. 0

    I opted to provide slaves on demand using Amazon EC2 Plugin, but sometimes it takes 30+ minutes to spawn an Instance. All I have in Jenkins logs are some exceptions like the one below. Then.. with no apparent reason it works.. I don't know if it is a serious problem or not since the stacktrace is not clear to me. {code:java} Exception during provisioning com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1219) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:874) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:597) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:363) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:329) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:308) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:13032) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:9133) at com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:12577) at hudson.plugins.ec2.SlaveTemplate.getAmiBlockDeviceMappings(SlaveTemplate.java:671) at hudson.plugins.ec2.SlaveTemplate.getNewEphemeralDeviceMapping(SlaveTemplate.java:628) at hudson.plugins.ec2.SlaveTemplate.setupEphemeralDeviceMapping(SlaveTemplate.java:658) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:458) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:515) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:532) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:798) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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:745) Caused by: com.ctc.wstx.exc.WstxIOException: Read timed out at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086) at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306) at com.amazonaws.transform.StaxUnmarshallerContext.nextEvent(StaxUnmarshallerContext.java:207) at com.amazonaws.services.ec2.model.transform.BlockDeviceMappingStaxUnmarshaller.unmarshall(BlockDeviceMappingStaxUnmarshaller.java:42) at com.amazonaws.services.ec2.model.transform.ImageStaxUnmarshaller.unmarshall(ImageStaxUnmarshaller.java:123) at com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:47) at com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:32) at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:99) at com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:42) at com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1174) ... 27 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:554) at sun.security.ssl.InputRecord.read(InputRecord.java:509) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:903) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:206) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:174) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:72) at com.amazonaws.event.ProgressInputStream.read(ProgressInputStream.java:151) at java.io.FilterInputStream.read(FilterInputStream.java:107) at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365) at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110) at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84) at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046) at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1796) at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1756) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2914) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) ... 36 more {code}

    Jenkins JIRA | 3 months ago | Rafael Ximenes
    com.amazonaws.AmazonClientException: Unable to unmarshall response (Read timed out). Response Code: 200, Response Text: OK
  3. 0

    Read timed out:程序直接结束掉了

    GitHub | 3 months ago | YdjJervis
    java.net.SocketTimeoutException: Read timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [lantern] Error connecting to and reading from statshub

    GitHub | 2 years ago | oxtoacart
    java.net.SocketTimeoutException: Read timed out
  6. 0

    Not sure what this is, said fault in it :/

    GitHub | 3 years ago | tronman2020
    java.net.SocketTimeoutException: Read timed out

  1. Nikolay Rybak 1 times, last 2 months ago
  2. tvrmsmith 1 times, last 4 months ago
  3. poroszd 3 times, last 5 months ago
  4. aldrinleal 1 times, last 5 months ago
  5. poroszd 2 times, last 8 months ago
11 more registered users
70 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:152)
    3. java.net.SocketInputStream.read(SocketInputStream.java:122)
    3 frames
  3. Java JSSE
    AppInputStream.read
    1. sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
    2. sun.security.ssl.InputRecord.readV3Record(InputRecord.java:554)
    3. sun.security.ssl.InputRecord.read(InputRecord.java:509)
    4. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
    5. sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:903)
    6. sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    6 frames
  4. Apache Http
    ChunkedInputStream.read
    1. org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
    2. org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
    3. org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:206)
    4. org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:174)
    4 frames
  5. Apache HttpClient
    EofSensorInputStream.read
    1. org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
    1 frame
  6. AWS SDK for Java - Core
    ProgressInputStream.read
    1. com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:72)
    2. com.amazonaws.event.ProgressInputStream.read(ProgressInputStream.java:151)
    2 frames
  7. Java RT
    FilterInputStream.read
    1. java.io.FilterInputStream.read(FilterInputStream.java:107)
    1 frame
  8. Woodstox
    WstxEventReader.peek
    1. com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365)
    2. com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
    3. com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
    4. com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
    5. com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046)
    6. com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1796)
    7. com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1756)
    8. com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2914)
    9. com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)
    10. com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
    11. com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306)
    11 frames
  9. AWS SDK for Java - Core
    StaxUnmarshallerContext.nextEvent
    1. com.amazonaws.transform.StaxUnmarshallerContext.nextEvent(StaxUnmarshallerContext.java:207)
    1 frame
  10. AWS Java SDK for Amazon EC2
    DescribeImagesResultStaxUnmarshaller.unmarshall
    1. com.amazonaws.services.ec2.model.transform.BlockDeviceMappingStaxUnmarshaller.unmarshall(BlockDeviceMappingStaxUnmarshaller.java:42)
    2. com.amazonaws.services.ec2.model.transform.ImageStaxUnmarshaller.unmarshall(ImageStaxUnmarshaller.java:123)
    3. com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:47)
    4. com.amazonaws.services.ec2.model.transform.DescribeImagesResultStaxUnmarshaller.unmarshall(DescribeImagesResultStaxUnmarshaller.java:32)
    4 frames
  11. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:99)
    2. com.amazonaws.http.StaxResponseHandler.handle(StaxResponseHandler.java:42)
    3. com.amazonaws.http.AmazonHttpClient.handleResponse(AmazonHttpClient.java:1174)
    4. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:874)
    5. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:597)
    6. com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:363)
    7. com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:329)
    8. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:308)
    8 frames
  12. AWS Java SDK for Amazon EC2
    AmazonEC2Client.describeImages
    1. com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:13032)
    2. com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:9133)
    3. com.amazonaws.services.ec2.AmazonEC2Client.describeImages(AmazonEC2Client.java:12577)
    3 frames
  13. hudson.plugins.ec2
    EC2Cloud.provision
    1. hudson.plugins.ec2.SlaveTemplate.getAmiBlockDeviceMappings(SlaveTemplate.java:671)
    2. hudson.plugins.ec2.SlaveTemplate.getNewEphemeralDeviceMapping(SlaveTemplate.java:628)
    3. hudson.plugins.ec2.SlaveTemplate.setupEphemeralDeviceMapping(SlaveTemplate.java:658)
    4. hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:458)
    5. hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377)
    6. hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:515)
    7. hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:532)
    7 frames
  14. Hudson
    SafeTimerTask.run
    1. hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701)
    2. hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307)
    3. hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60)
    4. hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:798)
    5. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
    5 frames
  15. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    7. java.lang.Thread.run(Thread.java:745)
    7 frames