Connecting to a SVN Repository Fails with svn: E170001: Negotiate authentication failed: No valid credentials provided

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

Problem

Connection to SVN repository fails.

The following appears in the atlassian-fisheye.log:

1 2 3 2014-12-25 12:00:00,000 WARN [qtp31304708-128 ection-1379011039211] fisheye SvnRepositoryTester-getServerRootURL - Unable to get Repository Root URL for Repository:https://127.0.0.1/svn/Repository// 2014-12-25 12:00:00,001 ERROR [qtp31304708-128 ection-1379011039211] fisheye SvnRepositoryTester-pingAndValidateAccess - Exception getting FishEye access control com.cenqua.fisheye.rep.RepositoryClientException: org.tigris.subversion.javahl.ClientException: svn: E170001: Negotiate authentication failed: 'No valid credentials provided'

Cause

The bundled SVNKit used by Fisheye needs Basic Authentication to be enabled in SVN Server.

Resolutions

1) If feasible, enable Basic Authentication in SVN Server by following these steps:

Steps provided are to be considered a guideline. Please adapt them to fit your environment. For more information please visit: http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html.

  1. First, create a password file and grant access to users Alice and Bob:

    1 2 3 4 5 6 7 8 9 10 $ ### First time: use -c to create the file $ ### Use -m to use MD5 encryption of the password, which is more secure $ htpasswd -c -m /etc/svn-auth.htpasswd alice New password: ***** Re-type new password: ***** Adding password for user alice $ htpasswd -m /etc/svn-auth.htpasswd bob New password: ******* Re-type new password: ******* Adding password for user bob
  2. Add some more directives inside the <Location> block to tell Apache how to use the password file:

    1 2 3 4 5 6 7 8 9 <Location /svn> DAV svn SVNParentPath /var/svn # Authentication: Basic AuthName "Subversion repository" AuthType Basic AuthUserFile /etc/svn-auth.htpasswd </Location>

2) If you are not able to switch to basic auth you will need to use a Native SVN Client - see the following for more details: https://confluence.atlassian.com/fishkb/fisheye-and-ntlm-1189783826.html

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.