Bitcoin Forum
April 15, 2021, 05:15:23 PM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6]  All
  Print  
Author Topic: pywallet install help  (Read 3308 times)
morbius55
Full Member
***
Offline Offline

Activity: 190
Merit: 107


View Profile
April 05, 2021, 07:49:54 PM
 #101

http://https://imgur.com/0Iefhxy This is what i get when dumping one of the recovered wallets. Some of the numbers and characters of the key have been altered.
1618506923
Hero Member
*
Offline Offline

Posts: 1618506923

View Profile Personal Message (Offline)

Ignore
1618506923
Reply with quote  #2

1618506923
Report to moderator
1618506923
Hero Member
*
Offline Offline

Posts: 1618506923

View Profile Personal Message (Offline)

Ignore
1618506923
Reply with quote  #2

1618506923
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1618506923
Hero Member
*
Offline Offline

Posts: 1618506923

View Profile Personal Message (Offline)

Ignore
1618506923
Reply with quote  #2

1618506923
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 05, 2021, 08:15:38 PM
 #102

https://imgur.com/0Iefhxy This is what i get when dumping one of the recovered wallets. Some of the numbers and characters of the key have been altered.
Is from one of the "recovered" wallets using the PyWallet "recover" functionality? Huh

In any case, that wallet file is essentially an empty wallet with no private keys (empty as in it doesn't have any keys, not empty as in "zero balance")... the "mkey" record that you can see, is the "random" master key used to encrypt the wallet data.

This master key is generated at random and encrypted using the chosen wallet passphrase. Usually, when you "unlock" your wallet, what you're actually doing is unlocking this master key and then that is used to decrypt your actual private keys.

Unfortunately, you can see that the "keys" array is actually empty... meaning that PyWallet has not been able to find any private key data in your wallet.dat


It would seem that PyWallet has not actually been able to locate any private key data during the scan/recovery... and has simply created an empty wallet.dat, encrypted with your chosen passphrase (hence the "mkey" record) Undecided

morbius55
Full Member
***
Offline Offline

Activity: 190
Merit: 107


View Profile
April 05, 2021, 08:56:44 PM
 #103

Thanks for the reply. It was from a pywallet recovered wallet via some wallet.dat files that I moved to a thumb drive from the hard drive using recovery software. I have got some inconsistent results with pywallet when searching the whole hard drive. In past searches it has found up to 300 keys, but the last couple of attempts using even more passphrases has produced only 103 at the most. Something else i wondered about was the possible unencrypted keys it says it has found. Do you know whether pywallet will search a whole hard drive that you have mounted in an enclosure and connected via usb, including any partitions it has? Thanks again.
HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 05, 2021, 10:53:03 PM
 #104

You should be able to search drives in a USB enclosure... as long as it is visible as a "device" to the operating system, you can specify it using the -recov_device option.

fxsniper
Member
**
Offline Offline

Activity: 70
Merit: 12


View Profile
April 07, 2021, 04:07:11 AM
 #105

test use pywallet.py how to fix
this is test , not have any bitcoin

I try test using pywallet.py dumpwallet from wallet.dat

with normal file try create new wallet thousand
python pywallet.py --dumpwallet --datadir=C:\python\27\ >wallet.txt

pywallet.py convert to file success no problem


but I try create wallet new one test and rename wallet.dat file before close
and close bitcoin program, bitcoin program error

then I use wallet.dat that copy before close bitcoin program

python pywallet.py --dumpwallet --datadir=C:\python\27\ >wallet.txt
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

(using python 2.7)

fxsniper
Member
**
Offline Offline

Activity: 70
Merit: 12


View Profile
April 07, 2021, 04:33:45 AM
 #106


Code:
python pywallet.py --dumpwallet --datadir=C:\python\27\ >wallet.txt
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

I test already by run bitcoin program again follow  error message tell to know
it is work fine  wallet.dat can use with pywallet.py dumpwallet success

but if I can not run bitcoin program again to fix it , How can I fix this wallet.dat
if can not open any bitcoin program to fix it or wrong version may be old version it will make wallet.dat error or not
HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 07, 2021, 06:04:13 PM
 #107

are you using the latest version of PyWallet? (that has been updated recently by jackjack) or are you using the old version? Huh

Also, where is your wallet.dat actually located? The --datadir value you are using is where Python should be installed to... not where your wallet.dat is likely to be located unless you manually copied it there.

morbius55
Full Member
***
Offline Offline

Activity: 190
Merit: 107


View Profile
April 07, 2021, 09:02:18 PM
 #108

are you using the latest version of PyWallet? (that has been updated recently by jackjack) or are you using the old version? Huh

Also, where is your wallet.dat actually located? The --datadir value you are using is where Python should be installed to... not where your wallet.dat is likely to be located unless you manually copied it there.
I'm probably not making myself clear. I have scanned the whole Hard drive with pywallet on multiple occasions, when the hard drive has been mounted in a separate enclosure and connected via usb. The scans have been successful in recovering wallets but i find that the results have sometimes been inconsistent. The last time I tried a scan i used every passphrase upper and lowercase, but that didn't yield as many results as an earlier one that included less passphrase variations(i do know the correct passphrases that my brother in law used). I have done quite a few scans this way and have managed to dump the recovered wallets. Some of the wallet.dats i recovered were obtained by using recuva(a file retrieval software). I put those files on to a usb stick and ran those through pywallet with limited success. I think they are corrupted but they are from the correct time(2011-2013). The version of pywallet used is the original one using python 2.7. I don't know if the updated one is any better, but i did see JackJack saying that some things in the original "have always been broken" so maybe i should try it? I just wondered whether the pywallet scan of a hard drive from another laptop is fully accessed by the scan. Thanks for your time.
HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 07, 2021, 10:11:20 PM
 #109

I'm probably not making myself clear.
No, you're fine... I was talking to fxsniper who posted just above me Wink


fxsniper
Member
**
Offline Offline

Activity: 70
Merit: 12


View Profile
April 08, 2021, 05:59:04 AM
 #110

are you using the latest version of PyWallet? (that has been updated recently by jackjack) or are you using the old version? Huh

Also, where is your wallet.dat actually located? The --datadir value you are using is where Python should be installed to... not where your wallet.dat is likely to be located unless you manually copied it there.

I copy wallet.dat to folder for test

Try jackjack pywallet.py got same result


python pywallet.py --dumpwallet --wallet=C:\python\27\008\wallet.dat
(22, 'Invalid argument -- C:\\python\\27\\008\\wallet.dat: unexpected file type or format')
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


I test change wallet.dat to other one normal (this file success to dumpwallet)
result can dumpwallet success no problem (use same command)

actually file that have problem this one , when I copy back to bitcoin data folder and run bitcoin again and close program correct and try dumpwallet it is work normal

Just want to know how to fix it (not serious )
this file have problem when copy/rename from bitcoin open and not close (between use)
inside file will have all data still in there  but some locked file when using or head data have problem
I think if bitcoin program error , hang, freeze, not respond, make file have problem to read program not close  normal
HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 08, 2021, 09:20:50 PM
 #111

this file have problem when copy/rename from bitcoin open and not close (between use)
inside file will have all data still in there  but some locked file when using or head data have problem
I think if bitcoin program error , hang, freeze, not respond, make file have problem to read program not close  normal
Wait... so your copied/renamed the wallet file while Bitcoin Core was running? Huh If so, that is highly likely to result in wallet file corruption... Undecided

As far as I'm aware, there is no "one size fits all" method to be able to fix it... As it depends on what exactly was being written to the wallet file when it was renamed/copied etc.

If it has been corrupted so badly that PyWallet is unable to open it using --dumpwallet, then it could prove quite difficult to recover. You might have to try --recover and see if it is able to extract the keys and rebuild a new copy of the wallet.

Otherwise, you can try the bitcoin-wallet tool and see if the salvage command can fix it...

fxsniper
Member
**
Offline Offline

Activity: 70
Merit: 12


View Profile
April 09, 2021, 04:55:53 AM
 #112

this file have problem when copy/rename from bitcoin open and not close (between use)
inside file will have all data still in there  but some locked file when using or head data have problem
I think if bitcoin program error , hang, freeze, not respond, make file have problem to read program not close  normal
Wait... so your copied/renamed the wallet file while Bitcoin Core was running? Huh If so, that is highly likely to result in wallet file corruption... Undecided

As far as I'm aware, there is no "one size fits all" method to be able to fix it... As it depends on what exactly was being written to the wallet file when it was renamed/copied etc.

If it has been corrupted so badly that PyWallet is unable to open it using --dumpwallet, then it could prove quite difficult to recover. You might have to try --recover and see if it is able to extract the keys and rebuild a new copy of the wallet.

Otherwise, you can try the bitcoin-wallet tool and see if the salvage command can fix it...

yes, I just testing to know
Why many people have problem with wallet.dat a lot many thing corrupt?
look like a big problem with wallet.dat corrupt
some lost bitcoin permanence
some very hard to fix it
and other way if happen with me how can I solve this problem may be it possible happen with me and inside still have my real bitcoin

just try to test fix it without open bitcoin program again to fixt it

I do force talk close bitcoin program it is same result can not use that file

I think file not damage at all data still inside but something make it can not read it
I am not programmer try to use only tools

HCP
Legendary
*
Offline Offline

Activity: 1666
Merit: 3397

<insert witty quote here>


View Profile
April 09, 2021, 07:26:39 AM
 #113

a wallet.dat is a database file... if you interrupt Bitcoin Core in the middle of a write operation, then the file will be damaged.

The database has a set structure... much like how a Bitcoin transaction has a set structure. If you mess up a Bitcoin transaction raw hex... ie. you put things in the wrong place, or you put bad data in, then the transaction parser will output an error when you try to decode that transaction.

Same with the wallet.dat file... it is expecting the data to follow a set layout... if it doesn't, then the app flags it as "bad" and errors out... The app is not able to figure out how the file is damaged, all it can tell you is that it is damaged...

You might get lucky and it might be something unimportant like a label... and all your key data is actually "OK" and you can possible extract it using tools like PyWallet... or you might get unlucky and it might corrupt all your key data.

A corrupt wallet.dat should not be an issue... because, as the Bitcoin Core devs have advocated since the beginning, you have backups of your wallet.dat... right? riiiiiiight??!? Wink Tongue

Pages: « 1 2 3 4 5 [6]  All
  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!