java.net.SocketTimeoutException: timeout

Jenkins JIRA | Leandro Lucarella | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [JIRA] [github-plugin] (JENKINS-34144) Don't fail the job if setting the GitHub status fails

    Google Groups | 1 year ago | leandro....@sociomantic.com (JIRA)
    java.net.SocketTimeoutException: timeout
  2. 0

    If setting the commit status fails, for example because of a timeout, an exception is thrown and the job is marked as failed, which I think is not a reasonable option, as there is nothing wrong with the build itself. It would be better to just report the problem in some way but keep the job status intact. Example: {noformat} Setting commit status on GitHub for https://github.com/some/repo/commit/7304040cd2d63d15cbe922e23fd6dac7ad86bca8 ERROR: Step ‘Set build status on GitHub commit’ aborted due to exception: java.net.SocketTimeoutException: timeout at okio.Okio$3.newTimeoutException(Okio.java:207) at okio.AsyncTimeout.exit(AsyncTimeout.java:261) at okio.AsyncTimeout$2.read(AsyncTimeout.java:215) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:306) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:300) at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196) at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191) at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80) at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:906) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:782) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:444) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:389) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:502) at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105) at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25) at org.kohsuke.github.Requester.parse(Requester.java:479) at org.kohsuke.github.Requester._to(Requester.java:236) at org.kohsuke.github.Requester.to(Requester.java:203) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:854) at com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:142) at com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:111) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:190) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) 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 okio.Okio$2.read(Okio.java:139) at okio.AsyncTimeout$2.read(AsyncTimeout.java:211) ... 28 more Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | Leandro Lucarella
    java.net.SocketTimeoutException: timeout
  3. 0

    If setting the commit status fails, for example because of a timeout, an exception is thrown and the job is marked as failed, which I think is not a reasonable option, as there is nothing wrong with the build itself. It would be better to just report the problem in some way but keep the job status intact. Example: {noformat} Setting commit status on GitHub for https://github.com/some/repo/commit/7304040cd2d63d15cbe922e23fd6dac7ad86bca8 ERROR: Step ‘Set build status on GitHub commit’ aborted due to exception: java.net.SocketTimeoutException: timeout at okio.Okio$3.newTimeoutException(Okio.java:207) at okio.AsyncTimeout.exit(AsyncTimeout.java:261) at okio.AsyncTimeout$2.read(AsyncTimeout.java:215) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:306) at okio.RealBufferedSource.indexOf(RealBufferedSource.java:300) at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196) at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191) at com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80) at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:906) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:782) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:444) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:389) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:502) at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105) at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25) at org.kohsuke.github.Requester.parse(Requester.java:479) at org.kohsuke.github.Requester._to(Requester.java:236) at org.kohsuke.github.Requester.to(Requester.java:203) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:854) at com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:142) at com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:111) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:190) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) 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 okio.Okio$2.read(Okio.java:139) at okio.AsyncTimeout$2.read(AsyncTimeout.java:211) ... 28 more Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | Leandro Lucarella
    java.net.SocketTimeoutException: timeout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OTX Alienvault - block produce stack trace

    GitHub | 3 months ago | jalogisch
    java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: Could not load OTX response.
  6. 0

    OTX Alienvault - block produce stack trace

    GitHub | 3 months ago | jalogisch
    java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: Could not load OTX response.

  1. Hronom 1 times, last 4 months ago
  2. Andreas Häber 1 times, last 1 week ago
  3. tvrmsmith 3 times, last 3 months ago
  4. Alireza Mohamadi 22 times, last 3 months ago
  5. Tahir 2 times, last 7 months ago
22 more registered users
73 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.SocketException

    Socket closed

    at java.net.SocketInputStream.read()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.read(SocketInputStream.java:190)
    2. java.net.SocketInputStream.read(SocketInputStream.java:122)
    2 frames
  3. Java JSSE
    AppInputStream.read
    1. sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
    2. sun.security.ssl.InputRecord.read(InputRecord.java:480)
    3. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
    4. sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:903)
    5. sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    5 frames
  4. Okio
    RealBufferedSource.readUtf8LineStrict
    1. okio.Okio$2.read(Okio.java:139)
    2. okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
    3. okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
    4. okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
    5. okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
    5 frames
  5. OkHttp
    HttpEngine.readResponse
    1. com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
    2. com.squareup.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
    3. com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:906)
    4. com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:782)
    4 frames
  6. OkHttp URLConnection
    HttpsURLConnectionImpl.getResponseCode
    1. com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:444)
    2. com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:389)
    3. com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:502)
    4. com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
    5. com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
    5 frames
  7. org.kohsuke.github
    GHRepository.createCommitStatus
    1. org.kohsuke.github.Requester.parse(Requester.java:479)
    2. org.kohsuke.github.Requester._to(Requester.java:236)
    3. org.kohsuke.github.Requester.to(Requester.java:203)
    4. org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:854)
    4 frames
  8. com.cloudbees.jenkins
    GitHubCommitNotifier.perform
    1. com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:142)
    2. com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:111)
    2 frames
  9. Hudson
    Executor.run
    1. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
    2. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    4. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
    5. hudson.model.Build$BuildExecution.post2(Build.java:185)
    6. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
    7. hudson.model.Run.execute(Run.java:1763)
    8. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
    9. hudson.model.ResourceController.execute(ResourceController.java:98)
    10. hudson.model.Executor.run(Executor.java:410)
    10 frames