Author

Topic: Upgrading Wallet.dat to Ubuntu 12.10 and Bitcoin-QT 0.8.1 Crashes (Solved!) (Read 2407 times)

hero member
Activity: 490
Merit: 500
Thanks Libertaad, I was going to use that as a last resort.

I really wanted to get Bitcoin-QT 0.8.1 working to be part of the Bitcoin network (I think that's important).

Anyway, think I solved it, found all my coins now.

This is what I did...

Quote
Installed Bitcoin-QT 0.8.1 (if you ran it previously just delete the home/.bitcoin directory.)

I copied over the complete .bitcoin old directory (not just the wallet.dat I suspected it needs the old database)

I plugged in a wired network cable instead of wifi (I suspected network corruption = DB corruption).

Run it from the Command Line (Ctrl+Atl+T) with ./usr/bin/Bitcoin-QT -upgradewallet

Let it complete the sync from scratch, stopping it and making backups every so often, so you don't have to start over.

You need at least 40GB of hard drive space to do this.

Amazingly it all worked. Success in finding both my old and new coins!

You're welcome to donate to 1LUF4Jp8PprpHcQVwXyLjCrdbSjFuaycUs if this helped you avoid pulling your hair out in anger. Thanks.

I'm putting it back on Wifi, I'll post here if I have any more problems with it, so bookmark this thread, if you're wondering about upgrading to 0.8.1.
sr. member
Activity: 266
Merit: 252
Have you tried exporting your private keys using pywallet?

Assuming you can export all of your private keys, then you could just create a new wallet, and then use importprivkey to import them all into the new wallet.
hero member
Activity: 490
Merit: 500
okay, started over with the backup folder

this time I run..

Quote
/usr/bin/bitcoin-qt -upgradewallet
/usr/bin/bitcoin-qt -rescan

which throws up this error..

Quote
EXCEPTION: St13runtime_error      
CWalletDB::ListAccountCreditDebit() : cannot create DB cursor      
bitcoin in Runaway exception

file wallet.dat has LSN 780/2077553, past end of log at 1/572406
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
DB_ENV->log_flush: LSN of 780/2077553 past current end-of-log of 1/572406
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
wallet.dat: unable to flush page: 7
txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
File handles still open at environment close
Open file handle: /home/user/.bitcoin/wallet.dat
Open file handle: /home/user/.bitcoin/database/log.0000000001
PANIC: fatal region error detected; run recovery
 

I close the CLI and GUI..

Restart Bitoin-QT and I see my old bitcoins but not my recently mined ones, the wallet is up to date

hmm... any ideas?
hero member
Activity: 490
Merit: 500
Okay did it the other way around this time.

Ubuntu 12.10 64bit (Quantal) and Bitcoin-QT 0.8.1

I let it run and it downloads all the blockchain. (backed up the whole directory this time)

I then close it and copy in my wallet.dat file

Then start it with...

Quote
usr/bin/bitcoin-qt -salvagewallet

but again I get...

Quote
cannot initialize keypool
on the GUI

and

Quote
bitcoin-qt: /usr/include/boost/thread/pthread/recursive_mutex.hpp:101: void boost::recursive_mutex::lock(): Assertion '!pthread_mutex_lock(&m)' failed.
Aborted (core dump)

on the CLI
sr. member
Activity: 266
Merit: 252
Unfortunately, I don't know about the error you're seeing. But, you can always extract your private keys from your wallet if you need: http://bitcoin.stackexchange.com/questions/4469/extract-private-keys-from-bitcoin-wallet
hero member
Activity: 490
Merit: 500
Ubuntu 12.10 64bit (Quantal) and Bitcoin-QT 0.8.1 Crashes

The previous version I had failed to complete the blockchain download so thought I'd upgrade.

I deleted everything from previous version but for the wallet.dat file (i have copies though)

Full blockchain downloading really fast until..

Quote
Bitcoin Error
System error:CWalletDB::ListAccountCreditDebit():cannot create DB cursor
~14130 blocks remaining

file wallet.dat has LSN 780/2077553, past end of log at 1/333
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
DB_ENV->log_flush: LSN of 780/2077553 past current end-of-log of 1/333
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment

so i try...

Quote
usr/bin/bitcoin-qt -salvagewallet

and i get...

Quote
cannot initialize keypool

bitcoin-qt: /usr/include/boost/thread/pthread/recursive_mutex.hpp:101: void boost::recursive_mutex::lock(): Assertion '!pthread_mutex_lock(&m)' failed.
Aborted (core dump)

Any ideas? I'd really like to access my bitcoins!  Angry
Jump to: