可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I am new to subversioning. I wanted to checkout already existing project in my system. But, when I did this in console:
svn checkout urlname
It asked me for password, but I gave it wrong password by mistake. When I tried it second timee, it didn't ask me for password but gave an error message:
unable to connect to a repository at URL
The OPTIONS request returned invalid XML in the response: XML parse error at
line1: no element found (urlname)
Any idea about what I am doing wrong here?
回答1:
Start Menu > Tortoise SVN > Settings to show the settings dialog box. From Saved Data dialog, click on 'clear' button beside Authentication Data to make Tortoise Subversion forget the saved password.
However, no element found error message suggests that you have wrong URL. You might want to recheck it.
Hope this helps!
回答2:
The problem is that the URL is not correct. When you browse to the SVN rep via the http/https take a note of the full url to the repository that you want to browse to.
e.g. httpx://192.168.0.xxx/svn
Will give me the same error (unable to connect to a repository at URL
The OPTIONS request returned invalid XML in the response: XML parse error at
line1: no element found (urlname)
However when I browse to httpx://192.168.0.xxx/svn/NAMEOFREPO
Where the repo structure would look like
e.g. httpx://192.168.0.xxx/svn/NAMEOFREPO/trunk
you can now download the code :)
回答3:
Are you using TortoiseSVN or the SVN command line client?
If you're using the command line client, take a look at the .subversion\auth
directory in your home directory. This is where all authentication information is stored. Most likely, the login information is stored in .subversion\auth\svn.simple
.
Root around there to find the authentication information. Delete the file that has your authentication information stored in it. In fact, you can delete all the files in this directory. Subversion will simply recreate them once you try to log in again.
In TortoiseSVN, there's a place to clear our your Authentication information under settings.
回答4:
Try specifying the correct password using:
svn --password (your password here) checkout urlname
回答5:
Assuming that you use VisualSVN Server and get the error svn: E130003: Malformed XML: no element found
when addressing the repository, most likely the problem is with the URL you enter.
Subversion client displays this error in case the URL used leads to the web interface. The URL has to lead to the Subversion repository. To get rid of the error, just click the Checkout button in the web interface and copy-paste the correct URL to the Subversion client.
Read the article KB102: Subversion client errors caused by inappropriate repository URL for the detailed steps.
回答6:
In my case, i have fixed this issue using the option Steal lock
( checkbox
in bottom left area of the form when you are setting a lock to repository files )
this error is caused because some files it seems to be unlocked but really it isn't ( verify this from the Explorer window clicking the properties of the file, and then, SVN Properties.... then you can see the real state of the file )
回答7:
I see that most answers are guessing what the problem might be, but to make a precise diagnostic you better trace/inspect the SVN network traffic as indicated in https://subversion.apache.org/docs/community-guide/debugging.html#net-trace:
- With Wireshark
- With socat
- etc.
回答8:
navigate the URL in the browser (eg chrome)
click on the checkout button
copy the link from the checkout button
paste it in the url of svn