com.atlassian.bamboo.repository.RepositoryException: java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files (x86)\Git\bin\git.exe' ls-remote git://bitbucket.org/hiscoxpsg/sbdp-backbase.git failed with code 128. Working directory was [.]., stderr: [fatal: unable to connect to bitbucket.org:, bitbucket.org[0: 131.103.20.167]: errno=No error, bitbucket.org[1: 131.103.20.168]: errno=No error, ]

atlassian.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bamboo git authentication fails from remote agent - Atlassian Answers

    atlassian.com | 8 months ago
    com.atlassian.bamboo.repository.RepositoryException: java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files (x86)\Git\bin\git.exe' ls-remote git://bitbucket.org/hiscoxpsg/sbdp-backbase.git failed with code 128. Working directory was [.]., stderr: [fatal: unable to connect to bitbucket.org:, bitbucket.org[0: 131.103.20.167]: errno=No error, bitbucket.org[1: 131.103.20.168]: errno=No error, ]

    Root Cause Analysis

    1. com.atlassian.bamboo.plugins.git.GitCommandException

      command 'C:\Program Files (x86)\Git\bin\git.exe' ls-remote git://bitbucket.org/hiscoxpsg/sbdp-backbase.git failed with code 128. Working directory was [.]., stderr: [fatal: unable to connect to bitbucket.org:, bitbucket.org[0: 131.103.20.167]: errno=No error, bitbucket.org[1: 131.103.20.168]: errno=No error, ]

      at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand()
    2. com.atlassian.bamboo
      CallableResultCache$1.load
      1. com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:550)
      2. com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:417)
      3. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:491)
      4. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:482)
      5. com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:52)
      6. com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:48)
      6 frames
    3. Guava
      LocalCache$LocalManualCache.get
      1. com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      2. com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      3. com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      4. com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      5. com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      6. com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
      7. com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
      7 frames
    4. com.atlassian.bamboo
      ChainExecutionManagerImpl.delayedStart
      1. com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:81)
      2. com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:135)
      3. com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:136)
      4. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:503)
      5. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.resolveBranch(NativeGitOperationHelper.java:438)
      6. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.obtainLatestRevision(NativeGitOperationHelper.java:543)
      7. com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:228)
      8. com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:216)
      9. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$5.call(DefaultChangeDetectionManager.java:608)
      10. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$5.call(DefaultChangeDetectionManager.java:604)
      11. com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)
      12. com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
      13. com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
      14. com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
      15. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.handleRepositoryExceptionForDeletedBranchWithRetry(DefaultChangeDetectionManager.java:603)
      16. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:557)
      17. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.access$400(DefaultChangeDetectionManager.java:76)
      18. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$3.call(DefaultChangeDetectionManager.java:414)
      19. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$3.call(DefaultChangeDetectionManager.java:358)
      20. com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      21. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:357)
      22. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:306)
      23. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:198)
      24. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectAllChangesSinceLastBuild(DefaultChangeDetectionManager.java:155)
      25. com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction.performDelayedChangeDetection(ManualBuildDetectionAction.java:172)
      26. com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.getChainState(ChainExecutionManagerImpl.java:225)
      27. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:278)
      28. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:214)
      28 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2614.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      4. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      6. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      6 frames
    7. com.sun.proxy
      $Proxy146.delayedStart
      1. com.sun.proxy.$Proxy146.delayedStart(Unknown Source)
      1 frame
    8. com.atlassian.bamboo
      PlanExecutionManagerImpl$2$1$1.call
      1. com.atlassian.bamboo.plan.PlanExecutionManagerImpl$2$1$1$1.run(PlanExecutionManagerImpl.java:430)
      2. com.atlassian.bamboo.util.CacheAwareness$2.call(CacheAwareness.java:83)
      3. com.atlassian.bamboo.util.CacheAwareness$2.call(CacheAwareness.java:79)
      4. com.atlassian.bamboo.util.CacheAwareness.whileReadingThroughCaches(CacheAwareness.java:101)
      5. com.atlassian.bamboo.util.CacheAwareness.whileReadingThroughCaches(CacheAwareness.java:78)
      6. com.atlassian.bamboo.util.CacheAwareness.whileReadingThroughCaches(CacheAwareness.java:118)
      7. com.atlassian.bamboo.plan.PlanExecutionManagerImpl$2$1$1.call(PlanExecutionManagerImpl.java:425)
      8. com.atlassian.bamboo.plan.PlanExecutionManagerImpl$2$1$1.call(PlanExecutionManagerImpl.java:417)
      8 frames
    9. com.atlassian.util
      ManagedLocks$ManagedLockImpl.withLock
      1. com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:312)
      1 frame
    10. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:85)
      2. com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:800)
      3. com.atlassian.bamboo.plan.PlanExecutionManagerImpl.access$300(PlanExecutionManagerImpl.java:129)
      4. com.atlassian.bamboo.plan.PlanExecutionManagerImpl$2$1.run(PlanExecutionManagerImpl.java:411)
      5. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      6. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      7. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      8. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      8 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame