Bitcoin Forum
May 06, 2024, 04:41:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Upgrading Wallet.dat to Ubuntu 12.10 and Bitcoin-QT 0.8.1 Crashes (Solved!)  (Read 2387 times)
Gator-hex (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
April 24, 2013, 02:24:25 AM
Last edit: April 25, 2013, 12:44:53 PM by Gator-hex
 #1

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

1715013688
Hero Member
*
Offline Offline

Posts: 1715013688

View Profile Personal Message (Offline)

Ignore
1715013688
Reply with quote  #2

1715013688
Report to moderator
1715013688
Hero Member
*
Offline Offline

Posts: 1715013688

View Profile Personal Message (Offline)

Ignore
1715013688
Reply with quote  #2

1715013688
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715013688
Hero Member
*
Offline Offline

Posts: 1715013688

View Profile Personal Message (Offline)

Ignore
1715013688
Reply with quote  #2

1715013688
Report to moderator
1715013688
Hero Member
*
Offline Offline

Posts: 1715013688

View Profile Personal Message (Offline)

Ignore
1715013688
Reply with quote  #2

1715013688
Report to moderator
1715013688
Hero Member
*
Offline Offline

Posts: 1715013688

View Profile Personal Message (Offline)

Ignore
1715013688
Reply with quote  #2

1715013688
Report to moderator
libertaad
Sr. Member
****
Offline Offline

Activity: 266
Merit: 252



View Profile WWW
April 24, 2013, 04:32:12 PM
 #2

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

Gator-hex (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
April 24, 2013, 07:34:19 PM
Last edit: April 24, 2013, 07:45:25 PM by Gator-hex
 #3

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

Gator-hex (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
April 24, 2013, 09:20:45 PM
Last edit: April 24, 2013, 10:15:57 PM by Gator-hex
 #4

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?

libertaad
Sr. Member
****
Offline Offline

Activity: 266
Merit: 252



View Profile WWW
April 25, 2013, 06:38:33 AM
 #5

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.

Gator-hex (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
April 25, 2013, 09:36:39 AM
Last edit: April 25, 2013, 09:18:34 PM by Gator-hex
 #6

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!