You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mark Bainter <ma...@webtech.dresser.com> on 2002/11/26 19:16:40 UTC

DB error creating repository

# svnadmin create /home/svn
subversion/libsvn_fs/err.c:51: (apr_err=160029, src_err=22)
svn: Berkeley DB error
svn: Berkeley DB error while creating environment for filesystem /home/svn/db:
Invalid argument

Apache 2.0.43
apr/aprutil from 0.15 milestone
cvs version of subversion
neon 0.23.5

% db_stat -V
Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)

% ls -gGT1 /usr/lib/libdb* | cut -d / -f 2-
usr/lib/libdb-3.2.a
usr/lib/libdb-3.2.la
usr/lib/libdb-3.2.so
usr/lib/libdb-3.so -> libdb-3.2.so
usr/lib/libdb-4.1.a
usr/lib/libdb-4.1.la
usr/lib/libdb-4.1.so
usr/lib/libdb-4.so -> libdb-4.1.so
usr/lib/libdb.a -> libdb-4.1.a
usr/lib/libdb.so -> libdb-4.1.so
usr/lib/libdb.so.2 -> libdb1.so.2
usr/lib/libdb.so.3 -> libdb-3.2.so
usr/lib/libdb1.a
usr/lib/libdb1.so -> libdb1.so.2
usr/lib/libdb1.so.2
usr/lib/libdb_cxx-3.2.a
usr/lib/libdb_cxx-3.2.la
usr/lib/libdb_cxx-3.2.so
usr/lib/libdb_cxx-3.so -> libdb_cxx-3.2.so
usr/lib/libdb_cxx-4.1.a
usr/lib/libdb_cxx-4.1.la
usr/lib/libdb_cxx-4.1.so
usr/lib/libdb_cxx-4.so -> libdb_cxx-4.1.so
usr/lib/libdb_cxx.a -> libdb_cxx-4.1.a
usr/lib/libdb_cxx.so -> libdb_cxx-4.1.so
usr/lib/libdb_java-4.1.a
usr/lib/libdb_java-4.1.la
usr/lib/libdb_java-4.1.so
usr/lib/libdb_java-4.1_g.so -> libdb_java-4.1.so
usr/lib/libdb_java-4.so -> libdb_java-4.1.so
usr/lib/libdb_java.so -> libdb_java-4.1.so

% ldd /usr/svn/bin/svnadmin                                                                                          ~
        libsvn_repos-1.so.0 => /usr/svn/lib/libsvn_repos-1.so.0 (0x40015000)
        libsvn_fs-1.so.0 => /usr/svn/lib/libsvn_fs-1.so.0 (0x40028000)
        libsvn_delta-1.so.0 => /usr/svn/lib/libsvn_delta-1.so.0 (0x4004a000)
        libdb-4.1.so => /usr/lib/libdb-4.1.so (0x40060000)
        libsvn_subr-1.so.0 => /usr/svn/lib/libsvn_subr-1.so.0 (0x40112000)
        libaprutil-0.so.0 => /usr/svn/lib/libaprutil-0.so.0 (0x40131000)
        libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40146000)
        libdb.so.2 => /usr/lib/libdb.so.2 (0x4014c000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015b000)
        libapr-0.so.0 => /usr/svn/lib/libapr-0.so.0 (0x4017b000)
        libm.so.6 => /lib/libm.so.6 (0x4019a000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401bd000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x401ea000)
        libdl.so.2 => /lib/libdl.so.2 (0x401ff000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40202000)
        libc.so.6 => /lib/libc.so.6 (0x40217000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I poked at the archives some trying to find this, but I didn't
see anything about it.  My apoligies if this had been covered
before.  If someone could point me in the right direction on this
I'd really apprecate it.

Thanks.

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

Re: DB error creating repository

Posted by Mark Bainter <ma...@webtech.dresser.com>.
Philip Martin [philip@codematters.co.uk] wrote:
> Mark Bainter <ma...@webtech.dresser.com> writes:
> 
> > # svnadmin create /home/svn
> > subversion/libsvn_fs/err.c:51: (apr_err=160029, src_err=22)
> > svn: Berkeley DB error
> > svn: Berkeley DB error while creating environment for filesystem /home/svn/db:
> > Invalid argument
> > 
> > Apache 2.0.43
> 
> I don't know what is causing your problem, but I do know that the
> apr-util that comes with Apache 2.0.43 is not compatible with BDB 4.1,
> you need at least version 1.21 of apr-util/dbm/apr_dbm_berkeleydb.c.
> 
> > apr/aprutil from 0.15 milestone

Yeah, I had problems with it, and I had trouble getting the current
apr* from cvs to compile, which is why I used the apr/aprutil versions
included in the 0.15 tarball instead.  

> > cvs version of subversion
> 
> cvs?

Oops, sorry about that.  When speaking of "most current from revision
control" I'm still really used to saying "cvs version".  ;-)  I meant
the most recent version from subversion.

Oh, and sorry about the duplicate message earlier too.  I recently 
rewrote my muttrc and my folder-hook was screwy.  I assumed the 
message would be bounced and resent from the proper address before
the original message came through.  It's all fixed now though.

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

Re: DB error creating repository

Posted by Philip Martin <ph...@codematters.co.uk>.
Mark Bainter <ma...@webtech.dresser.com> writes:

> # svnadmin create /home/svn
> subversion/libsvn_fs/err.c:51: (apr_err=160029, src_err=22)
> svn: Berkeley DB error
> svn: Berkeley DB error while creating environment for filesystem /home/svn/db:
> Invalid argument
> 
> Apache 2.0.43

I don't know what is causing your problem, but I do know that the
apr-util that comes with Apache 2.0.43 is not compatible with BDB 4.1,
you need at least version 1.21 of apr-util/dbm/apr_dbm_berkeleydb.c.

> apr/aprutil from 0.15 milestone
> cvs version of subversion

cvs?

> neon 0.23.5
> 
> % db_stat -V
> Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)

