VCS tagging task fails after moving the Subversion server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Scenario: If the Subversion server needs to be moved to a different machine, permanently or temporarily, the DNS alias will change. For instance, a subversion server is sitting on Machine A with the DNS alias of "svn01" and Bamboo is accessing the repository using a URL similar to: http://svn01/svn/abcd/XXX/yyyy . If the OS on Machine A needs to be upgraded, the repository needs to be transferred to a different machine, Machine B, temporarily. Using svnadmin dump and svnadmin load --force-uuid, the transfer completes successfully . The DNS record for "svn01" is now changed to "dev207". Applying these changes and shutting down Machine A, Bamboo seems to be able to export a working copy from subversion, but the VCS tagging task is failing and causing the build(s) to fail:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 simple 23-May-2013 00:27:22 Copying repository http://svn01/svn/abcd/DELLSC/dellsc_76_rel to http://svn01/svn/abcd/DELLSC/tags/dellsc_76_rel/dellsc76rel1064 at revision 204270 error 23-May-2013 00:27:22 Error occurred while running Task 'Tag the successful build(11)'. This build will fail. Caused by: error 23-May-2013 00:27:22 com.atlassian.bamboo.task.TaskException: Exception when tagging repository error 23-May-2013 00:27:22 at com.atlassian.bamboo.plugins.vcs.task.VcsTaggingTask.execute(VcsTaggingTask.java:57) error 23-May-2013 00:27:22 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:180) error 23-May-2013 00:27:22 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:88) error 23-May-2013 00:27:22 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:84) error 23-May-2013 00:27:22 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:202) error 23-May-2013 00:27:22 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) error 23-May-2013 00:27:22 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) error 23-May-2013 00:27:22 at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) error 23-May-2013 00:27:22 at java.lang.Thread.run(Thread.java:662) error 23-May-2013 00:27:22 Caused by: com.atlassian.bamboo.repository.RepositoryException: Error while creating tag error 23-May-2013 00:27:22 at com.atlassian.bamboo.repository.svn.SvnRepository.createTag(SvnRepository.java:1801) error 23-May-2013 00:27:22 at com.atlassian.bamboo.plugins.vcs.task.VcsTaggingTask.execute(VcsTaggingTask.java:52) error 23-May-2013 00:27:22 ... 8 more error 23-May-2013 00:27:22 Caused by: org.tmatesoft.svn.core.SVNException: svn: File not found: revision 204270, path '/DELLSC/dellsc_76_rel/DELLSC/dellsc_76_rel' error 23-May-2013 00:27:22 svn: '/svn/abcd/!svn/bc/204270/DELLSC/dellsc_76_rel' path not found: 404 Not Found (http://svn01) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.doGetMergeInfo(DAVRepository.java:1230) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getMergeInfoImpl(DAVRepository.java:1125) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.io.SVNRepository.getMergeInfo(SVNRepository.java:2541) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.wc.SVNBasicClient.getReposMergeInfo(SVNBasicClient.java:608) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.calculateTargetMergeInfo(SVNCopyDriver.java:1711) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.copyReposToRepos(SVNCopyDriver.java:318) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.setupCopy(SVNCopyDriver.java:629) error 23-May-2013 00:27:22 at org.tmatesoft.svn.core.wc.SVNCopyClient.doCopy(SVNCopyClient.java:426) error 23-May-2013 00:27:22 at com.atlassian.bamboo.repository.svn.SvnRepository.copyRepository(SvnRepository.java:1759) error 23-May-2013 00:27:22 at com.atlassian.bamboo.repository.svn.SvnRepository.createTag(SvnRepository.java:1797) error 23-May-2013 00:27:22 ... 9 more

Cause

Even though this line: "svn: '/svn/abcd/!svn/bc/204270/DELLSC/dellsc_76_rel' path not found: 404 Not Found (http://svn01/)" seems to suggest that the problem is caused by the VCS tagging task still trying to talk to Machine A as svn01 rather than dev207 as svn01, the main problem is not caused by the host change. The root cause of the issue is having a different SVN server version on the new server than the old server. So, compare the versions on the new server with the old server and follow the guidelines provided in the workaround section to fix the problem.

Workaround

This issue was reported for Bamboo 3.4.3 for which the resolution was using svnkit 1.3.8 which is the latest of 1.3 line or downgrading new server's SVN to 1.6. (Using the same version on both servers).

If this does not resolve the problem, an upgrade to the latest version of Bamboo is recommended.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.