com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed

Atlassian JIRA | Ivan Maduro | 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

    When a plan uses a Git Repository that uses Git Submodules and that plan also has branches with Branch Merging enabled, it will never run the branch plan as Bamboo fails to check out the Submodule. It will remain stuck on 'Queued' for about 10 minutes, then fail, never reaching the Elastic Agent. Disabling Branch Merging will allow the branch plan to run successfully, this also shows that the elastic agent successfully checks out the Submodule (once an SSH key is [present on the agent|https://jira.atlassian.com/browse/BAM-11369]). The Bamboo log itself shows the following error {noformat} 2013-06-14 09:35:11,491 WARN [3-DelayedChangeDetectionThread:pool-6-thread-15] [ChainExecutionManagerImpl] Exception during merge: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'submodule'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout(NativeGitOperationHelper.java:390) at com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:338) at com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:314) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:324) at com.atlassian.bamboo.plugins.git.GitRepository.retrieveSourceCode(GitRepository.java:313) at com.atlassian.bamboo.plugins.hg.BitbucketRepository.retrieveSourceCode(BitbucketRepository.java:296) at com.atlassian.bamboo.plan.branch.BranchIntegrationHelperImpl.merge(BranchIntegrationHelperImpl.java:112) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.doVcsMerge(ChainExecutionManagerImpl.java:911) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$700(ChainExecutionManagerImpl.java:93) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$4.run(ChainExecutionManagerImpl.java:538) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:333) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.execute(ChainExecutionManagerImpl.java:522) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:287) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:189) {noformat} The Elastic Agent does not show any activity (because it is never invoked by Bamboo) *workaround* Disable 'Use Submodules' add a script task to the plan that performs {{git submodule init}} {{git submodule update}}

    Atlassian JIRA | 4 years ago | Ivan Maduro
    com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed
  2. 0

    When a plan uses a Git Repository that uses Git Submodules and that plan also has branches with Branch Merging enabled, it will never run the branch plan as Bamboo fails to check out the Submodule. It will remain stuck on 'Queued' for about 10 minutes, then fail, never reaching the Elastic Agent. Disabling Branch Merging will allow the branch plan to run successfully, this also shows that the elastic agent successfully checks out the Submodule (once an SSH key is [present on the agent|https://jira.atlassian.com/browse/BAM-11369]). The Bamboo log itself shows the following error {noformat} 2013-06-14 09:35:11,491 WARN [3-DelayedChangeDetectionThread:pool-6-thread-15] [ChainExecutionManagerImpl] Exception during merge: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'submodule'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout(NativeGitOperationHelper.java:390) at com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:338) at com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:314) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:324) at com.atlassian.bamboo.plugins.git.GitRepository.retrieveSourceCode(GitRepository.java:313) at com.atlassian.bamboo.plugins.hg.BitbucketRepository.retrieveSourceCode(BitbucketRepository.java:296) at com.atlassian.bamboo.plan.branch.BranchIntegrationHelperImpl.merge(BranchIntegrationHelperImpl.java:112) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.doVcsMerge(ChainExecutionManagerImpl.java:911) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$700(ChainExecutionManagerImpl.java:93) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$4.run(ChainExecutionManagerImpl.java:538) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:333) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.execute(ChainExecutionManagerImpl.java:522) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:287) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:189) {noformat} The Elastic Agent does not show any activity (because it is never invoked by Bamboo) *workaround* Disable 'Use Submodules' add a script task to the plan that performs {{git submodule init}} {{git submodule update}}

    Atlassian JIRA | 4 years ago | Ivan Maduro
    com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed

    Root Cause Analysis

    1. com.atlassian.bamboo.repository.RepositoryException

      Checkout to revision 7cdf15301b67473812af4af83d44312ddcd34b06 has failed.command /usr/bin/git submodule update --init --recursive failed with code 1. Working directory was [/data/jirastudio/bamboo/home/xml-data/build-dir/serverSide/RHIN-SBM0-1/mergeWorkspace]., stderr: Submodule 'submodule' (git@bitbucket.org:user/submodule.git) registered for path 'submodule' Cloning into 'lock'... ssh: connect to host bitbucket.org port 22: Connection timed out fatal: The remote end hung up unexpectedly Clone of 'git@bitbucket.org:user/submodule.git' into submodule path 'submodule' failed

      at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout()
    2. com.atlassian.bamboo
      GitRepository$3.call
      1. com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout(NativeGitOperationHelper.java:390)
      2. com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:338)
      3. com.atlassian.bamboo.plugins.git.GitRepository$3.call(GitRepository.java:314)
      3 frames
    3. com.atlassian.util
      ManagedLocks$ManagedLockImpl.withLock
      1. com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:324)
      1 frame
    4. com.atlassian.bamboo
      ChainExecutionManagerImpl$4.run
      1. com.atlassian.bamboo.plugins.git.GitRepository.retrieveSourceCode(GitRepository.java:313)
      2. com.atlassian.bamboo.plugins.hg.BitbucketRepository.retrieveSourceCode(BitbucketRepository.java:296)
      3. com.atlassian.bamboo.plan.branch.BranchIntegrationHelperImpl.merge(BranchIntegrationHelperImpl.java:112)
      4. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.doVcsMerge(ChainExecutionManagerImpl.java:911)
      5. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.access$700(ChainExecutionManagerImpl.java:93)
      6. com.atlassian.bamboo.chains.ChainExecutionManagerImpl$4.run(ChainExecutionManagerImpl.java:538)
      6 frames
    5. com.atlassian.util
      ManagedLocks$ManagedLockImpl.withLock
      1. com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:333)
      1 frame
    6. com.atlassian.bamboo
      ChainExecutionManagerImpl.delayedStart
      1. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.execute(ChainExecutionManagerImpl.java:522)
      2. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:287)
      3. com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:189)
      3 frames