Bitcoin Forum
May 04, 2024, 10:32:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 17, 2022, 04:09:04 PM
Hi folks,

I think I finally solved my issue but I am not exactly sure what did the trick in the end.
The salvage command somehow did not work. Idk why but I can't find it in the core installation as an option or anywhere else... but that's me not looking at the right places I guess.

So I tried back and forth with pywallet and the recover option.
I think the origin of my trouble was a faulty python installation.
So after reinstalling it finally worked.

I did a reinstall of the bitcoin core too, since that crashed from time to time.

Anyway, now everything works fine. I can acces the priv key of the wallet and all looks actually good Wink

So thank you all again a lot for helping me.
I actually did learn a lot Smiley

Best regards

cc

2  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 14, 2022, 10:00:49 AM
I'm not using prune, my forever takes just a few hours ;-) ;-)

Ok, I tried salvage, but I can't find that option in bitcoin core 22.0.0

Am I doing something wrong?

3  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 13, 2022, 03:12:55 PM
I tried again with the guide above and figured I didn't format the usb drive to fat32.
After ding so the behaviour is different:
-snip-
Based from pywallet's results, --recover worked regardless of the segfault errors.
Check your --recov_outputdir= direcory for the results specially the recovered wallet.dat file that can be loaded to Bitcoin Core which has a similar name to "recovered_wallet_xxxx.dat".



I did, sadly there is only a json file
Code:
pywallet_partial_recovery_1641972376.json

I'll try salvage option and give you feedback.
QT always needs like forever to rescan everything.
4  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 13, 2022, 08:15:35 AM
Ok, maybe it is realted with the Python installation idk.
My version is 2.7.18

I tried again with the guide above and figured I didn't format the usb drive to fat32.
After ding so the behaviour is different:

Code:
Enter the passphrase for the wallet that will contain all the recovered keys: 

Enter the possible passphrases used in your deleted wallets.
Don't forget that more passphrases = more time to test the possibilities.
Write one passphrase per line and end with an empty line.
Possible passphrase:
Possible passphrase:

Starting recovery.

Read 0.0 Go in 0.0 minutes

Found 1 possible wallets
Found 282 possible encrypted keys
Found 0 possible unencrypted keys

Possible wallet #1
    with passphrase #1  Segmentation fault: 11

And additionally phython crashes with the following error message:

Code:
------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [37846]
Path:                  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               2.7.18 (2.7.18)
Code Type:             X86-64 (Native)
Parent Process:        bash [37836]
Responsible:           Terminal [37833]
User ID:               501

Date/Time:             2022-01-13 09:10:04.4770 +0100
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Bridge OS Version:     6.1 (19P647)
Anonymous UUID:        E737A5ED-65F8-A473-CED0-2E35160CE38D

Sleep/Wake UUID:       2B69033A-07F5-4FAF-8B15-DA15C3176F48

Time Awake Since Boot: 70000 seconds
Time Since Wake:       587 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000628d918
Exception Codes:       0x0000000000000001, 0x000000000628d918
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [37846]

VM Region Info: 0x628d918 is not in any region.  Bytes before following region: 4270376680
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
---> 
      __TEXT                      104b1a000-104b1e000    [   16K] r-x/r-x SM=COW  .../MacOS/Python

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libcrypto.3.dylib                     0x1061260cf EVP_CIPHER_get_key_length + 4
1   libcrypto.3.dylib                     0x106124a1b EVP_BytesToKey + 73
2   libffi.8.dylib                       0x1057f8ee2 ffi_call_unix64 + 82

But I am not sure what to read into that message.
Bad address und segmentation fault: 11.Hmm

Anybody has a clue?

Thx again.
5  Bitcoin / Bitcoin Technical Support / Re: Corrupted encrypted wallet.dat Possible to recover? on: January 12, 2022, 07:30:59 AM
Ok I checked again.
I think I made a mistake with not formatting the usb device to fat32.
After doing so my result looks different:

Code:
Starting recovery.

Read 0.0 Go in 0.0 minutes

Found 1 possible wallets
Found 282 possible encrypted keys
Found 0 possible unencrypted keys

Possible wallet #1
    with passphrase #1  Segmentation fault: 11

and python (Version 2.7.18) crashes with this message:

Code:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [36037]
Path:                  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               2.7.18 (2.7.18)
Code Type:             X86-64 (Native)
Parent Process:        bash [35804]
Responsible:           Terminal [35802]
User ID:               501

