Maxime Tremblay-Savard
Maxime Tremblay-Savard

Reputation: 967

SVN Checkout failed because of logon failure

I am trying to do a SVN checkout using tortoise SVN on a folder that is on a different server using the file:// method. Instead of doing it, it only gives me the error:

Unable to connect to a repository at URL

file://xxxxxxxxxxx/svnrep/xxx/trunk

Unable to open an ra_local session to URL

Can't open file '\xxxxxx\svnrep\xxx\trunk\format': Logon failure: unknown user name or bad password.

What could be wrong?

Upvotes: 2

Views: 3079

Answers (1)

formixian
formixian

Reputation: 1559

If you have a problem connecting to your host server, try this:

  1. Do a TortoiseSvn-checkout in the folder of your choice.
  2. Press the "..." button next to the repository url input field.
  3. In the file selection window, enter \\SERVER_NAME and press ENTER.
  4. When prompted, enter your network credentials and check "remember my credentials".
  5. Browse to your repository and select it.
  6. Back in the SVN checkout window press the same "..." again.
  7. You are now browsing into your SVN repository.
  8. Do your checkout as usual.

Note: Using SVN over file:/// is not the most optimal way but it's not going to break your SVN repository even if the network fails. SVN creates a transaction then promote it to a revision once completed. Worst case you'll end up with an uncommitted transaction in the SVN database but your repository will still be fully functional. To clean up these failed transactions, see http://svnbook.red-bean.com/en/1.6/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace.deadtxns

Upvotes: 2

Related Questions