I have been getting:
Unable to connect to a repository at URL 'xxx'
Error running context: An error occurred during authentication
I’ve tried clearing cache, authentication data. Tried svn info —username xxx —password xxx —no-auth-cache from cmd. Tried deleting roaming/subversion, roaming/TortoiseSvn, local/TortoiseSVN, deleteing TortoiseSVN in registry and reinstalling tortoiseSVN. But still the same error. Though i can access the repo from be browser. Any ideas?
asked Jul 25, 2017 at 9:31
If it’s caused by using Microsoft Account instead of Local Account to log in your Windows, the solution is in the SO link below. It’s just difficult to find it because it doesn’t talk exactly about TortoiseSVN, but the Subversion library which is under the hood of TortoiseSVN:
In SVN how do I override automatic Windows domain authentication
From the answer:
-
In «%AppData%Subversionservers» add into [groups] this line:
yoursvnserver_com = *.yoursvnserver.com
-
In the same file later add this group:
[yoursvnserver_com]
http-auth-types=basic;digest
answered Apr 14, 2018 at 23:01
1
I was getting this same error trying to log into SVN using windows credentials. My computer was not part of the domain. I’m not sure if the fact that my computer was not part of the domain contributes to the problem.
The login screen has a checkbox «Remember my credentials». If I do not check this box when logging in to SVN, I get the error message «An error occurred during authentication». If I do check the box «Remember my credentials», the problem goes away forever.
I think in my situation, subversion may refer to those credentials several times during a repo browse or checkout and so not storing the credentials will prevent it from completing.
Several other message boards are recommending that you manually create an entry in the Windows Credential Manager. Checking the box «Remember my credentials» seems to create this entry automatically.
answered Aug 12, 2019 at 19:02
2
Update 2020: to me this error was caused by an expired password.
My Windows domain password was expired, just lock your screen and unlock to get prompted
a password change and after that it was fixed
answered Jun 15, 2020 at 10:30
rakwahtrakwaht
3,4662 gold badges28 silver badges44 bronze badges
Contact the sysadmin and administrator of your server. You can’t troubleshoot this problem without checking what’s going on on the server and how it is configured.
BTW, read https://stackoverflow.com/help/on-topic
answered Jul 25, 2017 at 9:37
PlimpusPlimpus
29.5k12 gold badges105 silver badges149 bronze badges
5
I got the same problem and was able to fix it.
I somehow managed to switch from a local account to a Microsoft account, which automatically send the (wrong) account authentication to the SVN server.
Once I switch back to a local account, TortoiseSVN works again.
answered Mar 21, 2018 at 14:24
Go to C:Usersyour_userAppDataRoamingSubversionauth
, delete all the files.
It’ll require you to log in at the SVN again.
answered Mar 13, 2019 at 13:46
1
Go to «%APPDATA%Subversionauth» and delete all files. It’ll solve your problem, requesting new credentials.
answered Jul 2, 2019 at 14:32
2
I have the following error when ever I try to connect to a SVN server on my network:
Could not authenticate to server: rejected Basic challenge
Can anyone help?
quanta
50.9k19 gold badges157 silver badges217 bronze badges
asked Jun 4, 2009 at 18:32
1
rm ~/.gnome2/keyrings/login.keyring
helped me…. afterwards I had to re-enter my password when checking out with
svn checkout -username tom https://servername.domain/
answered Jun 8, 2010 at 9:07
user45200user45200
611 silver badge2 bronze badges
1
You’ve got bad credentials in your http(s) svn url. The error message is telling you that it’s trying to use http Basic Auth and failing.
answered Jun 4, 2009 at 18:36
pjzpjz
10.5k1 gold badge31 silver badges40 bronze badges
You can add
password-stores = #intentionally left blank
in your ~/.subversion/config
file eventually combined with --non-interactive --trust-server-cert
args to the subversion command to avoid this.
answered Sep 2, 2011 at 8:15
JarlJarl
3051 gold badge4 silver badges9 bronze badges
follow these steps if you are facing this issue(on ubuntu)
- type this command:
svn ls http://[subversionpath]
,it will ask for authentication. enter you password if promoted for - type ant command
This should work.
Kuf
4492 gold badges8 silver badges24 bronze badges
answered Aug 10, 2010 at 9:10
Rakesh shuklaRakesh shukla
I ran into the same problem and in fact it results in the point, that SVN doesn’t save your login information locally.
I was able to fix this problem by doing the following steps:
1.) I edited my SVN config like this:
`store-passwords = yes`
`store-auth-creds = yes`
2.)
svn ls REPOSITORY_PATH
using my correct user data.
After this procedure SVN has stored your login data locally. This fixed my problems.
Have a nice day!
Marko
2274 gold badges7 silver badges15 bronze badges
answered Jan 31, 2012 at 8:45
Applies to: VisualSVN Server 3.8 and later
VisualSVN Server supports Integrated Windows Authentication (IWA) that
enables the Negotiate (SPNEGO) security protocol and makes Kerberos and
NTLM authentication protocols available for end users. Integrated
Windows Authentication is native on Windows and works out of the box,
but Java-based clients such as Eclipse IDE can experience some issues.
These issues and steps to resolve them are described below.
Symptoms
Eclipse displays the following errors when you contact VisualSVN Server:
Subversive plugin for Eclipse IDE
Authentication error.
svn: E170001: Negotiate authentication failed: ‘No valid credentials provided’
Subclipse plugin for Eclipse IDE
org.apache.subversion.javahl.ClientException: svn: E170001: Negotiate
authentication failed: ‘No valid credentials provided’
Cause
The error occurs because the Subversion plugin enabled in Eclipse uses
SVN connector that does not fully support Integrated Windows
Authentication. SVN connector is a special Java library that makes it
possible to access the Subversion repositories:
-
JavaHL connector on Windows supports Integrated Windows
Authentication. JavaHL is a standard Java binding provided by Apache
Subversion. It provides native JNI-based implementation of Subversion
based on the official Subversion libraries. -
SVNKit connector does not fully support Integrated Windows
Authentication and displays authentication errors. SVNKit is a pure
Java Subversion implementation, and it is not based on the official
Subversion libraries.
Resolution
Eclipse IDE supports Subversion via plugins — Subversive and
Subclipse. These Java-based clients may be configured to use two
different SVN connectors — SVNKit or JavaHL. To
resolve the issue, you should configure your Subversion plugin to use
the JavaHL SVN connector.
Below you can find instructions on how to install and enable JavaHL in
Subversive and Subclipse plugins.
Enable JavaHL in Subversive plug-in for Eclipse
Subversive is one of the plugins for Eclipse that enables support for
Subversion. By default, Subversive does not install the JavaHL SVN
Connector, and you may need to install it manually. For an official
instruction, please consider the
Subversive Installation Instructions
page. Alternative instructions are given below.
Part 1. Install JavaHL SVN connector in Subversive
Perform the following steps to install the JavaHL SVN connector
for the Subversive plugin:
- Start Eclipse IDE.
- On the menu bar, click Help and Install New Software.
- Click Add.
-
Enter the http://community.polarion.com/projects/subversive/download/eclipse/6.0/neon-site/
URL to the Subversive SVN connectors update site to the
Location field and click OK. - Clear the Group items by category checkbox.
-
Select the appropriate SVN Connectors to install. We recommend that
you select the latest available JavaHL connector version. At the time
of writing this article, the latest version is 1.9.3.-
If you use Windows 64-bit: select JavaHL Win64 Binaries and
Native JavaHL 1.9 Implementation. -
If you use Windows 32-bit: select JavaHL Win32 Binaries and
Native JavaHL 1.9 Implementation.
-
If you use Windows 64-bit: select JavaHL Win64 Binaries and
-
Click Next and follow the steps of the installation wizard
to finish the installation.
The JavaHL SVN Connector will be installed and become available in the
Subversive plugin’s settings.
Part 2. Activate JavaHL SVN connector in Subversive
When the JavaHL SVN connector is already installed, perform the
following steps to activate it:
- Start Eclipse IDE.
- On the menu bar, click Window and Preferences.
- Click Team and SVN.
- Click the SVN Connector tab.
- Select Native JavaHL SVN Connector.
- Click Apply.
Subversive should start using native JavaHL SVN Connector, and
Integrated Windows Authentication becomes available in Subversive.
Enable JavaHL in Subclipse plug-in for Eclipse
Subclipse is one of the plugins for Eclipse that enables support for
Subversion in the Eclipse IDE. Subclipse installs and enables the Native
JavaHL SVN Connector, by default. Therefore, default and up to date
installations of Subclipse should support Integrated Windows
Authentication out of the box. However, you may need to install and
enable the Native JavaHL SVN Connector in case it was removed.
Part 1. Install JavaHL connector in Subclipse
When JavaHL is not available in Subclipse, follow these steps to install
it:
- Start Eclipse IDE.
- On the menu bar, click Help and Install New Software.
-
Select the Subclipse update site in the Work with drop
down (e.g., Subclipse Latest 4.2.x Release —
https://dl.bintray.com/subclipse/releases/subclipse/4.2.x/). -
Select Subversion JavaHL Windows Native DLLs (or Subversion
JavaHL Native Library Adapter for legacy Subclipse versions). -
Click Next and follow the steps of the installation wizard
finish the installation.
The JavaHL SVN Connector will be installed and becomes available in the
Subclipse plugin’s settings.
Part 2. Activate JavaHL connector in Subclipse
Follow these steps to enable JavaHL SVN connector in the
Subclipse plugin:
- Start Eclipse IDE.
- On the menu bar, click Window and Preferences.
- Click Team and SVN.
- Under SVN interface select the JavaHL (JNI) client.
- Click Apply.
Subclipse should start using native JavaHL SVN Connector, and Integrated
Windows Authentication becomes available in Subclipse.
See also
KB39: Understanding VisualSVN Server Authentication options
KB43: How to configure Integrated Windows Authentication in VisualSVN Server