-- 
Philip Martin

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

Re: DB error creating repository

Posted by Philip Martin <ph...@codematters.co.uk>.
Mark Bainter <ma...@webtech.dresser.com> writes:

> I wondered about that when I did ldd.  I did manage to miss the part
> in building apache about adding those two arguments.  I'm rebuilding
> it again with those added in...however, I'm curious, it was my
> understanding that the svnadmin command worked directly on the filesystem
> and doesn't touch apache...so why would that cause this issue?  

Are you building apr/apr-util in the Subversion tree?  If so then you
will need to pass the Apache BDB configure flags to the Subversion
configure so that they get passed to the Subversion apr-util.  If you
are building and installing Apache it might be easier to configure
Subversion to use the apr/apr-util installed by Apache, rather than
build them in the Subversion tree.

-- 
Philip Martin

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

Re: DB error creating repository

Posted by Mark Bainter <ma...@webtech.dresser.com>.
Philip Martin [philip@codematters.co.uk] wrote:
> Mark Bainter <ma...@webtech.dresser.com> writes:
> 
> > % db_stat -V
> > Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
> > 
> > % ldd /usr/svn/bin/svnadmin
> >         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40146000)
> >         libdb.so.2 => /usr/lib/libdb.so.2 (0x4014c000)
> 
> I suspect this might be the problem.
> 
> Did you follow the Subversion INSTALL file and configure Apache to use
> BDB 4?

I wondered about that when I did ldd.  I did manage to miss the part
in building apache about adding those two arguments.  I'm rebuilding
it again with those added in...however, I'm curious, it was my
understanding that the svnadmin command worked directly on the filesystem
and doesn't touch apache...so why would that cause this issue?  

Also, that's the ldd for subversion instead of apache.  And I /did/
put in the flags for which version of db to use for it so I'm not 
sure why it was linked against that version at all.


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

Re: DB error creating repository

Posted by Philip Martin <ph...@codematters.co.uk>.
Mark Bainter <ma...@webtech.dresser.com> writes:

> % db_stat -V
> Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
> 
> % ldd /usr/svn/bin/svnadmin                                                                                          ~
>         libsvn_repos-1.so.0 => /usr/svn/lib/libsvn_repos-1.so.0 (0x40015000)
>         libsvn_fs-1.so.0 => /usr/svn/lib/libsvn_fs-1.so.0 (0x40028000)
>         libsvn_delta-1.so.0 => /usr/svn/lib/libsvn_delta-1.so.0 (0x4004a000)
>         libdb-4.1.so => /usr/lib/libdb-4.1.so (0x40060000)
>         libsvn_subr-1.so.0 => /usr/svn/lib/libsvn_subr-1.so.0 (0x40112000)
>         libaprutil-0.so.0 => /usr/svn/lib/libaprutil-0.so.0 (0x40131000)
>         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40146000)
>         libdb.so.2 => /usr/lib/libdb.so.2 (0x4014c000)

I suspect this might be the problem.

