TortoiseSVN: authentication error

Viewed 10284

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?

7 Answers

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.

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

Go to C:\Users\your_user\AppData\Roaming\Subversion\auth, delete all the files.

It'll require you to log in at the SVN again.

Go to "%APPDATA%\Subversion\auth" and delete all files. It'll solve your problem, requesting new credentials.

Related