Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16267

Stash repository connections need to be reestablished when Bamboo changes userbase

    XMLWordPrintable

Details

    Description

      Steps to Reproduce

      1. Configure Bamboo to work on internal userbase
      2. Configure a Stash repository in Bamboo
      3. Change Bamboo userbase to Crowd/JIRA
      4. Attempt to checkout from Stash
      generic error thrown by Bamboo
      Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/local/bin/git ls-remote ssh://7c0d08f6-441e-47b3-8b7d-7097dad15b48@127.0.0.1:53723/spor/sportsbook-frontend.git failed with code 128. Working directory was [/home/bamboo/Bamboo/atlassian-bamboo-home/xml-data/build-dir]., stderr:
      Authenticating remote session failed
      stdout:
      [Warning: Permanently added '[127.0.0.1]:53723' (RSA) to the list of known hosts., BAMBOO-SSH-PROXY: [While connecting to [git@lonstash.csr.pstars/10.20.16.19:8073]: 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.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:550)
      	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:417)
      	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:491)
      	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:482)
      	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)
      	... 32 more
      

      This results in the entire repository connection having to be reestablished. This can be a massive amount of work if many repositories are in play.

      I believe this may be an issue with how Bamboo stores stores the SSH key against the user profile.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cbenard Carlen Benard (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: