An SVN error (200 OK) when checking out from my online repository
Asked Answered
K

14

70

I'm trying to set up my first repository on my host and am getting this error when I use TortoiseSVN to checkout the project:

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

Here is what I did:

  1. SSH into my host and head to /home/myaccnt and 'svnadmin create svn'

  2. Create my project repository: 'svn mkdir svn/myproject'

  3. Add files to the repository: cd /home/myaccnt/.../myproject (which has /tags, /branch, /trunk); 'svn import file:///home/myaccnt/svn/myproject' (the big old list of files being added is seen at this point.)
    At this point I think that I've setup my repository and imported my project into the repository. So, I'm ready to checkout using TortoiseSVN on my Windows box. So:

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

Result?

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

Anyone have any thoughts for me? I'm likely missing something fundamental with the structure of my repository or htaccess... or something.

Kudva answered 22/6, 2009 at 3:33 Comment(0)
K
3

Apparently, this is more a restriction issue by my host, and I am working with 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, TortoiseSVN 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 information about SVN on the A2 host in their support wiki.

Kudva answered 22/6, 2009 at 4:4 Comment(0)
G
82

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 especially the link to "Julian's patch".)

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

Grazier answered 16/3, 2010 at 16:32 Comment(4)
Yea. In most cases it's a wrong url. I just had it again also, but I always forget the cause of it.Caines
We see this error from time to time with our customers at ProjectLocker as well, and it's always an incorrect URL. Please accept the above answer.Infeasible
It's rare to see an answer with 66 upvotes lose to one with 2.Housewares
The link is (effectively) broken ("ArchivedAt Nothing found - bye").Solvent
A
10

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 Apache 2 configuration 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.example/svn/repo_address

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

Alidus answered 13/7, 2010 at 18:4 Comment(1)
+1 This was the only one from many others that solved my problem. Thanks million times! :)Harpist
K
3

Apparently, this is more a restriction issue by my host, and I am working with 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, TortoiseSVN 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 information about SVN on the A2 host in their support wiki.

Kudva answered 22/6, 2009 at 4:4 Comment(0)
E
3

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...

Epidemic answered 28/5, 2010 at 13:50 Comment(0)
C
3

For me, the error was on the server side, and it was because I forgot to uncomment

DAV svn

in the configuration file /etc/apache2/mods-enabled/dav_svn.conf (on Debian).

Cityscape answered 24/9, 2010 at 18:26 Comment(0)
H
2

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

Hidalgo answered 22/6, 2009 at 3:39 Comment(0)
F
1

For me it was definitely an authentication issue.

Normally when I attempt to checkout a new project, I am asked if I want to accept the certificate (permanently, temporary, or not at all).

I must have clicked not at all previously, so it wouldn't prompt me again.

Using the TortoiseSVN client I went into Settings, then Saved Data and cleared my Authentication data (button Clear).

Then when I attempted a checkout, it prompted me to accept the certificate. I did Permanently and all was good. It checked out all my code.

Forgery answered 10/11, 2010 at 15:29 Comment(0)
A
1

This error is completely generic and just means it couldn't communicate with the SVN server. Use your browser to look at the URL and see what's really being served. It should be a plain black and white page that says Powered by Subversion in the footer. That should help you figure out what the problem is.

In my case the requests were not ending up at the DAV module because I'm using ProxyPass.

Antioch answered 26/10, 2011 at 18:11 Comment(0)
J
0

Try to put / on the end of URL. Change the checkout address from http://mywebsite.example/svn/myproject to http://mywebsite.example/svn/myproject/.

Jiminez answered 22/6, 2009 at 3:33 Comment(0)
A
0

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://<hostName>/svnroot/<projectName>/

(No key configuration was needed.)

Avila answered 20/4, 2010 at 21:28 Comment(0)
H
0

I ran into this error while connecting to an open source repository from my Ubuntu x-term.

The solution that worked was modifing /etc/subversion/servers file. I modified the proxy settings in the global section and now: All is well.

Hage answered 29/11, 2010 at 12:35 Comment(0)
S
0

Make sure SVNPath is set correctly in the Apache configuration!

Serosa answered 15/3, 2011 at 12:53 Comment(0)
A
0

Another reason for getting this error (among the many above) is having a proxy set in ~/.subversion/servers when you don't need a proxy to get to the server you are trying to connect to.

Ascospore answered 21/12, 2011 at 22:28 Comment(0)
E
0

I had a different problem (and a solution). I do not understand why it happens, but since some of the repository DID checkout, I tried to checkout various content independently.

I've found that only a JAR file in the root folder was not checked out and attempting to check it out caused the error. Since the file was a duplicate file of a same JAR file, which was in the "target" folder, I just deleted it from the repository via repo-browser (TortoiseSVN) and checked out the project via NetBeans again - finally it finished without the error.

Embroider answered 7/9, 2013 at 20:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.