Connecting to a Subversion Repository Fails Due to 'SVN Authentication Required For' Error
The following error is thrown by the JIRA Subversion Plugin when trying to connect to the SVN repository using HTTPS protocol:
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)
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
- 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