com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 does not exist. It may have been deleted, please update the task and pick a new repository

Atlassian JIRA | David Corley | 5 years ago
  1. 0

    We've cloned a few jobs across plans where the job uses the default plan repository. When we attempt to use the job in the new plan, we get something along the lines of: {noformat} com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 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:84) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:48) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.InitializeBuild$CheckoutDirectoriesSnapshotHelper.<init>(InitializeBuild.java:221) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:128) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:110) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:77) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:202) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:662) {noformat} When cloning jobs across plans where the jobs use the plan default repo there should be one of the following done: # The user is prompted to select a repo from the destination plan as a replacement for the default repo from the original # The repository is reset automatically when the job is created in the destination plan

    Atlassian JIRA | 5 years ago | David Corley
    com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 does not exist. It may have been deleted, please update the task and pick a new repository
  2. 0

    We've cloned a few jobs across plans where the job uses the default plan repository. When we attempt to use the job in the new plan, we get something along the lines of: {noformat} com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 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:84) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:48) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.InitializeBuild$CheckoutDirectoriesSnapshotHelper.<init>(InitializeBuild.java:221) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:128) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:110) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:77) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:202) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:662) {noformat} When cloning jobs across plans where the jobs use the plan default repo there should be one of the following done: # The user is prompted to select a repo from the destination plan as a replacement for the default repo from the original # The repository is reset automatically when the job is created in the destination plan

    Atlassian JIRA | 5 years ago | David Corley
    com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 123456789 does not exist. It may have been deleted, please update the task and pick a new repository
  3. 0

    We're tripping up on this with Bamboo integrating shared repositories with our Stash Git instance. The build plans seem to be losing information about the repository. We are also using the planned branches feature Bamboo server running Git 1.7.9 on w2k8 Agent running Centos 6.3 with Git 1.7.1 {noformat} System Error Details Build Internet - CI - IIP Applications - release-ps59 - Update Branch For Development 10 : Error occurred while executing the build for INTERNET-CIAPPS5-UPDATEBRANCHFORDEV-10 (com.atlassian.bamboo.repository.RepositoryDefinitionException : Task failed since repository with id 2097199 does not exist. It may have been deleted, please update the task and pick a new repository) Occurred: 26 Mar 2013, 6:08:30 PM Agent: uldcin001.auiag.corp com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 2097199 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:87) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:109) at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:102) at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:84) at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:51) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) {noformat}

    Atlassian JIRA | 4 years ago | Bryce Johnson
    com.atlassian.bamboo.repository.RepositoryDefinitionException: Task failed since repository with id 2097199 does not exist. It may have been deleted, please update the task and pick a new repository
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h6. To reproduce the issue # Create a linked repository # Create a Deployment Plan and add an Environment "ENV1" ## Add a "{{Source Code Checkout}}" task and use the linked repository above created. # Run your deployment. # Clone the Environment "ENV1" by naming it as "ENV2" # Run the "ENV2" deployment by promoting the same release or generating a new one. The following message comes up: !bamboo560.noRepositoryExists.png|thumbnail! h6. Stacktrace {code} ... 2014-08-13 15:52:24,659 INFO [10-BAM::Default Agent::Agent:pool-25-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2' : 917505-983042 : Job has task that uses source control but no repositories exists. 2014-08-13 15:52:24,659 WARN [10-BAM::Default Agent::Agent:pool-25-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2' com.atlassian.bamboo.repository.RepositoryDefinitionException: Job has task that uses source control but no repositories exists. at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:70) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124) 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:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) 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:744) ... {code} h6. Workaround suggested # Edit you environment "ENV2" tasks and hit the "{{Save}}" button under the "{{Source Code Checkout}}" task.

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    com.atlassian.bamboo.repository.RepositoryDefinitionException: Job has task that uses source control but no repositories exists.
  6. 0

    h6. To reproduce the issue # Create a linked repository # Create a Deployment Plan and add an Environment "ENV1" ## Add a "{{Source Code Checkout}}" task and use the linked repository above created. # Run your deployment. # Clone the Environment "ENV1" by naming it as "ENV2" # Run the "ENV2" deployment by promoting the same release or generating a new one. The following message comes up: !bamboo560.noRepositoryExists.png|thumbnail! h6. Stacktrace {code} ... 2014-08-13 15:52:24,659 INFO [10-BAM::Default Agent::Agent:pool-25-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2' : 917505-983042 : Job has task that uses source control but no repositories exists. 2014-08-13 15:52:24,659 WARN [10-BAM::Default Agent::Agent:pool-25-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2' com.atlassian.bamboo.repository.RepositoryDefinitionException: Job has task that uses source control but no repositories exists. at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:70) at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51) at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129) at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124) 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:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) 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:744) ... {code} h6. Workaround suggested # Edit you environment "ENV2" tasks and hit the "{{Save}}" button under the "{{Source Code Checkout}}" task.

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    com.atlassian.bamboo.repository.RepositoryDefinitionException: Job has task that uses source control but no repositories exists.

    Root Cause Analysis

    1. com.atlassian.bamboo.repository.RepositoryDefinitionException

      Task failed since repository with id 123456789 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()
    2. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:84)
      2. com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:48)
      3. com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129)
      4. com.atlassian.bamboo.v2.build.task.InitializeBuild$CheckoutDirectoriesSnapshotHelper.<init>(InitializeBuild.java:221)
      5. com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareCheckoutDirectories(InitializeBuild.java:128)
      6. com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:110)
      7. com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:77)
      8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:202)
      9. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
      10. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109)
      11. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      11 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame