You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Henrik Frisk <ma...@henrikfrisk.com> on 2005/05/09 09:50:06 UTC
db broken, recover and dump fails
Hi,
After a power failure (I think that's what caused the problems to begin with) my repository got corrupt. I can do recover and check out files but I cannot commit. I have searched for info and I have tried many different methods. After doing a recovery, I can't even do a dump; It stops at revision 2, takes for ever, and than prints a million lines such as:
svn: bdb: DB_ENV->log_flush: LSN of 118/920926 past current end-of-log of 1/2750
svn: bdb: Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment.
What I have been going through seems similar to what Dean Iverson described in this post: http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=30379, but I can't seem to find any replies.
I have tried removing log and __db files and doing db_recover but nothing helps. Recovery exits normally but the problems remain (unable to commit - repository broken after I try).
I have finnaly managed to checkout all the latest versions and I am now thinking of starting with a new repository - but then I will have lost all info on previous versions...
Any help or suggestions would be greatly appreciated.
Henrik Frisk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: db broken, recover and dump fails
Posted by Max Bowsher <ma...@ukf.net>.
Henrik Frisk wrote:
> Hi,
>
> After a power failure (I think that's what caused the problems to begin
> with) my repository got corrupt. I can do recover and check out files but
> I
> cannot commit. I have searched for info and I have tried many different
> methods. After doing a recovery, I can't even do a dump; It stops at
> revision 2, takes for ever, and than prints a million lines such as:
>
> svn: bdb: DB_ENV->log_flush: LSN of 118/920926 past current end-of-log of
> 1/2750
> svn: bdb: Database environment corrupt; the wrong log files may have been
> removed or incompatible database files imported from another environment.
>
> What I have been going through seems similar to what Dean Iverson
> described
> in this post:
> http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=30379, but
> I
> can't seem to find any replies.
>
> I have tried removing log and __db files and doing db_recover but nothing
> helps. Recovery exits normally but the problems remain (unable to commit -
> repository broken after I try).
cd path/to/my_old_repository
cd ..
svnadmin create --fs-type=bdb a_new_repository
cd a_new_repository/db
rm *s __db.* log.*
cd ../../my_old_repository/db
for i in *s; do
db_dump -r "$i" | db_load -h ../../a_new_repository/db "$i"
done
cd ../..
svnadmin recover a_new_repository
svnadmin verify a_new_repository
If that doesn't work, tarball your old repository and put it somewhere I can
examine it.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org