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

GH Source Branch Plugin ignores system-wide proxy settings

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi, we are experiencing strange issues with the plugin. For some reason, it ignores proxy settings which are defined in:

      • /etc/environment
      • ~/.bashrc
      • Global settings
      • Run parameters

      It leads to the following error after some time:

      java.net.SocketTimeoutException: connect timed out
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at com.squareup.okhttp.internal.Platform.connectSocket(Platform.java:120)
      	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141)
      	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
      	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
      	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
      	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
      	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
      	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
      	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:450)
      	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:615)
      Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/
      	at org.kohsuke.github.Requester.parse(Requester.java:646)
      	at org.kohsuke.github.Requester.parse(Requester.java:644)
      	at org.kohsuke.github.Requester.parse(Requester.java:644)
      	at org.kohsuke.github.Requester.parse(Requester.java:607)
      	at org.kohsuke.github.Requester._to(Requester.java:285)
      	at org.kohsuke.github.Requester.to(Requester.java:247)
      	at org.kohsuke.github.GitHub.checkApiUrlValidity(GitHub.java:744)
      	at org.jenkinsci.plugins.github_branch_source.Connector.checkApiUrlValidity(Connector.java:326)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.checkApiUrlValidity(GitHubSCMSource.java:1518)
      Caused: java.io.IOException: It seems https://api.github.com is unreachable
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.checkApiUrlValidity(GitHubSCMSource.java:1521)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1571)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:299)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE 

      It looks like that plugin is using proxy, but then suddenly stops.

      The only solution we have right now is to restart the node.

      Jenkins is running in AWS, ver. 2.190.2

      Plugin version: 2.5.8

        Attachments

          Activity

          Hide
          bitwiseman Liam Newman added a comment -

          Please try with github-branch-source 2.6.0.

          Show
          bitwiseman Liam Newman added a comment - Please try with github-branch-source 2.6.0.
          Hide
          bitwiseman Liam Newman added a comment -

          Multiple versions since this was reported. No response. Believe this is fixed.

          Show
          bitwiseman Liam Newman added a comment - Multiple versions since this was reported. No response. Believe this is fixed.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sanya_rnd Alexander Biryukov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: