net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git,

Jenkins JIRA | Bue Petersen | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I get the following error when CR tries to clone: --- snippet (modified to be anonymous) --- [ConfigRotator] Version: 1.1.0 [ConfigRotator] Configuration from scratch net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git, at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:29) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:64) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:56) at net.praqma.jenkins.configrotator.ConfigurationRotator.checkout(ConfigurationRotator.java:153) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.util.IOException2: remote file operation failed: /srv/user/.jenkins/workspace/CI-UpgradeScript at hudson.remoting.Channel@1a72772:BuildHostSeven at hudson.FilePath.act(FilePath.java:848) at hudson.FilePath.act(FilePath.java:825) at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:26) ... 11 more Caused by: java.io.IOException: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:117) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:25) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:179) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:75) ... 11 more --- snippet --- I can login on the build host, and as the user running the jenkins slave manually clone the repository. Two thing are "special": 1) the authentification is read-only, and used git-credentials user@buildhostseven:~$ cat .gitconfig [credential] helper = store user@buildhostseven:~$ cat .git-credentials http://user:password@myrepo%3a8080 2) Notice the port 8080

    Jenkins JIRA | 4 years ago | Bue Petersen
    net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git,
  2. 0

    I get the following error when CR tries to clone: --- snippet (modified to be anonymous) --- [ConfigRotator] Version: 1.1.0 [ConfigRotator] Configuration from scratch net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git, at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:29) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:64) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:56) at net.praqma.jenkins.configrotator.ConfigurationRotator.checkout(ConfigurationRotator.java:153) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.util.IOException2: remote file operation failed: /srv/user/.jenkins/workspace/CI-UpgradeScript at hudson.remoting.Channel@1a72772:BuildHostSeven at hudson.FilePath.act(FilePath.java:848) at hudson.FilePath.act(FilePath.java:825) at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:26) ... 11 more Caused by: java.io.IOException: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:117) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:25) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:179) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:75) ... 11 more --- snippet --- I can login on the build host, and as the user running the jenkins slave manually clone the repository. Two thing are "special": 1) the authentification is read-only, and used git-credentials user@buildhostseven:~$ cat .gitconfig [credential] helper = store user@buildhostseven:~$ cat .git-credentials http://user:password@myrepo%3a8080 2) Notice the port 8080

    Jenkins JIRA | 4 years ago | Bue Petersen
    net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git,
  3. 0

    UnknownHostKey Exception in Accessing GitHub Securely

    Stack Overflow | 4 years ago | Izza
    org.eclipse.jgit.api.errors.TransportException: git@github.com:test/test_repo.git: UnknownHostKey: github.com. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    EGIT saying Read timed out after 30,000 ms

    Stack Overflow | 2 years ago | adityag
    org.eclipse.jgit.api.errors.TransportException: Read timed out after 30,000 ms
  6. 0

    JGit Connection refused

    Stack Overflow | 3 years ago | tomasz
    org.eclipse.jgit.api.errors.TransportException: git://192.168.1.1/abc: Connection refused: connect

  1. jf-ast 1 times, last 3 months ago
4 unregistered visitors
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. org.eclipse.jgit.api.errors.TransportException

    http://myrepo:8080/scm/git/project.git: not authorized

    at org.eclipse.jgit.api.FetchCommand.call()
  2. JGit - Core
    CloneCommand.call
    1. org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
    2. org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:179)
    3. org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
    3 frames
  3. net.praqma.jenkins
    ResolveConfigurationComponent.invoke
    1. net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:75)
    2. net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:25)
    2 frames
  4. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309)
    1 frame
  5. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:326)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:722)
    5 frames