What is the cause and solution to SVN: Could not authenticate to server: rejected Basic challenge?

前端 未结 4 1449
既然无缘
既然无缘 2020-12-30 00:08

If you search around the web you will see this question asked a lot but there are no clear answers. Here is my particular case.

I am using Versions SVN client on a m

相关标签:
4条回答
  • 2020-12-30 00:38

    In my case, it was a problem with the gnome keyring. I deleted is completely (rm all the files in ..gnome2/keyrings/ [for Debian])

    0 讨论(0)
  • 2020-12-30 00:45

    one thing that i noticed is that if i select 1.6 version in SVN working Copy Format popup while importing from svn then it doesnt allows me to checkout and throws above error. If i select 1.7 version checkout worked fine.

    I m using IntelijIdea 13.1.5

    0 讨论(0)
  • 2020-12-30 00:47
     authorization failed: Could not authenticate to server: rejected Basic
     challenge
    

    The error you get means that SVN server (Apache HTTP Server actually) rejects to authenticate you because of invalid credentials. Here are the steps to troubleshoot the error:

    • Do you get the password prompt? Do you get the password prompt 3 times in a row and then see this error?

      If you do: the first troubleshooting step would be to double-check that the entered username and password are correct. Usernames can be case-sensitive!

      The second troubleshooting step is not as obvious as the previous one; you can encounter the problem after changing your AD account's password. Basic authentication fails when password contains non-ASCII symbols (e.g. £, ü, ä, etc.). Shortly speaking Basic auth does not support non-ASCII characters in the password.

    • You do not get the password prompt, it just fails with the error authorization failed: Could not authenticate to server: rejected Basic challenge.

      It makes sense to attempt to authenticate forcing your credentials, e.g. with the command-line:

      svn info --username USERNAME --password PASSWORD --no-auth-cache https://server/svn/repository/

      --username ARG : specify a username ARG

      --password ARG : specify a password ARG

      --no-auth-cache : do not cache authentication tokens

      If you can successfully authenticate with this command-line, you should clear your cached credentials. See SVNBook | Client Credentials for details. However, some GUI clients allow you to clear cache in a couple of clicks.

    0 讨论(0)
  • 2020-12-30 00:58

    Best to just use SVN to copy trunk over to tags

    svn cp http://plugins.svn.wordpress.org/xxx/trunk http://plugins.svn.wordpress.org/xxx/tags/1.0 -m "tagging 1.0"
    

    That should work just fine if you're having a problem with git svn tag.

    0 讨论(0)
提交回复
热议问题