[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#578157: and another!



On Mon, Jan 10, 2011 at 12:54:58AM -0500, micah anderson wrote:
On Fri, 7 Jan 2011 20:17:29 +0100, Jonas Smedegaard <dr@jones.dk> wrote:
So what really is the issue here is that _at_ _each_ _runtime_ _environment_ are the db files incompatible.

http://download.oracle.com/docs/cd/E17276_01/html/programmer_reference/changelog_4_8.html#id1655659

Database or Log File On-Disk Format Changes:

  1.  The log file format changed in 4.8.

So it seems that its just the db4.8 logs are not backward compatible with 4.7. Transaction logs are great, if you want to do recovery, but I wonder if they are really needed. If I recall, they simply grow, until you rotate them, unless you set specific DB_CONFIG flags.

According to Helmut Grohne, all Bitcoin users maintain a full history of transactions in those logs - so I suspect they shouldn't be rotated but just (slowly) grow and grow...


@Micah: Could you please test if upgrading works like this:

   1) Move aside your precious .bitcoin folder
   2) Start the current Debian Bitcoin (or upstream binary)
3) Let Bitcoin run until its db is fully init'ed (i.e. dir is ~150MB)
   3) Quit Bitcoin
   4) Install packages libdb4.8-util and db4.7-util

you mean db4.8-util and db4.7-util :)

Ah, yes.  Had crept into README.Debian too - corrected now.


   5) run the following commands:

I think that the following commands should only be run after I've
stopped the running bitcoind:

That happened in 3), no?

Any, I am not this detailed in the readme (and not sure why I spelled it out to you either - you seem to know usage of this tool better than me!).


     db4.7_recover -h ~/.bitcoin
     db4.8_upgrade -h ~/.bitcoin wallet.dat

   6) Start your locally compiled Bitcoin
   7) Tell me if it worked out or not :-)

It seems like it works, here is the log:

[log snipped]

Good.  Thanks for confirming!


I will now compile a new Bitcoin against Berkeley DB 4.8, with a README mentioning essential parts of above - blindly hoping that it works.

I checked with the bitcoin community, and found there are quite a number of people using bdb4.8 on gentoo, redhat, fedora and freebsd.

Please be careful to test against current release, not the version I am
about to release :-)

Yep, I used 0.3.19~dfsg-3~0jones1 for this test.

Thanks again.


- Jonas

--
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: Digital signature


Reply to: