You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Damon Rand <da...@cybermagic.co.nz> on 2003/07/29 12:38:40 UTC

Berkeley DB database corruption!

Hi guys,

    My repository has been on 0.23.0 for a month or so. Last week it
developed a severe error.. Browsing the repository by any means just hung..
Apache didn't report any errors in the log.. So I ran

D:\svn>svnadmin recover abc.org

but it gave..

Acquiring exclusive lock on repository db.
Recovery is running, please stand by...
Recovery completed.
svn: Berkeley DB error
svn: Berkeley DB error while opening environment for filesystem abc.org/db:
DB_RUNRECOVERY: Fatal error, run database recovery

And now

D:\svn>svnadmin recover abc.org

gives

Acquiring exclusive lock on repository db.
Recovery is running, please stand by...
Recovery completed.
svn: Berkeley DB error
svn: Berkeley DB error while opening environment for filesystem abc.org/db:
DB_RUNRECOVERY: Fatal error, run database recovery


Now I get

<?xml version="1.0" encoding="utf-8" ?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
xmlns:C="svn:">
<C:error />
<m:human-readable errcode="160029">Berkeley DB error while opening
environment for filesystem d:/svn/abc.org/db: DB_RUNRECOVERY: Fatal error,
run database recovery</m:human-readable>
</D:error>

There is nothing in the windows event log.. Apache logs gives..

[Tue Jul 29 13:28:25 2003] [error] [client 128.1.32.3] Could not fetch
resource information.  [500, #0], referer: http://svn.intsec.abc.org/
[Tue Jul 29 13:28:25 2003] [error] [client 128.1.32.3] Could not open the
SVN filesystem at d:/svn/abc.org  [500, #160029], referer:
http://svn.intsec.abc.org/
[Tue Jul 29 13:28:25 2003] [error] [client 128.1.32.3] Berkeley DB error
while opening environment for filesystem d:/svn/abc.org/db:
DB_RUNRECOVERY: Fatal error, run database recovery  [500, #160029], referer:
http://svn.intsec.abc.org/

The other thing worth noting is that I am using SVNAutoversioning..

Help!!

Damon.




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

Re: Berkeley DB database corruption!

Posted by Ben Collins-Sussman <su...@collab.net>.
"Damon Rand" <da...@cybermagic.co.nz> writes:

> D:\svn>svnadmin recover abc.org
> 
> gives
> 
> Acquiring exclusive lock on repository db.
> Recovery is running, please stand by...
> Recovery completed.
> svn: Berkeley DB error
> svn: Berkeley DB error while opening environment for filesystem abc.org/db:
> DB_RUNRECOVERY: Fatal error, run database recovery

Recovery won't work if the svnadmin process doesn't have complete r/w
privs to all the db files in repos/db/.  Check your perms.

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

Re: Berkeley DB database corruption!

Posted by Ben Collins-Sussman <su...@collab.net>.
"Damon Rand" <da...@cybermagic.co.nz> writes:

> D:\svn>svnadmin recover abc.org
> 
> gives
> 
> Acquiring exclusive lock on repository db.
> Recovery is running, please stand by...
> Recovery completed.
> svn: Berkeley DB error
> svn: Berkeley DB error while opening environment for filesystem abc.org/db:
> DB_RUNRECOVERY: Fatal error, run database recovery

Recovery won't work if the svnadmin process doesn't have complete r/w
privs to all the db files in repos/db/.  Check your perms.

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