org.kohsuke.github.GHException: Failed to update jenkins hooks

Jenkins JIRA | Richard Duarte | 2 years ago
  1. 0

    I'm trying to have Jenkins automatically manage github webhooks. My automated jenkins user has a github oauth token with "repo" and "repo:status" permissions that its using. I click on "re-register hooks for all jobs" and this is the output from the jenkins log: {code} May 05, 2015 11:15:48 AM com.cloudbees.jenkins.GitHubPushTrigger$2 run WARNING: Failed to add GitHub webhook for GitHubRepository[host=github.com,username=DemandCube,repository=NeverwinterDP] org.kohsuke.github.GHException: Failed to update jenkins hooks at com.cloudbees.jenkins.GitHubPushTrigger.createJenkinsHook(GitHubPushTrigger.java:182) at com.cloudbees.jenkins.GitHubPushTrigger.access$700(GitHubPushTrigger.java:55) at com.cloudbees.jenkins.GitHubPushTrigger$2.run(GitHubPushTrigger.java:165) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:744) Caused by: java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} at org.kohsuke.github.Requester.handleApiError(Requester.java:494) at org.kohsuke.github.Requester._to(Requester.java:245) at org.kohsuke.github.Requester.to(Requester.java:191) at org.kohsuke.github.GHRepository.createHook(GHRepository.java:880) at com.cloudbees.jenkins.GitHubPushTrigger.createJenkinsHook(GitHubPushTrigger.java:179) ... 9 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/DemandCube/NeverwinterDP/hooks at sun.reflect.GeneratedConstructorAccessor135.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.Requester.parse(Requester.java:451) at org.kohsuke.github.Requester._to(Requester.java:224) ... 12 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/DemandCube/NeverwinterDP/hooks at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.kohsuke.github.Requester.parse(Requester.java:447) ... 13 more {code}

    Jenkins JIRA | 2 years ago | Richard Duarte
    org.kohsuke.github.GHException: Failed to update jenkins hooks
  2. 0

    I'm trying to have Jenkins automatically manage github webhooks. My automated jenkins user has a github oauth token with "repo" and "repo:status" permissions that its using. I click on "re-register hooks for all jobs" and this is the output from the jenkins log: {code} May 05, 2015 11:15:48 AM com.cloudbees.jenkins.GitHubPushTrigger$2 run WARNING: Failed to add GitHub webhook for GitHubRepository[host=github.com,username=DemandCube,repository=NeverwinterDP] org.kohsuke.github.GHException: Failed to update jenkins hooks at com.cloudbees.jenkins.GitHubPushTrigger.createJenkinsHook(GitHubPushTrigger.java:182) at com.cloudbees.jenkins.GitHubPushTrigger.access$700(GitHubPushTrigger.java:55) at com.cloudbees.jenkins.GitHubPushTrigger$2.run(GitHubPushTrigger.java:165) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:744) Caused by: java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} at org.kohsuke.github.Requester.handleApiError(Requester.java:494) at org.kohsuke.github.Requester._to(Requester.java:245) at org.kohsuke.github.Requester.to(Requester.java:191) at org.kohsuke.github.GHRepository.createHook(GHRepository.java:880) at com.cloudbees.jenkins.GitHubPushTrigger.createJenkinsHook(GitHubPushTrigger.java:179) ... 9 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/DemandCube/NeverwinterDP/hooks at sun.reflect.GeneratedConstructorAccessor135.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.Requester.parse(Requester.java:451) at org.kohsuke.github.Requester._to(Requester.java:224) ... 12 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/DemandCube/NeverwinterDP/hooks at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.kohsuke.github.Requester.parse(Requester.java:447) ... 13 more {code}

    Jenkins JIRA | 2 years ago | Richard Duarte
    org.kohsuke.github.GHException: Failed to update jenkins hooks
  3. 0

    GitHub comment 13196#135968478

    GitHub | 1 year ago | dadoonet
    java.io.IOException: Can't get https://github.com/lmenezes/elasticsearch-kopf/archive/develop.zip.sha1 to /var/folders/r_/r14sy86n2zb91jyz1ptb5b4w0000gn/T/elasticsearch-kopf2636540761510642632.zip.sha1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    404 not found

    GitHub | 2 years ago | baole-lunex
    java.io.FileNotFoundException: https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice
  6. 0

    ghprb 1.24.3 doesn't work with GitHub Enterprise 2.2

    GitHub | 1 year ago | serj-lotutovici
    java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/enterprise/2.2/v3"}

    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.io.FileNotFoundException

      https://api.github.com/repos/DemandCube/NeverwinterDP/hooks

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
    2. Java RT
      HttpsURLConnectionImpl.getResponseCode
      1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)
      2. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      3. sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
      3 frames
    3. org.kohsuke.github
      GHRepository.createHook
      1. org.kohsuke.github.Requester.parse(Requester.java:447)
      2. org.kohsuke.github.Requester._to(Requester.java:224)
      3. org.kohsuke.github.Requester.to(Requester.java:191)
      4. org.kohsuke.github.GHRepository.createHook(GHRepository.java:880)
      4 frames
    4. com.cloudbees.jenkins
      GitHubPushTrigger$2.run
      1. com.cloudbees.jenkins.GitHubPushTrigger.createJenkinsHook(GitHubPushTrigger.java:179)
      2. com.cloudbees.jenkins.GitHubPushTrigger.access$700(GitHubPushTrigger.java:55)
      3. com.cloudbees.jenkins.GitHubPushTrigger$2.run(GitHubPushTrigger.java:165)
      3 frames
    5. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      1 frame
    6. jenkins.util
      ContextResettingExecutorService$1.run
      1. jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:744)
      5 frames