Details
-
Suggestion
-
Resolution: Duplicate
-
None
-
None
Description
When attempting to check out some repositories, the process will fail with the following exception:
{{com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 917507 does not exist. It may have been deleted, please update the task and pick a new repository
at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:95)
at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:54)
at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:120)
at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:126)
at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareWorkingDirectory(InitializeBuild.java:101)
at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:82)
at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:53)
at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215)
at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221)
at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
at java.lang.Thread.run(Thread.java:745)}}
This is the same as the issue logged in 2013 as BAM-13053
I have tried removing and re-creating numerous repos, but still experience this exception.
I've been experiencing this problem since updating Bamboo credentials to the new Atlassian user details on Bitbucket, and while it typically appears this can be resolved by removing the offending repository and re-creating it, if you have a lot of repositories in your project this makes it really difficult to determine which repository is the cause.
I can't get Bamboo to compile out of the box but having looked at the source code without the context, it would appear that on RepositoryFunctions:95 you have this exception message which is thrown where earlier on you have a string representation in 'input' of the repository name that is failing.
As I'm not going to spend hours debugging a build that doesn't work out of the box, if someone could verify what this value contains then simply adding this value to the thrown exception could help users fix the issue with trivial work involved from the Bamboo dev team.
Could this exception message please be changed so that it more easily identifies the String representation of the repository and users can diagnose the issue without an unhelpful repository ID number?
Attachments
Issue Links
- duplicates
-
BAM-11198 Use repository name instead of ID in log error message
- Gathering Interest