Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,189
Community Members
 
Community Events
165
Community Groups

Problem with SVN Checkout

Hello

We have many times problems, with the code checkout from SVN. In the Log files of the Process is always displayed this error. What is the reason for this problem?

Have a nice day

Maurus Hilber

simple	15-Oct-2020 16:04:13	Existing workspace found at 'D:\bamboo-home\xml-data\build-dir\SOCCTR-BC2-JOB1'. updating...
error	15-Oct-2020 16:04:13	Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
error	15-Oct-2020 16:04:13	java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '454', plan 'SOCCTR-BC2-JOB1': svn: E155004: There are unfinished work items in 'D:\bamboo-home\xml-data\build-dir\SOCCTR-BC2-JOB1'; run 'svn cleanup' first.
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:141)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:204)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:176)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:127)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error	15-Oct-2020 16:04:13		at java.lang.Thread.run(Unknown Source)
error	15-Oct-2020 16:04:13	Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '454', plan 'SOCCTR-BC2-JOB1': svn: E155004: There are unfinished work items in 'D:\bamboo-home\xml-data\build-dir\SOCCTR-BC2-JOB1'; run 'svn cleanup' first.
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.retrieveSourceCodeInternal(SvnWorkingCopyManager.java:173)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.retrieveSourceCode(SvnWorkingCopyManager.java:120)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
error	15-Oct-2020 16:04:13		... 20 more
error	15-Oct-2020 16:04:13	Caused by: org.tmatesoft.svn.core.SVNException: svn: E155004: There are unfinished work items in 'D:\bamboo-home\xml-data\build-dir\SOCCTR-BC2-JOB1'; run 'svn cleanup' first.
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.obtainWCLock(SVNWCDb.java:5862)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc17.SVNWCContext.acquireWriteLock(SVNWCContext.java:1652)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:110)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:40)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
error	15-Oct-2020 16:04:13		at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.update(SvnWorkingCopyManager.java:421)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.retrieveSourceCodeWithException(SvnWorkingCopyManager.java:322)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.retrieveSourceCodeWithCleanup(SvnWorkingCopyManager.java:262)
error	15-Oct-2020 16:04:13		at com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager.retrieveSourceCodeInternal(SvnWorkingCopyManager.java:145)
error	15-Oct-2020 16:04:13		... 26 more

r:

1 answer

0 votes

This suggests something is already using the area Bamboo is trying to work with.  It may be that something went wrong and left an indicator that it's in use lying around.

This is not a Bamboo problem, but a Subversion one.

You'll need to halt the Bamboo attempts to build, then run the following, as the user that Bamboo is running the job as:

svn update

svn cleanup

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

942 views 3 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you