views:

21198

answers:

8

I'm trying to setup my first repo on my host and am getting this error when I use Tortoise to checkout the project:

Error: OPTIONS of 'http://mywebsite.com/svn/myproject': 200 OK (http://mywebsite.com)

Here is what I did:

1) ssh into my host and head to /home/myaccnt and 'svnadmin create svn'

2) create my project repo: 'svn mkdir svn/myproject'

3) add files to the repo: cd /home/myaccnt/.../myproject (which has /tags, /branch, /trunk); 'svn import file:///home/myaccnt/svn/myproject' (the big ole list of files being added is seen at this point.)

At this point I think that I've setup my repo and imported my project into the repo. So, I'm ready to checkout using TortoiseSVN on my Windows box. So:

4) In the folder I'd like to checkout to, I rightclick and 'SVN Checkout' and then make sure my URL is: http://mywebsite.com/svn/myproject

Result?

Error: OPTIONS of 'http://mywebsite.com/svn/myproject': 200 OK (http://mywebsite.com)

Anyone have any thoughts for me? I'm likely missing something fundemental w/ the structure of my repo or htaccess... or something.

Many thanks in advance.

-JL

+2  A: 

If you change the checkout address from "http://mywebsite.com/svn/myproject" to "svn://mywebsite.com/svn/myproject", does it start working? If so, maybe you didn't set up the HTTP protocol for SVN access?

1800 INFORMATION
That doesn't resolve.
J. LaRosee
Worked for me. Thanks!
Gili
+1  A: 

Apparently, this is more a restriction issue by my host. Working w/ them to resolve it.

Thanks, 1800.

BTW, the answer here was that my host, A2 Web Hosting, requires that SVN be handled via SSH using a public_key and configuring, in my case, Tortoise to do the job. It was sort of funky for someone who has just a little experience setting up keys but it was pretty satisfying once it was done!

You can find info about SVN on the A2 host in their support wiki.

J. LaRosee
A: 

Try to put / on the end of url. Change the checkout address from "http://mywebsite.com/svn/myproject" to "http://mywebsite.com/svn/myproject/".

+8  A: 

Hello,

I had to dig into this issue too and found the following pages which lead me to the solution: - http://comments.gmane.org/gmane.comp.version-control.subversion.devel/117844 (See espacially the link to "Julian's patch")

There is stated that the "OPTIONS of : 200 () OK" error is quite missleading and often just means that the repository URL is wrong.

Hope this helps somebody.

Best regards.

Tilo
Thanks. This has helped me out, too! Stupid error message.
Johnsyweb
Yea. In most cases it's a wrong url. I just had it again also, but I always forget the cause of it.
Sam S
A: 

A modification of the first response worked for me.

My repository uses SSH. The URL was given to me as https:// (for HTTPS access) and I eventually figured out that the protocol on the URL needed to be changed.

Using the command-line client: $ svn checkout svn+ssh:///svnroot//

(No key configuration was needed.)

J. random programmer
A: 

I just had this problem. My subversion server was on a non-standard port. So effectively my repository URL was wrong. Just something else to check...

mattburns
A: 

I had a similar problem with a simple "svn list" command.

To extend Vitor Mateus' answer regarding slashes; While setting up my own repository using Apache on an in-house server, my original Location tag in the apache2 config file looked like

<Location "/svn/repo_address/">
    ...
</Location>

where there was a trailing "/" after "repo_address". There should not be a slash there:

<Location "/svn/repo_address">
    ...
</Location>

Something subtle, but it makes a huge difference. Now a call to

svn list http://my.server.com/svn/repo_address

works fine. Sometimes it helps to read the manual carefully ;-)

Sphere
A: 

For me, the error was on the server side, and it was because I forgot to uncomment DAV svn in the config /etc/apache2/mods-enabled/dav_svn.conf (on debian)

Omer Sabic