Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,423
Community Members
 
Community Events
165
Community Groups

Checking out revision causes fatal: not a git repository (or any of the parent directories): .git

Hello,

We recently migrated Bamboo to a new server The version (8.0.4) stayed the same. We use Bitbucket 7.17.1 as our git repo. Bamboo runs as a Windows service using a domain user that is local admin on the VM. I've also manually set the service account to have Full Control over the working directory.

The working directory was changed to /workdir after migrating to give us a few more characters to avoid path length limits, and the Git version is 2.33.1. We downgraded from 2.35.1 in case there was an issue with that version.

When a plan runs, we see the following:

simple	04-Apr-2022 10:29:28	Starting task 'Checkout ProductDocs' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple	04-Apr-2022 10:29:28	Checking out into F:\Bamboo_Builds\Bamboo-home\workdir\OPS-RAFVGCR-JOB1\ProductDocs
simple	04-Apr-2022 10:29:28	Updating source code to revision: 3ee3f01de05d1227d8e6cabca0adf3af8ed35b4c
simple	04-Apr-2022 10:29:28	Fetching 'refs/heads/master' from 'ssh://git@bit.paragonedge.com:7999/pt/productdocs.git'.
simple	04-Apr-2022 10:29:28	Warning: Permanently added '[127.0.0.1]:59799' (RSA) to the list of known hosts.
simple	04-Apr-2022 10:29:29	Checking out revision 3ee3f01de05d1227d8e6cabca0adf3af8ed35b4c.
simple	04-Apr-2022 10:29:29	fatal: not a git repository (or any of the parent directories): .git
error	04-Apr-2022 10:29:29	Checkout to revision 3ee3f01de05d1227d8e6cabca0adf3af8ed35b4c has failed.

This is happening on multiple repos, but not all. We have tried deleting the cache in Bamboo, stopping Bamboo, deleting the contents of the git cache in the working directory, and restarting Bamboo, adding the service account to the working directory and cache with full control, and downgrading the Git install in case that was causing an issue. 

Really not sure where to go from here. We have a ticket open, but maybe this will be faster?

Thanks!

 

1 answer

Hi Stephen, 

I have the same behavior on a specific build plan. Did you solve your problem?

-Vincent

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

942 views 3 8
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