I am using Jenkins using the Organization Folders plugin (latest version). I am able to do everything correctly when not using my corporate proxy on an open access point, so it shouldn't be a configuration problem, but I can't manage to make it work when going through the proxy. I traced down the problem to (I think) this plugin (I am not well versed in Java).

      I get the following error when trying to scan my organization:

      [Thu Feb 16 08:00:09 UTC 2017] Starting organization scan...
      [Thu Feb 16 08:00:09 UTC 2017] Updating actions...
      Looking up details of *****...
      It seems https://api.github.com is unreachable
      [Thu Feb 16 08:00:19 UTC 2017] Consulting GitHub Organization
      ERROR: [Thu Feb 16 08:00:29 UTC 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@4cfaa276
      hudson.AbortException: It seems https://api.github.com is unreachable
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:268)
      	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
      	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      [Thu Feb 16 08:00:29 UTC 2017] Finished organization scan. Scan took 20 sec
      FATAL: It seems https://api.github.com is unreachable
      Finished: FAILURE
      

      I am almost certain that the proxy is correctly setup in Jenkins, Docker and host machine, as I can download plugins, make git checkouts and access https://api.github.com in the proxy validation test. I set -Djavax.net.debug=all for the container and while I can see a full trace when validating the proxy in Jenkins, I can only see the initialization of the SSL certificates truststore (just the first time) and then silence when https://api.github.com is accessed during the organization scan process.

      Any help would be welcomed. Thanks!

          [JENKINS-42089] Github API seems to ignore proxy

          Guillermo Noain created issue -
          Guillermo Noain made changes -
          Description Original: I am using Jenkins using the Organization Folders plugin (latest version). I am able to do everything correctly when not using my corporate proxy on an open access point, so it shouldn't be a configuration problem, but I can't manage to make it work when going through the proxy. I traced down the problem to (I think) this plugin (I am not well versed in Java).

          I get the following error when trying to scan my organization:
          {quote}[Thu Feb 16 08:00:09 UTC 2017] Starting organization scan...
          [Thu Feb 16 08:00:09 UTC 2017] Updating actions...
          Looking up details of *****...
          It seems https://api.github.com is unreachable
          [Thu Feb 16 08:00:19 UTC 2017] Consulting GitHub Organization
          ERROR: [Thu Feb 16 08:00:29 UTC 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@4cfaa276
          hudson.AbortException: It seems https://api.github.com is unreachable
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:268)
          at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
          at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          [Thu Feb 16 08:00:29 UTC 2017] Finished organization scan. Scan took 20 sec
          FATAL: It seems https://api.github.com is unreachable
          Finished: FAILURE{quote}

          I am almost certain that the proxy is correctly setup in Jenkins, Docker and host machine, as I can download plugins, make git checkouts and access https://api.github.com in the proxy validation test. I set -Djavax.net.debug=all for the container and while I can see a full trace when validating the proxy in Jenkins, I can only see the initialization of the SSL certificates truststore (just the first time) and then silence when https://api.github.com is accessed.

          Any help would be welcomed. Thanks!

          New: I am using Jenkins using the Organization Folders plugin (latest version). I am able to do everything correctly when not using my corporate proxy on an open access point, so it shouldn't be a configuration problem, but I can't manage to make it work when going through the proxy. I traced down the problem to (I think) this plugin (I am not well versed in Java).

          I get the following error when trying to scan my organization:
          {quote}[Thu Feb 16 08:00:09 UTC 2017] Starting organization scan...
          [Thu Feb 16 08:00:09 UTC 2017] Updating actions...
          Looking up details of *****...
          It seems https://api.github.com is unreachable
          [Thu Feb 16 08:00:19 UTC 2017] Consulting GitHub Organization
          ERROR: [Thu Feb 16 08:00:29 UTC 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@4cfaa276
          hudson.AbortException: It seems https://api.github.com is unreachable
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:268)
          at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
          at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          [Thu Feb 16 08:00:29 UTC 2017] Finished organization scan. Scan took 20 sec
          FATAL: It seems https://api.github.com is unreachable
          Finished: FAILURE{quote}

          I am almost certain that the proxy is correctly setup in Jenkins, Docker and host machine, as I can download plugins, make git checkouts and access https://api.github.com in the proxy validation test. I set -Djavax.net.debug=all for the container and while I can see a full trace when validating the proxy in Jenkins, I can only see the initialization of the SSL certificates truststore (just the first time) and then silence when https://api.github.com is accessed during the organization scan process.

          Any help would be welcomed. Thanks!

          Guillermo Noain made changes -
          Description Original: I am using Jenkins using the Organization Folders plugin (latest version). I am able to do everything correctly when not using my corporate proxy on an open access point, so it shouldn't be a configuration problem, but I can't manage to make it work when going through the proxy. I traced down the problem to (I think) this plugin (I am not well versed in Java).

          I get the following error when trying to scan my organization:
          {quote}[Thu Feb 16 08:00:09 UTC 2017] Starting organization scan...
          [Thu Feb 16 08:00:09 UTC 2017] Updating actions...
          Looking up details of *****...
          It seems https://api.github.com is unreachable
          [Thu Feb 16 08:00:19 UTC 2017] Consulting GitHub Organization
          ERROR: [Thu Feb 16 08:00:29 UTC 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@4cfaa276
          hudson.AbortException: It seems https://api.github.com is unreachable
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:268)
          at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
          at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          [Thu Feb 16 08:00:29 UTC 2017] Finished organization scan. Scan took 20 sec
          FATAL: It seems https://api.github.com is unreachable
          Finished: FAILURE{quote}

          I am almost certain that the proxy is correctly setup in Jenkins, Docker and host machine, as I can download plugins, make git checkouts and access https://api.github.com in the proxy validation test. I set -Djavax.net.debug=all for the container and while I can see a full trace when validating the proxy in Jenkins, I can only see the initialization of the SSL certificates truststore (just the first time) and then silence when https://api.github.com is accessed during the organization scan process.

          Any help would be welcomed. Thanks!

          New: I am using Jenkins using the Organization Folders plugin (latest version). I am able to do everything correctly when not using my corporate proxy on an open access point, so it shouldn't be a configuration problem, but I can't manage to make it work when going through the proxy. I traced down the problem to (I think) this plugin (I am not well versed in Java).

          I get the following error when trying to scan my organization:

          {code:java}
          [Thu Feb 16 08:00:09 UTC 2017] Starting organization scan...
          [Thu Feb 16 08:00:09 UTC 2017] Updating actions...
          Looking up details of *****...
          It seems https://api.github.com is unreachable
          [Thu Feb 16 08:00:19 UTC 2017] Consulting GitHub Organization
          ERROR: [Thu Feb 16 08:00:29 UTC 2017] Could not fetch sources from navigator org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator@4cfaa276
          hudson.AbortException: It seems https://api.github.com is unreachable
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:268)
          at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
          at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          [Thu Feb 16 08:00:29 UTC 2017] Finished organization scan. Scan took 20 sec
          FATAL: It seems https://api.github.com is unreachable
          Finished: FAILURE
          {code}


          I am almost certain that the proxy is correctly setup in Jenkins, Docker and host machine, as I can download plugins, make git checkouts and access https://api.github.com in the proxy validation test. I set -Djavax.net.debug=all for the container and while I can see a full trace when validating the proxy in Jenkins, I can only see the initialization of the SSL certificates truststore (just the first time) and then silence when https://api.github.com is accessed during the organization scan process.

          Any help would be welcomed. Thanks!

          Ryan Campbell made changes -
          Priority Original: Trivial [ 5 ] New: Critical [ 2 ]

          Ryan Campbell added a comment -

          It looks like we correctly apply the proxy, so I'm not sure what could be going on here.

          However, if this is valid it seems quite severe, so i've bumped it up.

          Ryan Campbell added a comment - It looks like we correctly apply the proxy, so I'm not sure what could be going on here. However, if this is valid it seems quite severe, so i've bumped it up.
          Stephen Connolly made changes -
          Labels New: scm-api-tidy-scrub
          Stephen Connolly made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: CloudBees Inc. [ cloudbees ]
          Stephen Connolly made changes -
          Labels Original: scm-api-tidy-scrub New: scm-api-tidy
          Stephen Connolly made changes -
          Component/s Original: branch-api-plugin [ 18621 ]
          Component/s Original: github-organization-folder-plugin [ 21427 ]

          I think I narrowed down the error to this issue in okHttp. I certainly looks like my problem, as I get the same wireshark data, and I also see the error using the Github-API plugin, which also uses okHttp.

          This issue seems to be fixed in okHttp3. Assuming I am right (which I am not certain) is there any chance to solve this from your side? Thanks!

          Guillermo Noain added a comment - I think I narrowed down the error to this issue in okHttp. I certainly looks like my problem, as I get the same wireshark data, and I also see the error using the Github-API plugin, which also uses okHttp. This issue seems to be fixed in okHttp3. Assuming I am right (which I am not certain) is there any chance to solve this from your side? Thanks!

            cloudbees CloudBees Inc.
            gnoain Guillermo Noain
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: