java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job.

Atlassian JIRA | Nick Clarke | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    We have a Subversion repository containing several hundred software projects. I have configured a build plan in Bamboo for each software project from subversion. The repository URL is in the format http://server.example.com/subversion/projectName/trunk. I wanted to create a single linked repository that can be used by all the plans. I didn't see the Plan Name listed a variable in the documentation, so I created a variable in each plan named "svn_project" that could be used in the Repository URL string (http://server.example.com:81/subversion/${bamboo.svn_project}/trunk) This is working correctly for my regular source code checkout tasks from trunk, but Bamboo doesn't seem to be replacing the variable with its value when detecting branches - I see the following error in the logs: 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [RetryingTaskExecutor] Failed to run task 'Detecting branches Subversion' after 2 attempts. Task was not executed. 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [RetryingTaskExecutor] Exception being rethrown 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [BambooPluginUtils] An unexpected error has occurred while detecting branches: PGC-PGCLIBS java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job. at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:41) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:29) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:69) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.getOpenBranches(BranchDetectionServiceImpl.java:681) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.findBranchesCreatedBeforePlanCreation(BranchDetectionServiceImpl.java:549) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.access$700(BranchDetectionServiceImpl.java:82) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1$1.doInHibernate(BranchDetectionServiceImpl.java:261) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1.run(BranchDetectionServiceImpl.java:248) at com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:147) at com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:137) at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector.run(BranchDetectionServiceImpl.java:310) 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:724) Caused by: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job. at com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:2009) at com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:1992) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:46) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:42) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 29 more I am using the latest 5.6.1 version of Bamboo.

    Atlassian JIRA | 3 years ago | Nick Clarke
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job.
  2. 0

    We have a Subversion repository containing several hundred software projects. I have configured a build plan in Bamboo for each software project from subversion. The repository URL is in the format http://server.example.com/subversion/projectName/trunk. I wanted to create a single linked repository that can be used by all the plans. I didn't see the Plan Name listed a variable in the documentation, so I created a variable in each plan named "svn_project" that could be used in the Repository URL string (http://server.example.com:81/subversion/${bamboo.svn_project}/trunk) This is working correctly for my regular source code checkout tasks from trunk, but Bamboo doesn't seem to be replacing the variable with its value when detecting branches - I see the following error in the logs: 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [RetryingTaskExecutor] Failed to run task 'Detecting branches Subversion' after 2 attempts. Task was not executed. 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [RetryingTaskExecutor] Exception being rethrown 2014-09-01 16:37:09,298 ERROR [8-BranchDetectionBackgroundThread:pool-16-thread-2] [BambooPluginUtils] An unexpected error has occurred while detecting branches: PGC-PGCLIBS java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job. at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:41) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:29) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:69) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.getOpenBranches(BranchDetectionServiceImpl.java:681) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.findBranchesCreatedBeforePlanCreation(BranchDetectionServiceImpl.java:549) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.access$700(BranchDetectionServiceImpl.java:82) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1$1.doInHibernate(BranchDetectionServiceImpl.java:261) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1.run(BranchDetectionServiceImpl.java:248) at com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:147) at com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:137) at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87) at com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector.run(BranchDetectionServiceImpl.java:310) 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:724) Caused by: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job. at com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:2009) at com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:1992) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:46) at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:42) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 29 more I am using the latest 5.6.1 version of Bamboo.

    Atlassian JIRA | 3 years ago | Nick Clarke
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job.

    Root Cause Analysis

    1. com.atlassian.bamboo.repository.RepositoryException

      Path http://server.example.com:81/subversion/$%7Bbamboo.svn_project%7D/branches does not exist. Please check configuration of SVN repository in this job.

      at com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches()
    2. com.atlassian.bamboo
      RepositoryCachingFacadeImpl$1.load
      1. com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:2009)
      2. com.atlassian.bamboo.repository.svn.SvnRepository.getOpenBranches(SvnRepository.java:1992)
      3. com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:46)
      4. com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1$1.call(RepositoryCachingFacadeImpl.java:42)
      5. com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)
      6. com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
      7. com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
      8. com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
      9. com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:41)
      10. com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.load(RepositoryCachingFacadeImpl.java:29)
      10 frames
    3. Guava
      LocalCache$LocalManualCache.get
      1. com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      2. com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      3. com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      4. com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      5. com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      6. com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
      7. com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
      7 frames
    4. com.atlassian.bamboo
      BranchDetectionServiceImpl$BranchDetector$1$1.doInHibernate
      1. com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:69)
      2. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.getOpenBranches(BranchDetectionServiceImpl.java:681)
      3. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.findBranchesCreatedBeforePlanCreation(BranchDetectionServiceImpl.java:549)
      4. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl.access$700(BranchDetectionServiceImpl.java:82)
      5. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1$1.doInHibernate(BranchDetectionServiceImpl.java:261)
      5 frames
    5. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
      2. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337)
      2 frames
    6. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector$1.run(BranchDetectionServiceImpl.java:248)
      2. com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:147)
      3. com.atlassian.bamboo.plugin.BambooPluginUtils$Runnable.call(BambooPluginUtils.java:137)
      4. com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:87)
      5. com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl$BranchDetector.run(BranchDetectionServiceImpl.java:310)
      6. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      7. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      8. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      9. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      9 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)
      1 frame