Bamboo builds with Subversion fail with SVN Access is denied IOException E200030
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
Summary
When running builds for Bamboo plans using Subversion repositories, the builds fail with the following error message:
Caused by: org.tmatesoft.svn.core.SVNException: svn: E200030: java.io.IOException: Access is denied.
Environment
The solution has been validated in Bamboo 9.1 but may be applicable to other versions.
Diagnosis
The following error message is present in the build logs:
Caused by: org.tmatesoft.svn.core.SVNException: svn: E200030: java.io.IOException: Access is denied.
When reviewing the <bamboo-home>/logs/atlassian-bamboo.log
file, the following errors are present:
java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code for revision '1851', plan 'PROJ-PLAN-JOB1': svn: E200030: java.io.IOException: Access is denied
at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132)
at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:172)
at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:288)
at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:284)
...
Caused by: org.tmatesoft.svn.core.SVNException: svn: E200030: java.io.IOException: Access is denied
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.dav.http.HTTPConnection.request(HTTPConnection.java:770)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:375)
Cause
This error typically suggests a problem with permissions or authentication when Bamboo tries to access the SVN repository, possibly stemming from configuration changes or permission settings.
Solution
The solution involves two items:
- Make sure you have the correct authentication and permissions for the Subversion repository.
If you are using Windows, follow these steps to ensure that Bamboo has all the necessary permissions to access SVN:
Go to the Start Menu and look for the Bamboo folder within the list of all programs.
Within the Bamboo folder, find the option labeled "Start in console".
Right-click on "Start in console" and select "Run as administrator".
By doing this, Bamboo will have the required permissions to access SVN.