com.atlassian.bamboo.repository.RepositoryException: Build foo failed to check SVN repository

When we create a release tag and initiate a manual build, we (consistently) receive the following error: failed to check SVN repository

The stacktrace yields: File not found: revision 7037, path '/Project/tags/REL-3.4.0/foo/foo-monitor'

The stacktrace is accurate as there is no REL-3.4.0 tag at r7037 -- the tag was created well after that revision. We are currently able to get around the issue by re-building the last release tag, which seems to allow Bamboo to pull in the correct revision state of the repository. At that point, we can then build the tag we want.

A bit of background on your setup:

* standard SVN repo structure Project/{branches,tags,trunk}

* we use global variables for driving the version of the branch, tag we wish to build

* ${bamboo.qa.ver}, ${bamboo.prod.ver}

* this configuration worked without incident in the version of Bamboo we were running previously (3.4.x)

Any ideas?

Full stacktrace below:

com.atlassian.bamboo.repository.RepositoryException: Build 'PROD-SFTPMONITOR' failed to check SVN repository

at com.atlassian.bamboo.repository.svn.SvnRepository.collectChangesSinceLastBuild(SvnRepository.java:330)

at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:256)

at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:218)

at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:136)

at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectAllChangesSinceLastBuild(DefaultChangeDetectionManager.java:123)

at com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction.performDelayedChangeDetection(ManualBuildDetectionAction.java:109)

at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.getChainState(ChainExecutionManagerImpl.java:199)

at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:252)

at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:189)

at sun.reflect.GeneratedMethodAccessor1536.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy78.delayedStart(Unknown Source)

at sun.reflect.GeneratedMethodAccessor1536.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)

at $Proxy79.delayedStart(Unknown Source)

at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:262)

at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:258)

at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:324)

at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:77)

at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:429)

at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.access$200(PlanExecutionManagerImpl.java:44)

at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1.run(PlanExecutionManagerImpl.java:257)

at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)

at java.lang.Thread.run(Thread.java:662)

Caused by: org.tmatesoft.svn.core.SVNException: svn: File not found: revision 7037, path '/Project/tags/REL-3.4.0/foo/foo-monitor'

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:269)

at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:248)

at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:268)

at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1290)

at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLocationsImpl(SVNRepositoryImpl.java:292)

at org.tmatesoft.svn.core.io.SVNRepository.getLocations(SVNRepository.java:1088)

at org.tmatesoft.svn.core.io.SVNRepository.getLocations(SVNRepository.java:1516)

at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:178)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:44)

at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:160)

at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)

at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)

at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1224)

at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:291)

at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967)

at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872)

at com.atlassian.bamboo.repository.svn.SvnRepository.detectCommitsForUrl(SvnRepository.java:514)

at com.atlassian.bamboo.repository.svn.SvnRepository.collectChangesSinceLastBuild(SvnRepository.java:269)

... 33 more

2 answers

Fixed in Bamboo 4.3.3

I keep seeing 'Fixed in Bamboo 4.3.3. This may not be true according to Simone Longoni, he states "... Any luck with Atlassian Support? How did you get it solved?

I have the same issue with a couple of plans on Bamboo 4.4.3 and Subversion 1.6x...." (https://answers.atlassian.com/questions/141927/svn-checkout-fails-while-running-job-in-bamboo)

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

652 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot