java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Runtime exception.

Atlassian JIRA | Martin Meinhold | 3 years ago
  1. 0

    Just seen on JBAC: {noformat} 2013-08-16 07:56:31,000 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Task 'Collecting changes for ACF-AFCC5' was unsuccessful. Run 1 / 2. Exception thrown when running task 'Collecting changes for ACF-AFCC5', with message: Runtime exception. 2013-08-16 07:56:31,000 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Waiting 5545ms before retrying... 2013-08-16 07:56:36,915 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Task 'Collecting changes for ACF-AFCC5' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Collecting changes for ACF-AFCC5', with message: Runtime exception. 2013-08-16 07:56:36,915 ERROR [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Failed to run task 'Collecting changes for ACF-AFCC5' after 2 attempts. Task was not executed. 2013-08-16 07:56:36,915 ERROR [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Exception being rethrown 2013-08-16 07:56:36,915 WARN [4-BAM::PlanExec:pool-7-thread-3] [PlanExecutionManagerImpl] Unknown error during doWithProcessLock java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Runtime exception. at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:470) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:331) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:259) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:154) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildIfTriggered(DefaultChangeDetectionManager.java:116) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.testIfBuildShouldStart(ChangeDetectionListenerAction.java:111) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$3.call(PlanExecutionManagerImpl.java:450) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$3.call(PlanExecutionManagerImpl.java:435) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:312) at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:78) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:704) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.startConditionalBuild(PlanExecutionManagerImpl.java:434) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:503) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:520) at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$3.call(NonBlockingPlanExecutionServiceImpl.java:131) at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$3.call(NonBlockingPlanExecutionServiceImpl.java:119) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: com.atlassian.bamboo.repository.RepositoryException: Runtime exception. at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:281) at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:182) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:474) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:471) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 25 more Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://melias@bitbucket.org/atlassian-foundation/codefoundation failed with code 128. Working directory was [.]., stderr: [fatal: https://melias@bitbucket.org/atlassian-foundation/codefoundation/info/refs not found: did you run git update-server-info on the server?] at com.google.common.cache.AbstractCache.getUnchecked(AbstractCache.java:51) at com.atlassian.bamboo.plugins.git.CallableResultCache.call(CallableResultCache.java:82) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:485) {noformat} See the attached log for the complete stack trace. I would appreciate if Bamboo could simply disable the branch build or at least log it in the system log. Currently, there is no error on the plan summary page.

    Atlassian JIRA | 3 years ago | Martin Meinhold
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Runtime exception.
  2. 0

    Just seen on JBAC: {noformat} 2013-08-16 07:56:31,000 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Task 'Collecting changes for ACF-AFCC5' was unsuccessful. Run 1 / 2. Exception thrown when running task 'Collecting changes for ACF-AFCC5', with message: Runtime exception. 2013-08-16 07:56:31,000 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Waiting 5545ms before retrying... 2013-08-16 07:56:36,915 INFO [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Task 'Collecting changes for ACF-AFCC5' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Collecting changes for ACF-AFCC5', with message: Runtime exception. 2013-08-16 07:56:36,915 ERROR [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Failed to run task 'Collecting changes for ACF-AFCC5' after 2 attempts. Task was not executed. 2013-08-16 07:56:36,915 ERROR [4-BAM::PlanExec:pool-7-thread-3] [RetryingTaskExecutor] Exception being rethrown 2013-08-16 07:56:36,915 WARN [4-BAM::PlanExec:pool-7-thread-3] [PlanExecutionManagerImpl] Unknown error during doWithProcessLock java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Runtime exception. at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:470) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:331) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:259) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:154) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildIfTriggered(DefaultChangeDetectionManager.java:116) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.testIfBuildShouldStart(ChangeDetectionListenerAction.java:111) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$3.call(PlanExecutionManagerImpl.java:450) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$3.call(PlanExecutionManagerImpl.java:435) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:312) at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:78) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:704) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.startConditionalBuild(PlanExecutionManagerImpl.java:434) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:503) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:520) at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$3.call(NonBlockingPlanExecutionServiceImpl.java:131) at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$3.call(NonBlockingPlanExecutionServiceImpl.java:119) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: com.atlassian.bamboo.repository.RepositoryException: Runtime exception. at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:281) at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:182) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:474) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:471) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 25 more Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://melias@bitbucket.org/atlassian-foundation/codefoundation failed with code 128. Working directory was [.]., stderr: [fatal: https://melias@bitbucket.org/atlassian-foundation/codefoundation/info/refs not found: did you run git update-server-info on the server?] at com.google.common.cache.AbstractCache.getUnchecked(AbstractCache.java:51) at com.atlassian.bamboo.plugins.git.CallableResultCache.call(CallableResultCache.java:82) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:485) {noformat} See the attached log for the complete stack trace. I would appreciate if Bamboo could simply disable the branch build or at least log it in the system log. Currently, there is no error on the plan summary page.

    Atlassian JIRA | 3 years ago | Martin Meinhold
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Runtime exception.
  3. 0

    Java Null Pointer Exception - Stack Trace Null

    Stack Overflow | 4 years ago | workwise
    com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException The stack trace is also null. I am using eclipse. And cannot go through the steps (the debug panel gives a very top level function trace of where exception occurs which is not useful to get to the root cause). How can I debug this exception? I am mostly Java newbie (though C++ experienced) and may have missed some imp information. Here is some relevant code: import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; Cache<BubbleKey, List<BlockData>> thecache; // Above is initialized somewhere.. bit complex and code distributed across various file //Somewhere else List<BlockData>> __ll = thecache.getUnchecked(keydata); Above is what is causing it. The keydata is properly initialized. It could be in the lookup/comparing the keys functions but I cannot get there as there is no stack trace. Some more! On some runs, I am getting more debug output. Still dont know how to analyze it though. Below exception is a different one, occurring at later stages, after the above exception has occurred 3-4 times in the program. For the above exception, as I mentioned, there is never any stack trace. at com.google.common.cache.CustomConcurrentHashMap$ComputedUncheckedException.get(CustomConcurrentHashMap.java:3305) ~[guava-10.0.1.jar:na]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Summary Defining SSH server capabilities breaks the check out of Git repos. For example: |SSH|/usr/bin/ssh| h3. Steps to Reproduce # Set up a Linked (generic) Git repo on a server with SSH access. To accomplish that, please refer to [Git on the Server - Getting Git on a Server|http://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server] # Set up the SSH key pairs properly as described on [Sharing repository credentials|https://confluence.atlassian.com/display/BAMBOO/Sharing+repository+credentials] # Set up a [Git repository|https://confluence.atlassian.com/display/BAMBOO/Git] to be used by Bamboo and supply the private key generated above # Create a plan to check out source code from the repo above # Run the Build # Defining SSH server capabilities. For instance: |SSH|/usr/bin/ssh| # Run the Build h3. Expected Results When you run the Build as above it should just work on both scenarios. h3. Actual Results If you define SSH on the server capability, Bamboo should work as well. However, it breaks as it seems to be pointing to a different {{known_hosts}} file. The error below can be found on the UI: {noformat} (com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://6de1e51d-2587-4ee9-ac97-c908a030b847@127.0.0.1:56648/Users/tbomfim/repo_clone/repotestbare.git failed with code 128. Working directory was [.]., stderr: [Host key verification failed., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]) {noformat} {noformat:title=atlassian-bamboo.log} 2015-04-02 16:44:10,425 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-1] [BambooPluginUtils] An unexpected error has occurred while detecting branches: BSP15919-BSP15919 com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://7b7852ba-8568-49b6-8f2c-2b7cc5d294fd@127.0.0.1:63080/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:63080' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@localhost/127.0.0.1:7999]: Authenticating remote session failed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:139) at com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:143) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:500) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getOpenBranches(NativeGitOperationHelper.java:464) at com.atlassian.bamboo.plugins.git.GitRepository.getOpenBranches(GitRepository.java:461) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:37) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:29) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:69) "atlassian-bamboo.log" 13970L, 1736826C at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector.run(BranchDetectionServiceImpl.java:310) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://347e5c2e-fcd4-4aa7-ab28-fea1788391cd@127.0.0.1:56648/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: [Host key verification failed., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:551) at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:418) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:488) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:479) at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:52) at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:48) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:81) at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:135) ... 30 more {noformat} h3.Solution / Workaround # If you manually run the git command shown in the UI and add the key to the {{known_hosts}}, you will be able to run the build (however it stops working after Bamboo is restarted): {noformat} $ /usr/bin/git ls-remote ssh://cd6e67f4-ffbf-44c7-b420-1cbaee5a7776@127.0.0.1:63080/Users/tbomfim/repo_clone/repotestbare.git The authenticity of host '[127.0.0.1]:63080 ([127.0.0.1]:63080)' can't be established. RSA key fingerprint is fc:1f:3c:61:5d:9a:28:b7:34:a5:93:3d:a0:12:2b:05. Are you sure you want to continue connecting (yes/no)? yes {noformat} # Edit the file {{known_hosts}} (eg: {{~/.ssh/known_hosts}}) to set the above port "[127.0.0.1]:63080" to be a wild card, example: {noformat} [127.0.0.1]:* ssh-rsa xxxx... {noformat}

    Atlassian JIRA | 2 years ago | Thiago Bomfim [Atlassian]
    com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://7b7852ba-8568-49b6-8f2c-2b7cc5d294fd@127.0.0.1:63080/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:63080' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@localhost/127.0.0.1:7999]: Authenticating remote session failed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]
  6. 0

    h3. Summary Defining SSH server capabilities breaks the check out of Git repos. For example: |SSH|/usr/bin/ssh| h3. Steps to Reproduce # Set up a Linked (generic) Git repo on a server with SSH access. To accomplish that, please refer to [Git on the Server - Getting Git on a Server|http://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server] # Set up the SSH key pairs properly as described on [Sharing repository credentials|https://confluence.atlassian.com/display/BAMBOO/Sharing+repository+credentials] # Set up a [Git repository|https://confluence.atlassian.com/display/BAMBOO/Git] to be used by Bamboo and supply the private key generated above # Create a plan to check out source code from the repo above # Run the Build # Defining SSH server capabilities. For instance: |SSH|/usr/bin/ssh| # Run the Build h3. Expected Results When you run the Build as above it should just work on both scenarios. h3. Actual Results If you define SSH on the server capability, Bamboo should work as well. However, it breaks as it seems to be pointing to a different {{known_hosts}} file. The error below can be found on the UI: {noformat} (com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://6de1e51d-2587-4ee9-ac97-c908a030b847@127.0.0.1:56648/Users/tbomfim/repo_clone/repotestbare.git failed with code 128. Working directory was [.]., stderr: [Host key verification failed., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]) {noformat} {noformat:title=atlassian-bamboo.log} 2015-04-02 16:44:10,425 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-1] [BambooPluginUtils] An unexpected error has occurred while detecting branches: BSP15919-BSP15919 com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://7b7852ba-8568-49b6-8f2c-2b7cc5d294fd@127.0.0.1:63080/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:63080' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@localhost/127.0.0.1:7999]: Authenticating remote session failed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:139) at com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:143) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:500) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getOpenBranches(NativeGitOperationHelper.java:464) at com.atlassian.bamboo.plugins.git.GitRepository.getOpenBranches(GitRepository.java:461) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:37) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:29) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:69) "atlassian-bamboo.log" 13970L, 1736826C at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector.run(BranchDetectionServiceImpl.java:310) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://347e5c2e-fcd4-4aa7-ab28-fea1788391cd@127.0.0.1:56648/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: [Host key verification failed., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:551) at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:418) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:488) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:479) at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:52) at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:48) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:81) at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:135) ... 30 more {noformat} h3.Solution / Workaround # If you manually run the git command shown in the UI and add the key to the {{known_hosts}}, you will be able to run the build (however it stops working after Bamboo is restarted): {noformat} $ /usr/bin/git ls-remote ssh://cd6e67f4-ffbf-44c7-b420-1cbaee5a7776@127.0.0.1:63080/Users/tbomfim/repo_clone/repotestbare.git The authenticity of host '[127.0.0.1]:63080 ([127.0.0.1]:63080)' can't be established. RSA key fingerprint is fc:1f:3c:61:5d:9a:28:b7:34:a5:93:3d:a0:12:2b:05. Are you sure you want to continue connecting (yes/no)? yes {noformat} # Edit the file {{known_hosts}} (eg: {{~/.ssh/known_hosts}}) to set the above port "[127.0.0.1]:63080" to be a wild card, example: {noformat} [127.0.0.1]:* ssh-rsa xxxx... {noformat}

    Atlassian JIRA | 2 years ago | Thiago Bomfim [Atlassian]
    com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://7b7852ba-8568-49b6-8f2c-2b7cc5d294fd@127.0.0.1:63080/for/repotest3.git failed with code 128. Working directory was [/Users/tbomfim/bamboo-home-5.6.2/xml-data/build-dir]., stderr: Authenticating remote session failed stdout: [Warning: Permanently added '[127.0.0.1]:63080' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@localhost/127.0.0.1:7999]: Authenticating remote session failed], fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.]

    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. com.google.common.util.concurrent.UncheckedExecutionException

      com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://melias@bitbucket.org/atlassian-foundation/codefoundation failed with code 128. Working directory was [.]., stderr: [fatal: https://melias@bitbucket.org/atlassian-foundation/codefoundation/info/refs not found: did you run git update-server-info on the server?]

      at com.google.common.cache.AbstractCache.getUnchecked()
    2. Guava
      AbstractCache.getUnchecked
      1. com.google.common.cache.AbstractCache.getUnchecked(AbstractCache.java:51)
      1 frame
    3. com.atlassian.bamboo
      NativeGitOperationHelper.getRemoteRefs
      1. com.atlassian.bamboo.plugins.git.CallableResultCache.call(CallableResultCache.java:82)
      2. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:485)
      2 frames