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

Bamboo Cloud is throwing "not valid: is this a git repository" system errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • None
    • 5.10-OD-10-008
    • Repository (Bitbucket)
    • None

    Description

      Summary

      Bamboo Cloud shows "not valid: is this a git repository" system errors.
      It occurs when Bamboo runs the command /usr/bin/git ls-remote to check the remote Bitbucket repositories.

      com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://s********s:********@bitbucket.org/s********s/pjh-elect failed with code 128. Working directory was [.]., stderr:
      fatal: https://s********s:********@bitbucket.org/s********s/p*******/info/refs not valid: is this a git repository?
      	at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:314)
      	at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:237)
      ....
      Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://s********s:********@bitbucket.org/s********s/p****** failed with code 128. Working directory was [.]., stderr:
      fatal: https://s********s:********@bitbucket.org/s********s/p*******/info/refs not valid: is this a git repository?
      	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:587)
      	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:430)
      	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:501)
      

      The errors are intermittent and checking at a latter time will work again.

      Environment

      • Bamboo
      • Bitbucket Cloud

      Steps to reproduce:

      1. Configure a "Bitbucket Cloud" repository under "Linked repositories"
      2. Wait for at least 24 hours so Bamboo does multiple checks on the repositories.

      Result:
      The errors will appear of sporadic connection failures to Bitbucket on the section: /builds/admin/systemErrors.action

      Workaround

      If the error is shown when running a build, try at a later time.
      Because the error is intermittent, if errors are found on the System Errors section, it can be discarded

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mfahd Fahd
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: