[Resolved] VCS Exception: Problem collecting changes for...

Hi,
I added a new project to teamcity, but it is not able to make a checkout on the repository.
I tried doing a checkout with TortoiseSVN on the same server where teamcity is installed and it works fine.
I don't understand what the problem is.
Here are the logs I get:


Build 'SIEngine :: SiEngine' #8
Started 'Wed Feb 16 12:44:31 CET 2011' on 'methode' by 'you'
Finished 'Wed Feb 16 12:44:31 CET 2011' with status 'ERROR Unable to collect changes'
TeamCity URL http://methode:8181/viewLog.html?buildId=681&buildTypeId=bt118

[12:44:31]: bt11
[12:44:31]: Checking for changes
[12:44:31]: java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SIEngine :: SiEngine' : Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SIEngine :: SiEngine' : Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
     at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
     at java.util.concurrent.FutureTask.get(Unknown Source)
     at jetbrains.buildServer.serverSide.impl.CancelableTaskHolder.waitForTaskToComplete(CancelableTaskHolder.java:5)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.doCollectChanges(TopBuildDependencyGraphImpl.java:34)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.access$000(TopBuildDependencyGraphImpl.java:88)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java:2)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$3.run(TopBuildDependencyGraphImpl.java)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl$4.run(TopBuildDependencyGraphImpl.java)
     at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:0)
     at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:9)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.runAsSystem(TopBuildDependencyGraphImpl.java:52)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:14)
     at jetbrains.buildServer.serverSide.impl.dependency.TopBuildDependencyGraphImpl.collectChangesForGraph(TopBuildDependencyGraphImpl.java:69)
     at jetbrains.buildServer.serverSide.impl.BuildChangesCollector.collectChangesForBuild(BuildChangesCollector.java:2)
     at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:8)
     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
     at java.util.concurrent.FutureTask.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Caused by: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SIEngine :: SiEngine' : Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
     at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.rethrowIfOurBuildType(ChangesCollectorResultImpl.java:15)
     at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.checkNoProblemsInMyBuildTypes(ChangesCollectorResultImpl.java:63)
     at jetbrains.buildServer.vcs.impl.ChangesCollectorResultImpl.checkingForChangesFinished(ChangesCollectorResultImpl.java:21)
     at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:8)
     at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:12)
     ... 5 more
Caused by: jetbrains.buildServer.vcs.VcsException: Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:342)
     at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:54)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:215)
     at jetbrains.buildServer.vcs.VcsSupport.collectChanges(VcsSupport.java:62)
     at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:24)
     at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:11)
     at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:243)
     at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:167)
     at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:241)
     at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:21)
     at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:19)
     at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$3.call(VcsChangesCollectorImpl.java:1)
     at jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$3.call(VcsChangesCollectorImpl.java)
     ... 5 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
     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.io.svn.SVNReader.handleFailureStatus(SVNReader.java:263)
     at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:242)
     at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:260)
     at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1275)
     at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.checkPath(SVNRepositoryImpl.java:248)
     at jetbrains.buildServer.buildTriggers.vcs.svn.TCSvnUtil.getKind(TCSvnUtil.java:393)
     at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsLoader.loadExternals(ExternalsLoader.java:43)
     at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsLoader.calcExternals(ExternalsLoader.java:37)
     at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsProvider.collectExternals(ExternalsProvider.java:22)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processExternalsChanges(SvnConnection.java:230)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:206)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection$3.runAction(SvnConnection.java:246)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processAllExternals(SvnConnection.java:301)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processExternalsChanges(SvnConnection.java:232)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:206)
     at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:317)
     ... 17 more

[12:44:31]: Build finished


It says there is no revision 417, but revision 417 is my head revision.
Thanks for your help

5 comments
Comment actions Permalink

Hi Philippe

The issue is related to Subversion externals.
Could you please explain how your repository is organized - do you actually have externals configured, do they point to a specific revision, does related repository has externals too?
Also, please post full teamcity-server.log and teamcity-vcs.log logs.

Thanks

0
Comment actions Permalink

Hi Michael,
Thanks for your reply.

I do have externals configured. Some of them point to a specific revision, some point to the head revision. But theses externals repositories don't have external ones of their own.
I have other projects using externals, and they are working fine in TeamCity.

Here are the logs:

teamcity-server.log

