Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45142

Appears a timeout isn't being handled properly: "Server returned HTTP response code: -1, message: 'null' for URL"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • github-api-plugin
    • None

      Noticed while opening the "plugin flood gates" on ci.jeknins.io (from here)

      I would guesstimate that an underlying timeout isn't being handled properly, not sure why a higher level exception isn't being received though.

      ERROR: [Mon Jun 26 20:42:01 GMT 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@1c022c0c
      org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repositories/1163431/collaborators?page=12
      	at org.kohsuke.github.Requester.parse(Requester.java:612)
      	at org.kohsuke.github.Requester._to(Requester.java:262)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester.to(Requester.java:224)
      	at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
      	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186)
      	at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
      	at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
      	at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527)
      	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:586)
      	... 29 more
      Caused by: java.net.SocketException: Socket closed
      	at java.net.SocketInputStream.read(SocketInputStream.java:204)
      	at java.net.SocketInputStream.read(SocketInputStream.java:141)
      	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
      	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
      	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
      	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
      	at okio.Okio$2.read(Okio.java:139)
      	at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
      	... 42 more
      [Mon Jun 26 20:42:01 GMT 2017] Finished organization scan. Scan took 1 min 57 sec
      FATAL: Failed to recompute children of Plugins
      org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repositories/1163431/collaborators?page=12
      	at org.kohsuke.github.Requester.parse(Requester.java:612)
      	at org.kohsuke.github.Requester._to(Requester.java:262)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester._to(Requester.java:270)
      	at org.kohsuke.github.Requester.to(Requester.java:224)
      	at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461)
      	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
      	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274)
      	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186)
      	at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
      	at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
      	at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527)
      	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:586)
      	... 29 more
      Caused by: java.net.SocketException: Socket closed
      	at java.net.SocketInputStream.read(SocketInputStream.java:204)
      	at java.net.SocketInputStream.read(SocketInputStream.java:141)
      	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
      	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
      	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
      	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
      	at okio.Okio$2.read(Okio.java:139)
      	at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
      	... 42 more
      Finished: FAILURE
      
      

          [JENKINS-45142] Appears a timeout isn't being handled properly: "Server returned HTTP response code: -1, message: 'null' for URL"

          R. Tyler Croy created issue -
          R. Tyler Croy made changes -
          Link New: This issue blocks INFRA-1247 [ INFRA-1247 ]
          Stephen Connolly made changes -
          Component/s New: github-api-plugin [ 17496 ]
          Component/s Original: github-branch-source-plugin [ 20858 ]

          Jesse Glick added a comment -

          Best for stephenconnolly to evaluate where the problem lies.

          Jesse Glick added a comment - Best for stephenconnolly to evaluate where the problem lies.
          Jesse Glick made changes -
          Assignee New: Stephen Connolly [ stephenconnolly ]

          Jesse Glick added a comment -

          Is this really a product bug? GitHub failed to service a request, so we failed to scan the organization. Not sure what else we could do.

          (Possibly branch-api could decide that if scanning a repo or org gets an error partway through, that it will nonetheless refresh any existing entries, or add any newly discovered entries, without orphaning existing entries that it did not encounter. But I doubt that would help much here.)

          Jesse Glick added a comment - Is this really a product bug? GitHub failed to service a request, so we failed to scan the organization. Not sure what else we could do. (Possibly branch-api could decide that if scanning a repo or org gets an error partway through, that it will nonetheless refresh any existing entries, or add any newly discovered entries, without orphaning existing entries that it did not encounter. But I doubt that would help much here.)

          R. Tyler Croy added a comment -

          Well, it's consistently failing and the plugin(s?) doesn't appear to be retrying on timeouts, so that to me is likely a bug which should be corrected.

          Here's some updated logs from a more recent scan, so at the very least it's not consistently the same URL, in which case I would be opening a support request with GitHub.

          00:40:14 GitHub API Usage: Current quota has 2105 remaining (4 over budget). Next quota of 5000 in 29 min. Sleeping for 28 sec.
          00:40:43 GitHub API Usage: Current quota has 2105 remaining (26 under budget). Next quota of 5000 in 29 min
          00:40:43 Connecting to https://api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin)
          Looking up jenkinsci/plot-plugin
          ERROR: [Wed Jun 28 00:40:54 GMT 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@5a856ef1
          org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repositories/1163695/collaborators?page=8
          	at org.kohsuke.github.Requester.parse(Requester.java:612)
          	at org.kohsuke.github.Requester._to(Requester.java:262)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester.to(Requester.java:224)
          	at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461)
          	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
          	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
          	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
          	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274)
          	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
          	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401)
          	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
          	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
          	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852)
          	at hudson.model.ResourceController.execute(ResourceController.java:97)
          	at hudson.model.Executor.run(Executor.java:405)
          Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186)
          	at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
          	at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
          	at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527)
          	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:586)
          	... 25 more
          Caused by: java.net.SocketException: Socket closed
          	at java.net.SocketInputStream.read(SocketInputStream.java:204)
          	at java.net.SocketInputStream.read(SocketInputStream.java:141)
          	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
          	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
          	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
          	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
          	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
          	at okio.Okio$2.read(Okio.java:139)
          	at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
          	... 38 more
          [Wed Jun 28 00:40:54 GMT 2017] Finished organization scan. Scan took 39 min
          FATAL: Failed to recompute children of Plugins
          org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repositories/1163695/collaborators?page=8
          	at org.kohsuke.github.Requester.parse(Requester.java:612)
          	at org.kohsuke.github.Requester._to(Requester.java:262)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester._to(Requester.java:270)
          	at org.kohsuke.github.Requester.to(Requester.java:224)
          	at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461)
          	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
          	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
          	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
          	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274)
          	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
          	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
          	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401)
          	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
          	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
          	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852)
          	at hudson.model.ResourceController.execute(ResourceController.java:97)
          	at hudson.model.Executor.run(Executor.java:405)
          Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186)
          	at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
          	at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
          	at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399)
          	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527)
          	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:586)
          	... 25 more
          Caused by: java.net.SocketException: Socket closed
          	at java.net.SocketInputStream.read(SocketInputStream.java:204)
          	at java.net.SocketInputStream.read(SocketInputStream.java:141)
          	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
          	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
          	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
          	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
          	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
          	at okio.Okio$2.read(Okio.java:139)
          	at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
          	... 38 more
          Finished: FAILURE
          
          

          R. Tyler Croy added a comment - Well, it's consistently failing and the plugin(s?) doesn't appear to be retrying on timeouts, so that to me is likely a bug which should be corrected. Here's some updated logs from a more recent scan, so at the very least it's not consistently the same URL, in which case I would be opening a support request with GitHub. 00:40:14 GitHub API Usage: Current quota has 2105 remaining (4 over budget). Next quota of 5000 in 29 min. Sleeping for 28 sec. 00:40:43 GitHub API Usage: Current quota has 2105 remaining (26 under budget). Next quota of 5000 in 29 min 00:40:43 Connecting to https: //api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin) Looking up jenkinsci/plot-plugin ERROR: [Wed Jun 28 00:40:54 GMT 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@5a856ef1 org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: ' null ' for URL: https: //api.github.com/repositories/1163695/collaborators?page=8 at org.kohsuke.github.Requester.parse(Requester.java:612) at org.kohsuke.github.Requester._to(Requester.java:262) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester.to(Requester.java:224) at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186) at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127) at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527) 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:586) ... 25 more Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:204) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930) at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) at okio.Okio$2.read(Okio.java:139) at okio.AsyncTimeout$2.read(AsyncTimeout.java:211) ... 38 more [Wed Jun 28 00:40:54 GMT 2017] Finished organization scan. Scan took 39 min FATAL: Failed to recompute children of Plugins org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: ' null ' for URL: https: //api.github.com/repositories/1163695/collaborators?page=8 at org.kohsuke.github.Requester.parse(Requester.java:612) at org.kohsuke.github.Requester._to(Requester.java:262) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester._to(Requester.java:270) at org.kohsuke.github.Requester.to(Requester.java:224) at org.kohsuke.github.GHRepository.getCollaboratorNames(GHRepository.java:478) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.updateCollaboratorNames(GitHubSCMSource.java:482) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:461) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1274) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1289) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:401) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:852) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Caused by: 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.Http1xStream.readResponse(Http1xStream.java:186) at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127) at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:609) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:460) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399) at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527) 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:586) ... 25 more Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:204) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930) at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) at okio.Okio$2.read(Okio.java:139) at okio.AsyncTimeout$2.read(AsyncTimeout.java:211) ... 38 more Finished: FAILURE

          Jesse Glick added a comment -

          Probably Requester.parse could be handling SocketTimeoutException. I can take a stab at it; would you install a snapshot?

          Jesse Glick added a comment - Probably Requester.parse could be handling SocketTimeoutException . I can take a stab at it; would you install a snapshot?
          Jesse Glick made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            borgstrom Evan Borgstrom
            rtyler R. Tyler Croy
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: