You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert A Nesius <rn...@ichips.intel.com> on 2002/07/09 22:28:16 UTC

Config question for svn server

Hi all,
I'm a bit puzzled by my first test-run with the svn server,
and wanted to ask a clarifying question.

I created a repository like so (simply for testing purposes).

./svnadmin create /tmp/svn/cmstest
-> svn import file:///tmp/svn/cmstest /fs3/comp.apps_build.1/fping/fping-2.3b1

Then I set up my apache server, with the following config lines
added to httpd.conf:

<Location /svn/repos>
  DAV svn
  SVNPath /tmp/svn
</Location>

ServerName plxw0026.pdx.intel.com

However, the following command failed....

[plxw0026]-> svn 138> svn co http://plxw0026.pdx.intel.com/svn/repos -d wc

svn_error: #21089 : <Berkeley DB error>
  OPTIONS request failed on /svn/repos

  svn_error: #21089 : <Berkeley DB error>

    Berkeley DB error while opening environment for filesystem /tmp/svn/db:
    No such file or directory

And sure enough, there was no DB file in /tmp/svn.

Changing the SVNPath directive in httpd.conf to:
SVNPath /tmp/svn/cmstest

... fixed the problem.

The following command subsequently succeeded:
svn co http://plxw0026.pdx.intel.com/svn/repos -d wc

And you're all going "Of course it did!"  So to make sure
I understand things, I wanted to confirm that whatever
one feeds to 'svnadmin create' needs to exist as an SVNPath.

Now that I've written this out and thought it through,
I guess that all checksums okay.  But I'll post this to
the list just to make sure I've got things straight, and
in case this can help anyone else in the future when
reviewing the archives...

-Rob


-- 
#include <sig.h>
------------------------------------------------------------------
Robert Nesius             rnesius@ichips.intel.com    503.712.2181
DPG Engineering Computing SW Applications Team



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Config question for svn server

Posted by Sander Striker <st...@apache.org>.
> From: Robert A Nesius [mailto:rnesius@ichips.intel.com]
> Sent: 10 July 2002 00:28

> Hi all,
> I'm a bit puzzled by my first test-run with the svn server,
> and wanted to ask a clarifying question.
> 
> I created a repository like so (simply for testing purposes).
> 
> ./svnadmin create /tmp/svn/cmstest
> -> svn import file:///tmp/svn/cmstest /fs3/comp.apps_build.1/fping/fping-2.3b1
> 
> Then I set up my apache server, with the following config lines
> added to httpd.conf:
> 
> <Location /svn/repos>
>   DAV svn
>   SVNPath /tmp/svn
            ^^^^^^^^

You're missing the 'cmstest' part of your path.

> </Location>
> 
> ServerName plxw0026.pdx.intel.com
> 
> However, the following command failed....
> 
> [plxw0026]-> svn 138> svn co http://plxw0026.pdx.intel.com/svn/repos -d wc
> 
> svn_error: #21089 : <Berkeley DB error>
>   OPTIONS request failed on /svn/repos
> 
>   svn_error: #21089 : <Berkeley DB error>
> 
>     Berkeley DB error while opening environment for filesystem /tmp/svn/db:
>     No such file or directory
> 
> And sure enough, there was no DB file in /tmp/svn.
> 
> Changing the SVNPath directive in httpd.conf to:
> SVNPath /tmp/svn/cmstest
> 
> ... fixed the problem.

Ah, you found it already.

> The following command subsequently succeeded:
> svn co http://plxw0026.pdx.intel.com/svn/repos -d wc
> 
> And you're all going "Of course it did!"  So to make sure
> I understand things, I wanted to confirm that whatever
> one feeds to 'svnadmin create' needs to exist as an SVNPath.

Yes.  This is documented in the INSTALL file, section III.C:

    <Location /svn/repos>
        DAV svn
        SVNPath /absolute/path/to/repository
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    </Location>

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org