Cannot create linked repository or plan repository
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Cannot create linked repository or plan repository when the repository is empty.
The following appears in the plan-#####-XXX-#.log
1
26-Dec-2017 07:16:46 [ERROR] Failed to execute goal com.atlassian.bamboo:bamboo-specs-runner:6.2.3:run (default-cli) on project atl-spec: Execution default-cli of goal com.atlassian.bamboo:bamboo-specs-runner:6.2.3:run failed: java.lang.reflect.InvocationTargetException: An error occurred while publishing plan ATL-SVC: Can't authenticate with Bitbucket Server despite successful public key storage: ssh-rsa ...KeYiNfOrMaTiOn.... http://<bambooserver> -> [Help 1]
The following appears in the atlassian-bamboo.log
1
2
2017-12-26 07:16:46,276 INFO [threadinfo] [BitbucketServerExporter] Public key was added to Bitbucket Server (Bamboo user: User123, application: Bitbucket [https://<bambooserver>.com], location: repository ATL/ATL-svc): ssh-rsa ...KeYiNfOrMaTiOn... http://<bambooserver>
2017-12-26 07:16:46,495 INFO [threadinfo] [NativeGitOperationHelper] Could not find [] in remote refs.
Cause
The repository is empty
Workaround
Add a branch to the newly created repository and commit some code to it.
Was this helpful?