SVN authentication fails on Windows

Still need help?

The Atlassian Community is here for you.

Ask the community

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.
Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.