-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Centos 7
Jenkins 2.263.2
github-branch-source-plugin 2.8.2
github-plugin 1.32.0
I've checked the credentials being allowed to access this private GitHub repository, with the "Write" permission.
It's difficult to reproduce it - it disappears suddenly and the scan starts to work as expected:
2021-02-02 12:56:27.880+0000 [id=1756062] INFO o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job REDACTED-onboarding-ui with [GitHubRepositoryName[host=github.com,username=REDACTED,repository=REDACTED-onboarding-ui]] (events: [PULL_REQUEST, PUSH]) 2021-02-02 12:56:27.937+0000 [id=1756062] WARNING c.c.j.GitHubRepositoryName$1#applyNullSafe: Failed to obtain repository com.cloudbees.jenkins.GitHubRepositoryName$1@76220484 java.io.FileNotFoundException: https://api.github.com/repos/REDACTED/REDACTED-onboarding-ui at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection.getInputStream(ObsoleteUrlFactory.java:488) at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection.getInputStream(ObsoleteUrlFactory.java:1201) at org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo.bodyStream(GitHubHttpUrlConnectionClient.java:197) at org.kohsuke.github.GitHubResponse$ResponseInfo.getBodyAsString(GitHubResponse.java:321) at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:86) at org.kohsuke.github.Requester.lambda$fetch$1(Requester.java:74) at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:425) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:376) Caused: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/REDACTED/REDACTED-onboarding-ui {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#get-a-repository"} at org.kohsuke.github.GitHubClient.interpretApiError(GitHubClient.java:456) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:384) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:327) at org.kohsuke.github.Requester.fetch(Requester.java:74) at org.kohsuke.github.GitHub.getRepository(GitHub.java:533) at com.cloudbees.jenkins.GitHubRepositoryName$1.applyNullSafe(GitHubRepositoryName.java:227) at com.cloudbees.jenkins.GitHubRepositoryName$1.applyNullSafe(GitHubRepositoryName.java:223) at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at org.jenkinsci.plugins.github.util.FluentIterableWrapper.first(FluentIterableWrapper.java:138) at org.jenkinsci.plugins.github.webhook.WebhookManager.repoWithWebhookAccess(WebhookManager.java:170) at org.jenkinsci.plugins.github.webhook.WebhookManager.access$100(WebhookManager.java:50) at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:197) at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:193) at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Lists.newArrayList(Lists.java:138) at com.google.common.collect.Lists.newArrayList(Lists.java:119) at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toList(FluentIterableWrapper.java:147) at org.jenkinsci.plugins.github.webhook.WebhookManager$1.run(WebhookManager.java:129) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Hi Kirill lanwen ,
did you have a chance to make a glance at this issue?