Date/Time:             2022-01-12 08:26:16.2503 +0100
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Bridge OS Version:     6.1 (19P647)
Anonymous UUID:        E737A5ED-65F8-A473-CED0-2E35160CE38D

Sleep/Wake UUID:       A665D445-0BFF-4476-8747-92375ADD8841

Time Awake Since Boot: 54000 seconds
Time Since Wake:       1216 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000aa56918
Exception Codes:       0x0000000000000001, 0x000000000aa56918
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [36037]

VM Region Info: 0xaa56918 is not in any region.  Bytes before following region: 4270376680
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
---> 
      __TEXT                      1092e3000-1092e7000    [   16K] r-x/r-x SM=COW  .../MacOS/Python

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libcrypto.3.dylib                     0x10a8ef0cf EVP_CIPHER_get_key_length + 4
1   libcrypto.3.dylib                     0x10a8eda1b EVP_BytesToKey + 73
2   libffi.8.dylib                       0x109fc1ee2 ffi_call_unix64 + 82
3   libffi.8.dylib                       0x109fc179e ffi_call_int + 745
...

In my recovery Folder after this I can find a json file named
Code:
pywallet_partial_recovery_1641972376.json

I guess it is really related with my pywallet installation or python itself.
Already tried reinstalling and foloowing the guides I could find. But no solution yet.

Thanks again for helping Wink

6  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 10, 2022, 08:00:42 AM
Hi BitMaxz,

thank you for your input.
I'm not sure if I am using pywallet right and if my pywallet installation has some errors... or if it's because of the wallet.

But I tried what you suggested, just on a mac. This is what happened:

Input:

Code:
python pywallet.py --recover --recov_device=/Volumes/Untitled/ --recov_size=4GB --recov_outputdir=/Users/xxx/Downloads/

Output:

Code:
Starting recovery.
Traceback (most recent call last):
  File "pywallet.py", line 4034, in <module>
    recoveredKeys=recov(device, passes, size, 10240, options.recov_outputdir)
  File "pywallet.py", line 1712, in recov
    r=search_patterns_on_disk(device, size, inc, nameToDBName.values())
  File "pywallet.py", line 1579, in search_patterns_on_disk
    if lendataloaded%512>0:
TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'


And on the USB Stick I can find some db files after the procedure:


7  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 09, 2022, 03:04:23 PM

I've never ran into this issue, but I think you'll have to let bitcoin core finish synchronizing before you can upgrade the wallet.  Try reinstalling bitcoin, load your wallet, and then let it finish synchronizing.  It could take a couple of days or more depending on your system and internet connection. 


The blockchain is completely in sync... that all worked totally fine...
8  Bitcoin / Bitcoin Technical Support / Re: Help needed recovering old wallet from bitcoin qt (around 2016) on: January 09, 2022, 02:56:18 PM


Code:
walletpassphrase yourwalletpassword 600

And then after that use this command below to dump the private key

Code:
dumpprivkey yourBTCaddress


I tried this before without success.
BT core throws this error
Code:
15:44:53
BerkeleyDatabase: Error -30974, can't open database wallet.dat (code -1)

and the db.log says corrupted db

Code:
B_ENV->log_flush: LSN of 1/116917 past current end-of-log of 1/38105
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: 24
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
...


I am working always with a copy of my backed up wallet, so I can't break anything.

But no idea how to fix the db issues...

If I need to extract the keys manually, is there a step by step guide somewhere?


Best regards and thanks for the help.

cc

9  Bitcoin / Bitcoin Technical Support / Help needed recovering old wallet from bitcoin qt (around 2016) on: January 08, 2022, 08:12:37 PM
Hi folks

I'm new to the forum. So hi ;-)
I coincidentally found my old bitcoin wallet.dat from around 2016 on one of my backup discs.
By the time I just played around with bitcoin and was not really into anything^^
Anyway, now I try to access that wallet, but I am running in several issues.
I am working an a mac wit bitcoin core 22.0.0 and this is what happens:

I start bitcoin core and the wallet is actually loading, so I can see the balance (not much btw).
If I quit BT Core the software throws this message:
Code:
A fatal error occurred. Bitcoin no longer continue safely and will quit

If I try to decrypt it to use upgradewallet, I get a berkley db error... Idk it seems like it is related to the version jump I made.

Is there anybody out there who may be able to help?

Thanks in advance and best regards

cc
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!