Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bamboo fails to build

i have installed bamboo and its running on Centos 7. Now i`m having issues when it comes to build as i get the following errors - :

Cleaned source directory '/opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1'...

Checking out revision 59b5d0c6e911e23d7c6a5d8c1b85d9da4e53ad92.

Creating local git repository in '/opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1/.git'.

/usr/bin/git clone /opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/_git-repositories-cache/191367b823096e155ae5b31f44cb90ab62bc758d --shared --no-checkout '-c filter.lfs.smudge=' '-c filter.lfs.required=false' /opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1

Cloning into '/opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1'...

ssh: Could not resolve hostname /opt/bamboo/atlassian-bamboo-6.9.1/bin/c: Name or service not known

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Checkout to revision 59b5d0c6e911e23d7c6a5d8c1b85d9da4e53ad92 has failed.

/usr/bin/git remote set-url origin file:///opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/_git-repositories-cache/191367b823096e155ae5b31f44cb90ab62bc758d

fatal: Not a git repository (or any parent up to mount point /opt)

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.

com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException

at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:141)

Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git remote set-url origin file:///opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/_git-repositories-cache/191367b823096e155ae5b31f44cb90ab62bc758d] failed with code 128. Working directory was [/opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1]., stderr:

atal: Not a git repository (or any parent up to mount point /opt)

 

1 answer

0 votes

Hi @mduduzi ndlanzi

There is something really odd going on there.
I can see that your paths are mixed with Linux and Windows formats...

e.g.:

/opt/bamboo/atlassian-bamboo-6.9.1/bin/C:/bamboo/bamboo-home/xml-data/build-dir/DS-DBR0-JOB1

Questions

  • Where is the git repository located and how is it configured in Bamboo?
  • Was this instance installed in Windows before and migrated to Centos?
  • What is the path configured in <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties ?
  • How are the paths configured in <Bamboo_Home>/bamboo.cfg.xml?
    Are they in windows or Linux format? (Forward slash or Backslash)
  • Are you running this on a Windows or Linux agent?

I hope the questions above will help us to narrow down this issue.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you