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

Linked repositories

Darius Basznianin December 3, 2021

1. I migrate bamboo and bitbucket do different machine. I installed latest version of them. In bamboo I see errors related to linked repositories. 

"Could not access this repository in Bitbucket Server

Bamboo was unable to verify connection to this repository. It might have been moved, deleted, or the current SSH key was revoked on Bitbucket Server. Click Save repository at the bottom of this screen to attempt to re-establish access to this repository."

2. When I click save I see on the top of page:
"

  • New access key is required but could not be added to Bitbucket Server.
  • com.atlassian.bamboo.executor.CancelException: C:\Program Files\Git\cmd\git.exe could not be started: command ['C:\Program Files\Git\cmd\git.exe' version] failed with code -1. Working directory was [\]. []"

3. In the log I have:

2021-12-03 09:26:30,878 INFO [http-nio-8085-exec-8] [BitbucketServerServerConfigurator] Public key was added to Bitbucket Server (Bamboo user: dbasznianin@xxx.com, application: Bitbucket [http://bitbucket.xxx.local:7990], location: repository SSC/ssc_apps): ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxrO4KEtjVng6pIYGWqtBfUzNYY2NS02G5gIjCbeLDw4Xcc4yrv27+nG5JPgv7fJRAptD7jGK/yvKSLKrSW+S2HlCY7WLI4kBcPLHYUxIileUd6TqkfuYTdHQTsvIt9tzHSo4cEIe9tooawGGGeLfeMRKD4J9Oz71PN0QKoQXzS9tgofjr0dg6TjHZkeK6R/zJEYU3UgNPoo2lqt3n20r++ew04VDO7aE5Xa2hGifZiovSrJXwoped6SQArvfD2fP6VghDvClQj1GTg6HjedlRMhEox4Vjn/v7/NyO+kvTlAMAyR1rUiso9RHNfjJDvmn2hwjBulat70bHcOHUWmtx http://bamboo.xxx.local:8085
2021-12-03 09:26:30,891 INFO [http-nio-8085-exec-8] [BitbucketServerServerConfigurator] Can't authenticate with Bitbucket Server despite successful public key storage: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxrO4KEtjVng6pIYGWqtBfUzNYY2NS02G5gIjCbeLDw4Xcc4yrv27+nG5JPgv7fJRAptD7jGK/yvKSLKrSW+S2HlCY7WLI4kBcPLHYUxIileUd6TqkfuYTdHQTsvIt9tzHSo4cEIe9tooawGGGeLfeMRKD4J9Oz71PN0QKoQXzS9tgofjr0dg6TjHZkeK6R/zJEYU3UgNPoo2lqt3n20r++ew04VDO7aE5Xa2hGifZiovSrJXwoped6SQArvfD2fP6VghDvClQj1GTg6HjedlRMhEox4Vjn/v7/NyO+kvTlAMAyR1rUiso9RHNfjJDvmn2hwjBulat70bHcOHUWmtx http://bamboo.xxx.local:8085

Can anybody help with that? Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Darius Basznianin December 3, 2021

I figured out what was wrong.

In "Server capabilities" section there was incorrect pat to the git.exe

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events