Thanks for your replys!
Then I did like you said:
>> sudo svnadmin create /var/svnroot/dummy
Then I change the owner:
>> sudo chown -R apache:apache /var/svnroot
Then I ran:
>> svn import dummy http://localhost:8088/svn/dummy/ -m "test"
But I got this error:
svn: Path 'http://localhost:8088/svn/dummy' already exists
BTW: I am using Berkeley DB as the storage but the FS. Does this have
anything to do with this?
On 8/7/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
>
>
> On Aug 6, 2007, at 12:06, Xell Zhang wrote:
>
> > I have compiled and installed SVN 1.4.4 and want to configure it to
> > run by using apache2. (On Ubuntu 7.04)
> > I followed the book <Version Control with Subversion> and apache2
> > successfully started up with svn mods. My configuration in
> > httpd.conf is like below:
> > <Location /svn>
> > DAV svn
> > SVNParentPath /var/svnroot
> > SVNListParentPath on
> > AuthType Basic
> > AuthName "Subversion repository"
> > AuthUserFile /etc/svn-auth-file
> > Require valid-user
> > </Location>
> >
> > My apache is started as apache:apache user so I change the owner
> > of /var/svnroot from root to apache.apache.
> > Then I use:
> > svn import dummy.test http://localhost:8088/svn/test -m "test"
> > to create the very first test. But after I input the password I got:
> > svn: PROPFIND request failed on '/svn/test'
> > svn: Could not open the requested SVN filesystem
> >
> > In apache2 error logs I found:
> > [Tue Aug 07 01:00:02 2007] [error] [client 127.0.0.1] (20014)
> > Internal error: Can't open file '/var/svnroot/test/format': No such
> > file or directory
> > [Tue Aug 07 01:00:02 2007] [error] [client 127.0.0.1] Could not
> > fetch resource information. [500, #0]
> > [Tue Aug 07 01:00:02 2007] [error] [client 127.0.0.1 ] Could not
> > open the requested SVN filesystem [500, #2]
> > [Tue Aug 07 01:00:02 2007] [error] [client 127.0.0.1] Could not
> > open the requested SVN filesystem [500, #2]
> >
> > Then I use:
> > sudo svnadmin create /var/svnroot/dummy
> > It seems successful to create a repository because in my browser
> > when I visit " http://localhost:8088/svn/dummy" I can get a page of
> > which content is like:
> > Revision 0: /Powered by Subversion version 1.4.4 (r25188).
> >
> > So I don't know why I cannot import a file. I google this for a
> > long time but cannot find useful information...
> > Thanks for helping!
>
> When you use "SVNParentPath /var/svnroot" you are informing
> Subversion that you would like to host multiple repositories under
> that directory. Each repository must be created with "svnadmin
> create" before it can be used. You created a repository called
> "dummy" and were able to access it just fine. You should be able to
> import into it too. You were not able to import into the "test"
> repository because it doesn't sound like you ever "svnadmin create"d
> a test repository.
>
> If you would prefer to have just a single repository, then you would
> use "SVNPath /var/svnroot" and you would "svnadmin create" just the
> single repository /var/svnroot.
>
>
>
--
Zhang Xiao
Engineer, LAMP Team
Ethos Tech.
http://www.ethos.com.cn
Received on Tue Aug 7 04:51:53 2007