com.atlassian.bamboo.repository.RepositoryException: PR - Default

Atlassian JIRA | Ajay Sridhar [Atlassian] | 9 years ago
  1. 0

    If the SVN:Externals is pointing to a revision number. Bamboo throws the exception below {code} 007-08-14 13:49:05,304 INFO [BAM::BuildChangeDetector] [SvnRepository] Checking externals for DEF 2007-08-14 13:49:05,882 INFO [BAM::BuildChangeDetector] [SvnRepository] Externals revision for externals/test: LOCAL: 52 HEAD: 72 2007-08-14 13:49:08,445 INFO [BAM::BuildChangeDetector] [SvnRepository] Updating Subversion to pick up any svn:externals changes 2007-08-14 13:49:08,742 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] 2007-08-14 13:49:09,179 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] Fetching external item into 'D:\bamboo\bamboo-home\xml-data\build-dir\PR-DEF\externals\test' 2007-08-14 13:49:09,179 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] External at revision -1 2007-08-14 13:49:09,257 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] externals/test 2007-08-14 13:49:09,273 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 52 2007-08-14 13:49:12,101 INFO [BAM::BuildChangeDetector] [DefaultErrorHandler] Recording error: Failed to get the build source code : PR - Default com.atlassian.bamboo.repository.RepositoryException: PR - Default at com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild(SvnRepository.java:459) at com.atlassian.bamboo.build.strategy.PollingBuildStrategy.requiresBuild(PollingBuildStrategy.java:128) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:170) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:118) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:81) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Unknown Source) Caused by: org.tmatesoft.svn.core.SVNException: svn: Externals update failed - local revision does not match expected revision. at com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild(SvnRepository.java:422) ... 7 more {code} Originally discussed in BAM-1158, however raising a bug report due to [BSP-215|https://support.atlassian.com/browse/BSP-215].

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: PR - Default
  2. 0

    If the SVN:Externals is pointing to a revision number. Bamboo throws the exception below {code} 007-08-14 13:49:05,304 INFO [BAM::BuildChangeDetector] [SvnRepository] Checking externals for DEF 2007-08-14 13:49:05,882 INFO [BAM::BuildChangeDetector] [SvnRepository] Externals revision for externals/test: LOCAL: 52 HEAD: 72 2007-08-14 13:49:08,445 INFO [BAM::BuildChangeDetector] [SvnRepository] Updating Subversion to pick up any svn:externals changes 2007-08-14 13:49:08,742 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] 2007-08-14 13:49:09,179 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] Fetching external item into 'D:\bamboo\bamboo-home\xml-data\build-dir\PR-DEF\externals\test' 2007-08-14 13:49:09,179 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] External at revision -1 2007-08-14 13:49:09,257 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] externals/test 2007-08-14 13:49:09,273 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 52 2007-08-14 13:49:12,101 INFO [BAM::BuildChangeDetector] [DefaultErrorHandler] Recording error: Failed to get the build source code : PR - Default com.atlassian.bamboo.repository.RepositoryException: PR - Default at com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild(SvnRepository.java:459) at com.atlassian.bamboo.build.strategy.PollingBuildStrategy.requiresBuild(PollingBuildStrategy.java:128) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:170) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:118) at com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:81) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Unknown Source) Caused by: org.tmatesoft.svn.core.SVNException: svn: Externals update failed - local revision does not match expected revision. at com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild(SvnRepository.java:422) ... 7 more {code} Originally discussed in BAM-1158, however raising a bug report due to [BSP-215|https://support.atlassian.com/browse/BSP-215].

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: PR - Default
  3. 0

    1. Start with a repository structure that contains this: http://svn/repos/trunk/mybranch 2. Create a branch as follows: svn copy http://svn/repos/trunk http://svn/repos/branches/develop 3. Setup a Hudson job that checks out the workspace from: http://svn/repos/branches/develop/mybranch 4. Run the job 5. Try to use the Tag this build function on the build 6. Tag this build will fail with the error message: ERROR: Failed to tag org.tmatesoft.svn.core.SVNException: svn: Path 'http://svn/repos/branches/develop/mybranch' does not exist in revision 173,203 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.copyReposToRepos(SVNCopyDriver.java:264) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.setupCopy(SVNCopyDriver.java:628) at org.tmatesoft.svn.core.wc.SVNCopyClient.doCopy(SVNCopyClient.java:426) at hudson.scm.SubversionTagAction$TagWorkerThread.perform(SubversionTagAction.java:262) at hudson.model.TaskThread.run(TaskThread.java:126) Completed The reason according to my analysis is the fact that the Last Changed Rev is stored instead of the Revision. The Last Changed Rev is created before step 2 above, i.e. it fails because the url http://svn/repos/branches/develop/mybranch does not exist in this revision. This has also been identified in this discussion: http://jenkins.361315.n4.nabble.com/problem-in-svn-tag-plugin-or-how-hudson-creates-revision-txt-td2965746.html

    Jenkins JIRA | 6 years ago | Peter Walls
    org.tmatesoft.svn.core.SVNException: svn: Path 'http://svn/repos/branches/develop/mybranch' does not exist in revision 173,203
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    1. Start with a repository structure that contains this: http://svn/repos/trunk/mybranch 2. Create a branch as follows: svn copy http://svn/repos/trunk http://svn/repos/branches/develop 3. Setup a Hudson job that checks out the workspace from: http://svn/repos/branches/develop/mybranch 4. Run the job 5. Try to use the Tag this build function on the build 6. Tag this build will fail with the error message: ERROR: Failed to tag org.tmatesoft.svn.core.SVNException: svn: Path 'http://svn/repos/branches/develop/mybranch' does not exist in revision 173,203 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.copyReposToRepos(SVNCopyDriver.java:264) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.setupCopy(SVNCopyDriver.java:628) at org.tmatesoft.svn.core.wc.SVNCopyClient.doCopy(SVNCopyClient.java:426) at hudson.scm.SubversionTagAction$TagWorkerThread.perform(SubversionTagAction.java:262) at hudson.model.TaskThread.run(TaskThread.java:126) Completed The reason according to my analysis is the fact that the Last Changed Rev is stored instead of the Revision. The Last Changed Rev is created before step 2 above, i.e. it fails because the url http://svn/repos/branches/develop/mybranch does not exist in this revision. This has also been identified in this discussion: http://jenkins.361315.n4.nabble.com/problem-in-svn-tag-plugin-or-how-hudson-creates-revision-txt-td2965746.html

    Jenkins JIRA | 6 years ago | Peter Walls
    org.tmatesoft.svn.core.SVNException: svn: Path 'http://svn/repos/branches/develop/mybranch' does not exist in revision 173,203
  6. 0

    Support partly read-protected SVN repositories

    YouTrack | 9 years ago
    org.tmatesoft.svn.core.SVNException: svn: Failed to find time on revision 73208

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.tmatesoft.svn.core.SVNException

      svn: Externals update failed - local revision does not match expected revision.

      at com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild()
    2. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.repository.svn.SvnRepository.getChangesSinceLastBuild(SvnRepository.java:422)
      2. com.atlassian.bamboo.build.strategy.PollingBuildStrategy.requiresBuild(PollingBuildStrategy.java:128)
      3. com.atlassian.bamboo.build.DefaultBuildChangeDetector.checkIfBuildNeedsBuilding(DefaultBuildChangeDetector.java:170)
      4. com.atlassian.bamboo.build.DefaultBuildChangeDetector.doTask(DefaultBuildChangeDetector.java:118)
      5. com.atlassian.bamboo.build.DefaultBuildChangeDetector.run(DefaultBuildChangeDetector.java:81)
      6. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31)
      6 frames
    3. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame