Bamboo on Windows throws an authentication error when adding a linked repository


アトラシアン コミュニティをご利用ください。


プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。


When running Bamboo on a Windows server, adding a Git repository as a linked repository can result in an authentication error. The error will show up both on the UI and in the atlassian-bamboo.log file.

The example error below was triggered when connecting to a Github repository, but the same has been observed when connecting to other types such as Bitbucket Cloud.

Failed to connect to repository (type: GitHub repository, location:, time: 10.10 s, errors: [usage: git credential-store [<options>] <action>
--file <path> fetch and store credentials in <path>
usage: git credential-store [<options>] <action>
--file <path> fetch and store credentials in <path>
remote: Invalid username or password.
fatal: Authentication failed for ''])


  • Windows


Bamboo uses the <bamboo-installation-directory>/temp to store temporary files including git credentials. In Windows, the path to this folder can contain spaces such as C:/Program Files/Bamboo/temp/. It has been observed that on some occasions these spaces on the Path can interfere with Git, and can cause the mentioned authentication error to occur.


The below steps describe how to configure a JVM property when Bamboo is running as a console application. When running Bamboo as a service you will need to configure the property in a different location. Please see the below documentation for steps for a Windows Service:

  1. Stop Bamboo
  2. From <bamboo-install>/bin, open setenv.bat.
  3. Find the section set JVM_SUPPORT_RECOMMENDED_ARGS=
  4. Add this JVM property, following Configuring your system properties
    •<a path for the temporary directory without spaces>
  5. Start Bamboo

最終更新日 2022 年 6 月 6 日


Powered by Confluence and Scroll Viewport.