>         libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015b000)
>         libapr-0.so.0 => /usr/svn/lib/libapr-0.so.0 (0x4017b000)
>         libm.so.6 => /lib/libm.so.6 (0x4019a000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x401bd000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x401ea000)
>         libdl.so.2 => /lib/libdl.so.2 (0x401ff000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x40202000)
>         libc.so.6 => /lib/libc.so.6 (0x40217000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Did you follow the Subversion INSTALL file and configure Apache to use
BDB 4?

-- 
Philip Martin

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

Re: DB error creating repository

Posted by Mark Bainter <ma...@webtech.dresser.com>.
Karl Fogel [kfogel@newton.ch.collab.net] wrote:
> Could it be a permissions problem?
No, not in this case.  The first time I ran it,
I did it as my user with sudo, and I thought that
might be the cause, so I wiped it and did it again
as root.  Still no luck.


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

Re: DB error creating repository

Posted by Mark Bainter <ma...@webtech.dresser.com>.
Karl Fogel [kfogel@newton.ch.collab.net] wrote:
> Could it be a permissions problem?

No, not in this case.  The first time I ran it,
I did it as my user with sudo, and I thought that
might be the cause, so I wiped it and did it again
as root.  Still no luck.  

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

Re: DB error creating repository

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Could it be a permissions problem?

-K

Mark Bainter <ma...@webtech.dresser.com> writes:
> # svnadmin create /home/svn
> subversion/libsvn_fs/err.c:51: (apr_err=160029, src_err=22)
> svn: Berkeley DB error
> svn: Berkeley DB error while creating environment for filesystem /home/svn/db:
> Invalid argument
> 
> Apache 2.0.43
> apr/aprutil from 0.15 milestone
> cvs version of subversion
> neon 0.23.5
> 
> % db_stat -V
> Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
> 
> % ls -gGT1 /usr/lib/libdb* | cut -d / -f 2-
> usr/lib/libdb-3.2.a
> usr/lib/libdb-3.2.la
> usr/lib/libdb-3.2.so
> usr/lib/libdb-3.so -> libdb-3.2.so
> usr/lib/libdb-4.1.a
> usr/lib/libdb-4.1.la
> usr/lib/libdb-4.1.so
> usr/lib/libdb-4.so -> libdb-4.1.so
> usr/lib/libdb.a -> libdb-4.1.a
> usr/lib/libdb.so -> libdb-4.1.so
> usr/lib/libdb.so.2 -> libdb1.so.2
> usr/lib/libdb.so.3 -> libdb-3.2.so
> usr/lib/libdb1.a
> usr/lib/libdb1.so -> libdb1.so.2
> usr/lib/libdb1.so.2
> usr/lib/libdb_cxx-3.2.a
> usr/lib/libdb_cxx-3.2.la
> usr/lib/libdb_cxx-3.2.so
> usr/lib/libdb_cxx-3.so -> libdb_cxx-3.2.so
> usr/lib/libdb_cxx-4.1.a
> usr/lib/libdb_cxx-4.1.la
> usr/lib/libdb_cxx-4.1.so
> usr/lib/libdb_cxx-4.so -> libdb_cxx-4.1.so
> usr/lib/libdb_cxx.a -> libdb_cxx-4.1.a
> usr/lib/libdb_cxx.so -> libdb_cxx-4.1.so
> usr/lib/libdb_java-4.1.a
> usr/lib/libdb_java-4.1.la
> usr/lib/libdb_java-4.1.so
> usr/lib/libdb_java-4.1_g.so -> libdb_java-4.1.so
> usr/lib/libdb_java-4.so -> libdb_java-4.1.so
> usr/lib/libdb_java.so -> libdb_java-4.1.so
> 
> % ldd /usr/svn/bin/svnadmin                                                                                          ~
>         libsvn_repos-1.so.0 => /usr/svn/lib/libsvn_repos-1.so.0 (0x40015000)
>         libsvn_fs-1.so.0 => /usr/svn/lib/libsvn_fs-1.so.0 (0x40028000)
>         libsvn_delta-1.so.0 => /usr/svn/lib/libsvn_delta-1.so.0 (0x4004a000)
>         libdb-4.1.so => /usr/lib/libdb-4.1.so (0x40060000)
>         libsvn_subr-1.so.0 => /usr/svn/lib/libsvn_subr-1.so.0 (0x40112000)
>         libaprutil-0.so.0 => /usr/svn/lib/libaprutil-0.so.0 (0x40131000)
>         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40146000)
>         libdb.so.2 => /usr/lib/libdb.so.2 (0x4014c000)
>         libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015b000)
>         libapr-0.so.0 => /usr/svn/lib/libapr-0.so.0 (0x4017b000)
>         libm.so.6 => /lib/libm.so.6 (0x4019a000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x401bd000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x401ea000)
>         libdl.so.2 => /lib/libdl.so.2 (0x401ff000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x40202000)
>         libc.so.6 => /lib/libc.so.6 (0x40217000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> I poked at the archives some trying to find this, but I didn't
> see anything about it.  My apoligies if this had been covered
> before.  If someone could point me in the right direction on this
> I'd really apprecate it.
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> 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