[csw-users] Berkeley DB 4.7 vs. 4.4 issue

PETRY, MARSHA marsha.petry at hp.com
Fri Aug 28 01:28:07 CEST 2009


I will go to topic-specific lists after this but since all my software is from opencsw I want to see if anyone has an answer here first...

My issue:
I upgraded svn and trac a couple days ago via opencsw(mostly "testing") and when I used svn I got a FATAL error (below this email, sent to list a couple days ago)

To fix that problem, using a link to old copy from someone on this list, I did the solution:
1.  Built an old BDB4.4 version
2.  db_archive -s -h old_repo          /*BDB4.4*/
3.  db_dump (each name from #2)        /*BDB4.4*/
4.  svnadmin create new_repo --fs_type = bdb  /*newest CSWsvn ver. 1.6.4*/
5.  db_load (each name from #2) to new_repo   /*BDB 4.7*/
6.  db_checkpoint -1 -v -h new_repo           /*BDB4.7*/
7.  db_verify    /*BDB4.7 ... verify each db... no error msgs*/
7.  svnserve ... /*svn 1.6.4*/

Works fine checking out code... until I check something in.  The checkin works but when I try to checkout again or update another checked-out copy I get:  "Decompression of .svn diff data failed"

/opt/csw/bin/svnadmin verify gives:
* Verified revision 0.
svnadmin: Checksum mismatch on representation '0':
   expected:  effd2c5b6f40c05496ad82988093ec13
     actual:  19b07c36abc7abbec99bf2bc432f8f64

db_recover, db_verify give no errors.  Representation '0' is scary... I found a suggestion that I should change the md5 sequences on the representations.dump file and re-load but there are over 30,000 of them.... ugh.

Is there anything obvious related to opencsw that I have missed?  Do my packages look mis-matched?  Are there any opencsw files for svn/bdb/trac that are known to have an issue?

CSWbdb                    4.7.25,REV=2009.07.01     not in catalog
CSWbdb4                   4.2.52,REV=2009.07.28     not in catalog
CSWbdb44                  4.4.20,REV=2009.07.28     not in catalog
CSWbdb47                  4.7.25,REV=2009.03.09     not in catalog
CSWsvn                    1.6.4,REV=2009.08.23      SAME
CSWtrac                   0.11.5,REV=2009.08.03     SAME
CSWzlib                   1.2.3,REV=2009.04.05      SAME

Thanks for any help. This is a showstopper problem for me and the only way I can think to recover is get rid of all these opencsw packages and use a different source for svn/trac.


> -----Original Message-----
> Am 25.08.2009 um 08:12 schrieb PETRY, MARSHA:
> > This might be a variation of the "Berkeley DB in Flux" discussion...
> >
> > I updated the trac and svn packages using pkgutil, and now have a 
> > corrupt BDB when I try to use svn.
> >
> > svn: Berkeley DB error for filesystem '/cust/repo/db' while opening
> > environment:
> > svn: DB_RUNRECOVERY: Fatal error, run database recovery
> > svn: bdb: Ignoring log file: /cust/repo/db/log.0000000918: magic 
> > number 88090400, not 40988
> > svn: bdb: Invalid log file: log.0000000918: Invalid argument
> > svn: bdb: PANIC: Invalid argument
> > svn: bdb: unable to join the environment
> >
> > The resolution on the Oracle site says that I need to 
> db_recover using 
> > the old BDB copy (4.4) --- that is now pointing to the new 4.7 copy 
> > and so I've lost the ability to run db_recover using the older 
> > version.  Is that correct? or is there a way to get that back?
> >



More information about the users mailing list