[2011-02-22 09:10:29,691]   INFO - tbrains.buildServer.ACTIVITIES - Build of "SIEngine :: SiEngine" was added to queue by "Philippe"
[2011-02-22 09:10:29,691]   INFO - tbrains.buildServer.ACTIVITIES - Configuration added to queue; name=SIEngine :: SiEngine {id=bt11}; requestor=Philippe; promotion id=769
[2011-02-22 09:10:29,707]   INFO - tbrains.buildServer.ACTIVITIES - Build started; name=SIEngine :: SiEngine, personal=false, buildId=714
[2011-02-22 09:10:29,707]   INFO - tbrains.buildServer.ACTIVITIES - Configuration removed from queue; name=SIEngine :: SiEngine, requestor=Philippe, comment=null, user=null, promotion id=769
[2011-02-22 09:10:29,707]   INFO -   jetbrains.buildServer.SERVER - Flush queue finished, number of builds started: 1
[2011-02-22 09:10:32,910]   INFO - r.serverSide.impl.BuildStarter - java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: Problem collecting changes for 'SIEngine :: SiEngine' : Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
[2011-02-22 09:10:32,925]   INFO - de.impl.history.DBBuildHistory - Start creating history entry for SIEngine :: SiEngine 714, date: 1298362232925
[2011-02-22 09:10:32,925]   INFO - de.impl.history.DBBuildHistory - End creating history entry for SIEngine :: SiEngine 714
[2011-02-22 09:10:32,941]   INFO - tbrains.buildServer.ACTIVITIES - Finished 714


teamcity-vcs.log

[2011-02-22 09:13:41,004]   WARN [loader 5 {id=5}] -  jetbrains.buildServer.VCS.SVN - Cannot process externals: svn: Pas de révision 417
Externals URL: svn://server/component/TableTransform/src/trunk/TableTransform
Current path: TableTransform
Connection URL: svn://server/dev/SIEngine/src/trunk
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417
    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.io.svn.SVNReader.handleFailureStatus(SVNReader.java:263)
    at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:242)
    at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:260)
    at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1275)
    at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.checkPath(SVNRepositoryImpl.java:248)
    at jetbrains.buildServer.buildTriggers.vcs.svn.TCSvnUtil.getKind(TCSvnUtil.java:393)
    at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsLoader.loadExternals(ExternalsLoader.java:43)
    at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsLoader.calcExternals(ExternalsLoader.java:37)
    at jetbrains.buildServer.buildTriggers.vcs.svn.ExternalsProvider.collectExternals(ExternalsProvider.java:22)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processExternalsChanges(SvnConnection.java:230)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:206)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection$3.runAction(SvnConnection.java:246)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processAllExternals(SvnConnection.java:301)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.processExternalsChanges(SvnConnection.java:232)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:206)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:317)
    at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:54)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:215)
    at jetbrains.buildServer.vcs.VcsSupport.collectChanges(VcsSupport.java:62)
    at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges(VcsChangesLoader.java:24)
    at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:11)
    at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChangesForRule(VcsChangesLoader.java:243)
    at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectChanges4CommonCheckoutRule(VcsChangesLoader.java:167)
    at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChangesForRoot(VcsChangesLoader.java:241)
    at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:21)
    at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:19)
    at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:9)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
[2011-02-22 09:13:41,004]   WARN [loader 5 {id=5}] -      jetbrains.buildServer.VCS - Unable to collect changes for [SIEngine :: SiEngine {id=bt11}]: Error collecting changes for VCS root 'SiEngine'
org.tmatesoft.svn.core.SVNException: svn: Pas de révision 417

0
Comment actions Permalink

Hi Philippe,

  Are there a chance that main repository and external repository have the same UUID and these repositories are different?
  TeamCity uses UUID of the repository to distinguish them, and if they are the same, we consider the repositories be the same.

  There is a similar issue which describes the problem.

  Regards,
  KIR

0
Comment actions Permalink

Hi Kirill,
Indeed, that was the problem! Thanks for your time.

For those wondering:
To check the repository UUID, use: svnlook.exe uuid <path>
To reset the repository UUID, use: svnadmin.exe setuuid <path>

You may then need to do a fresh checkout for your working copy.

Thanks

0
Comment actions Permalink

Actually, just a question to help better understand how it works.
I have changed the UUID of the external causing problems.
But I have other externals that have the same UUID as the root, and TeamCity doesn't complain about them. How come?

In the first place, I had one unique repository with no externals.
I copied it brutally as many times as I wanted to create externals, and modified each one in consequence.
That's why they all have (except maybe 1 or 2) the same UUID.
But TeamCity notices only one of them.
Does TeamCity rely on other information for the checkout?

0

Please sign in to leave a comment.