Bitcoin Forum
November 18, 2024, 03:03:29 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Is it possible to recover an encrypted corrupt wallet if I have the passphrase? on: July 21, 2014, 04:44:30 AM
Code:
Program version 4.8 doesn't match environment version 5.3

It looks like the wallet was created (or modified) with a version of bitcoin that was built to use berkeley 5.3, and you are trying to salvage it using the built in 4.8

What can I do to get a newer version of Berkeley? I've never heard of this before. And why would the latest version of core have an older version than one from a year ago?
2  Bitcoin / Bitcoin Technical Support / Re: Is it possible to recover an encrypted corrupt wallet if I have the passphrase? on: July 20, 2014, 07:42:24 PM
Not looking that good. Here is the output from debug.log after using salvagewallet:

Code:
2014-07-20 19:23:43 Bitcoin version v0.9.2.1-g354c0f3-beta (Thu, 19 Jun 2014 09:51:15 +0200)
2014-07-20 19:23:43 Using OpenSSL version OpenSSL 1.0.1h 5 Jun 2014
2014-07-20 19:23:43 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2014-07-20 19:23:43 Default data directory /home/ben/.bitcoin
2014-07-20 19:23:43 Using data directory /home/ben/.bitcoin
2014-07-20 19:23:43 Using at most 125 connections (1024 file descriptors available)
2014-07-20 19:23:43 Using 4 threads for script verification
2014-07-20 19:23:43 Using wallet wallet.dat
2014-07-20 19:23:43 init message: Verifying wallet...
2014-07-20 19:23:43 CDBEnv::Open : LogDir=/home/ben/.bitcoin/database ErrorFile=/home/ben/.bitcoin/db.log
2014-07-20 19:23:44 Renamed wallet.dat to wallet.1405884223.bak
2014-07-20 19:23:44 CDBEnv::Salvage : Database salvage found errors, all data may not be recoverable.
2014-07-20 19:23:44 Salvage(aggressive) found no records in wallet.1405884223.bak.
2014-07-20 19:23:44 Initialization result: 0
2014-07-20 19:23:44 Requesting shutdown
2014-07-20 19:23:44 Running Shutdown in thread
2014-07-20 19:23:44 Shutdown : In progress...
2014-07-20 19:23:44 StopNode()
2014-07-20 19:23:44 Shutdown : done
2014-07-20 19:23:44 Shutdown finished
2014-07-20 19:23:44 Shutdown result: 1
2014-07-20 19:23:44 Stopping thread
2014-07-20 19:23:44 Stopped thread

And db.log:

Code:
Program version 4.8 doesn't match environment version 5.3
file unknown has LSN 3831/10114800, past end of log at 1/1076
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
wallet.1405885221.bak: DB_VERIFY_BAD: Database verification failed

I've also tried opening the wallet with the version of Bitcoin that I thought was used to create it. No luck there either.
3  Bitcoin / Bitcoin Technical Support / Re: Is it possible to recover an encrypted corrupt wallet if I have the passphrase? on: July 19, 2014, 07:07:57 PM
I got the more detailed error:

Code:
Traceback (most recent call last):
  File "./pywallet.py", line 5028, in <module>
    read_wallet(json_db, db_env, determine_db_name(), True, True, "", options.dumpbalance is not None)
  File "./pywallet.py", line 2442, in read_wallet
    db = open_wallet(db_env, walletfile, writable=FillPool)
  File "./pywallet.py", line 2000, in open_wallet
    r = db.open(walletfile, "main", DB_BTREE, flags)
bsddb.db.DBInvalidArgError: (22, 'Invalid argument -- BDB2509 the log files from a database environment')

I assume the last line is most important. It mentions a log file, but I couldn't find anything like that in the folders being used.
4  Bitcoin / Bitcoin Technical Support / Is it possible to recover an encrypted corrupt wallet if I have the passphrase? on: July 18, 2014, 07:28:45 PM
I found my old Bitcoin wallet that was encrypted about one year ago. Unfortunately it seems to be corrupted since the old (at time of wallet's encryption) and new versions of Bitcoin Core are unable to open it.

All my passwords are kept in a secure Keepass database, so I still have the wallet's pasphrase.

Opening the wallet file in a text editor (gedit) shows mostly binary (I think) data, but a few interesting words scattered around. Such words include "blockindex", "ckey", and the names of some transactions.

I've tried using the latest version of pywallet (https://github.com/jackjack-jj/pywallet) from the command line, but always receive this message:
Code:
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
Bitcoin is definitely not running, and I've tried the same commands with a fresh wallet without issues.

There are lots of very old (2+ years) posts claiming this is impossible, but I'm hoping things have changed since then. I haven't seen any recent posts on the subject.

Any ideas?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!