[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: windows/dav newbie configuration question

From: David Viner <dviner_at_yahoo-inc.com>
Date: 2002-09-06 01:42:34 CEST

Hi again,
        here's the resolution that I've found about this problem. I recompiled
everything from source on my machine, and now it works with these steps:

1. Install stuff as:
.../
        httpd-2.0/
                srclib/
                        apr/
                        aprutil/
        subversion-src/
                subversion/
                        mod_dav_svn/
                db4-win32

2. Build apache (i used VC++)
2a. Build the apr.lib and aprutil.lib (in the httpd-2.0 workspace)

3. Build subversion (again i used VC++)
4. Build the mod_dav_svn.so (from the mod_dav_svn project in the subversion
workspace)
5. Install the newly built mod_dav_svn.so
6. Add these lines to the Apache conf:

## SUBVERSION
<Location /svn/repos>
        DAV svn
        SVNPath d:/svnrepos/take2
</Location>

7. Restart Apache
8. Create a new repository
>cd D:\subversion-src\subversion\svnadmin\Debug
>svnadmin create "d:/svnrepos/take2"
9. Import some stuff (xml is a dir w/ some files in it)
>cd D:\subversion-src\subversion\clients\cmdline\Debug
>svn import -m "test" file:///d:/svnrepos/take2 "d:\tmp\xml" myproj
        Adding D:/tmp/xml/providers.xml
        Adding D:/tmp/xml/yahoo_media.xml
        Adding (bin) D:/tmp/xml/yahoo_media.zip
        Transmitting file data ......
        Committed revision 1.

>
10. Verify import success
>svn ls file:///d:/svnrepos/take2
        myproj/

>
11. Verify WebDAV access
>cd D:\subversion-src\subversion\clients\cmdline\Debug
>svn ls http://127.0.0.1/svn/repos
        myproj/

>

In the course of this, I noticed several email in the archives discussing
similar problems. I also noticed that the "is '%s' a valid repository
path?" message is in libsvn_repos/repos.c in the function svn_repos_open.
This function in turn calls svn_io_read_version_file. The error struct
returned by the read_version_file function is not passed to the error struct
for svn_repos_open. In my case, I changed the repos.c to read:

D:\subversion-src\subversion\libsvn_repos>svn diff .
Index: repos.c
===================================================================
--- repos.c
+++ repos.c 2002-09-05 16:38:48.000000000 -0700
@@ -631,8 +631,8 @@
         return svn_error_createf
           (SVN_ERR_REPOS_UNSUPPORTED_VERSION, 0, err, pool,
            "Expected version '%d' of repository; found no version at all; "
- "is `%s' a valid repository path?",
- SVN_REPOS__VERSION, path);
+ "is `%s' a valid repository path? (%s)",
+ SVN_REPOS__VERSION, path,err->message);
     }

   if (version != SVN_REPOS__VERSION)

Then in my apache error log, I saw this line:
[Thu Sep 05 16:23:25 2002] [error] [client 127.0.0.1] Expected version '1'
of repository; found no version at all; is `file:///d:/svnrepos/take2' a
valid repository path? (svn_io_file_open: can't open
`file:///d:/svnrepos/take2/format') [500, #66005]

I like being able to see "can't open ....". Perhaps this error string from
the read_version_file could be added to the error string for svn_open_repos?
It might help clarify what's actually causing the "Expected version '1' of
repository" problem.

Anyway... just wanted to let everyone know how i solved my win32 problem...
thanks

dave viner

-----Original Message-----
From: David Viner [mailto:dviner@yahoo-inc.com]
Sent: Wednesday, September 04, 2002 11:11 AM
To: dev@subversion.tigris.org
Subject: RE: windows/dav newbie configuration question

yes i made the repository w/ the svnadmin from r3033 (this is my first
excursion into subversion-land).

there is a file in d:/subversion/format with the number 1 in it.

DVINER-LAP ~ $cat d:/subversion/format
1

dave

-----Original Message-----
From: Greg Stein [mailto:gstein@lyra.org]
Sent: Tuesday, September 03, 2002 5:49 PM
To: David Viner
Cc: dev@subversion.tigris.org
Subject: Re: windows/dav newbie configuration question

On Tue, Sep 03, 2002 at 02:48:20PM -0700, David Viner wrote:
>...
> [Tue Sep 03 14:46:11 2002] [error] [client 127.0.0.1] Expected version '1'
> of repository; found no version at all; is `d:\subversion' a valid
> repository path? [500, #165005]

That looks like you have an old repository, yet you're trying to read it
using a newer server. Did you create the repository using the 'svnadmin'
program from the r3033 release?

For the latest/correct software, in the repository, there should be a file
named 'format', which contains just the number '1' in it.

Cheers,
-g

--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 6 01:43:09 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.