Connecting to a Subversion Repository Fails Due to 'SVN Authentication Required For' Error
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
The following error is thrown by the JIRA Subversion Plugin when trying to connect to the SVN repository using HTTPS protocol:
1
2
3
4
WebContainer : 1 ERROR [plugin.ext.subversion.SubversionManagerImpl] Connection to Subversion repository https://myhost/svn/Test failed:
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://myhost:443> Subversion Repository'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:124)
Cause
The error can occur for one of the following reasons:
The exception can occur when using a self-signed certificate and trying to connect to a local repository via SSL.
The Subversion server's authentication method may be the problem, especially when using NTLM or Active Directory.
The SVN plugin is calling SVNKit in such a way to load the configuration files and cached passwords under
%APPDATA%\Subversion
, and there is a bad password being cached here.Using an account (username ) without password
Resolution
If using SSL with a self-signed certificate, the public key needs to be imported into the JAVA trust store as described in Connecting to SSL services.
If SSL is not enabled, see SVN-240 for a workaround.
From the JIRA server instance, run the SVN Client manually as the same user that JIRA runs on. When prompted, enter the password. This will clear the cached password.
svn ls svn://<ip_address>/<project_name>
Please use an account with password or add a password to the username. Specify correct values for the username and password in Administration >> Subversion
Was this helpful?