SVN authentication fails on Windows

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

For Bamboo version 2.4 and greater

Cached svn authentication has been disabled in Bamboo 2.4. You do not need to roll back the SVNKit library jar.

Symptoms

SVN authentication fails with this error:

com.atlassian.bamboo.repository.RepositoryException: Unable to retrieve source code to 'null' for 'SECURITY-TRUNK': svn: Cannot read from 'C:\Documents and Settings\Default User\Application Data\Subversion\auth\svn.simple\2c897b0a1ee600f4f74b2ee6c4fe585b': C:\Documents and Settings\Default User\Application Data\Subversion\auth\svn.simple\2c897b0a1ee600f4f74b2ee6c4fe585b (The system cannot find the file specified)

....

Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Default User\Application Data\Subversion\auth\svn.simple\2c897b0a1ee600f4f74b2ee6c4fe585b (The system cannot find the file specified)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(Unknown Source)

at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createFileInputStream(SVNFileUtil.java:1339)

at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForReading(SVNFileUtil.java:1325)

Cause

This error appears for Windows users running Bamboo 2.3.1 with the newer SVNKit 1.3 library. The file access problem is probably caused by a SVNKit bug with NTLM authentication, the real cause is unknown.

For further details see, this SVNKit bug report.

Resolution

Roll back SVNKit version, by following these steps:

  1. Stop Bamboo and all remote agents;

  2. Remove svnkit-1.3.0.5847.jar, jna-3.0.9.jar and trilead-ssh2-build213-svnkit-1.3-patch.jar from <bamboo-install>/webapp/WEB-INF/lib;

  3. Replace with the 3 attached files;

  4. Important: remove the complete Bamboo working copy in <bamboo-home>/xml-data/build-dir on the server and in <bamboo-agent-home>/xml-data/build-dir on remote agents. If you are using elastic agents with EBS snapshots you need to remove the working copy on the snapshot volume re-snapshot to remove the working copy permanently.

  5. Restart Bamboo and remote agents.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.