Bitcoin Forum
May 26, 2024, 01:32:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't dump private keys or wallet in core  (Read 304 times)
Bigpiggy01 (OP)
Hero Member
*****
Offline Offline

Activity: 1138
Merit: 523



View Profile WWW
January 17, 2018, 02:25:00 PM
 #1


I find an old unencrypted (the wife's laptop) backup wallet 2011-2012 from the wife's laptop.

I install Core v0.15.0.1 and open it as normal. (The chain hasn't finished downloading yet)

I try to dump the wallet and keys from the console and get the following errors:

dumpwallet with the appropriate string etc:

Cannot open wallet dump file (code -8)

Exporting individual private keys produces:

Private key for address XYZ is not known (code -4)



Is this some kind of comparability issue where I need to use an older version of core/qt or?Huh

                         ▄▄▄█
              ▄▄▄▄▄▄▄██████▀
      ▄▄█████████████████▀  ▄█
   ▄██████████████████▀ ▄▄██▀
  ███████████████▀▀  ▄▄█▀▀
 ███████████▀▀▀     ▀▀
 ██████▀▀   ▄    █
 ███▀  ▄▄████   ▐█
 █▀   ▄████▀   ▄█▌
      ▀▀▀    ▄██▌
▐▄ ▀█▄▄  ▄▄████▀
██▀  ▀▀█████▀▀
▐▌
RAPTOREUM
  TOKENIZING THE WORLD!
  ██▀
▐▌
▐║
▐║
▐▌
██▄
[ POW Algorithm: GhostRider    Anti-FPGA/ASIC ]
Assets/Tokens Masternodes Smart Contracts

.51% / Double Spend Protection, Instant Speed, Private Send.
▀██
▐▌
║▌
║▌
▐▌
▄██
█▀





█▄
◈ ──  SOCIAL MEDIA ─── ◈
Reddit Telegram Discord
Twitter  Medium GitHub
▀█
  █
  █
  █
  █
  █
▄█
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
January 17, 2018, 06:28:28 PM
 #2

The first error is probably a "pathing" error with Bitcoin Core... I've found that on Windows you need to specify the FULL path...

dumpwallet "E:\path\to\dumpfile.txt"

NOTE: the drive letter also seems to be case sensitive??!? I've had errors using "e:\path\to\dumpfile.txt"! Roll Eyes


Your second error would indicate that the address you are attempting to dump is a "watch-only" address and that the wallet file does not hold the private key for that address? Huh

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Bigpiggy01 (OP)
Hero Member
*****
Offline Offline

Activity: 1138
Merit: 523



View Profile WWW
January 18, 2018, 08:56:28 AM
 #3

The first error is probably a "pathing" error with Bitcoin Core... I've found that on Windows you need to specify the FULL path...

dumpwallet "E:\path\to\dumpfile.txt"

NOTE: the drive letter also seems to be case sensitive??!? I've had errors using "e:\path\to\dumpfile.txt"! Roll Eyes


Your second error would indicate that the address you are attempting to dump is a "watch-only" address and that the wallet file does not hold the private key for that address? Huh

I'm afraid not, the pathing is just fine as per your quote. I've done this multiple time before with 0 issues so this is a bit of a riddle to me.

I think core may be grabbing some of the transactions as addresses as I've checked them against old records from other wallets.

Also this wallet might be older than that as I remember using it to mine with the laptop itself using the builtin miner and finding a few blocks.

Could it be the newer DB structure of current core that is messing it up somehow?

                         ▄▄▄█
              ▄▄▄▄▄▄▄██████▀
      ▄▄█████████████████▀  ▄█
   ▄██████████████████▀ ▄▄██▀
  ███████████████▀▀  ▄▄█▀▀
 ███████████▀▀▀     ▀▀
 ██████▀▀   ▄    █
 ███▀  ▄▄████   ▐█
 █▀   ▄████▀   ▄█▌
      ▀▀▀    ▄██▌
▐▄ ▀█▄▄  ▄▄████▀
██▀  ▀▀█████▀▀
▐▌
RAPTOREUM
  TOKENIZING THE WORLD!
  ██▀
▐▌
▐║
▐║
▐▌
██▄
[ POW Algorithm: GhostRider    Anti-FPGA/ASIC ]
Assets/Tokens Masternodes Smart Contracts

.51% / Double Spend Protection, Instant Speed, Private Send.
▀██
▐▌
║▌
║▌
▐▌
▄██
█▀





█▄
◈ ──  SOCIAL MEDIA ─── ◈
Reddit Telegram Discord
Twitter  Medium GitHub
▀█
  █
  █
  █
  █
  █
▄█
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
January 18, 2018, 09:36:29 AM
 #4

Quite possibly... You could try the following:

1. Make a backup of your wallet file!... Wink
2. Put the COPY into the Bitcoin Core datadir
3. Start Bitcoin Core with commandline argument -upgradewallet

Hopefully, that will then allow you to dump the keys etc. If that doesn't work, then PyWallet might be able to dump the addresses/keys.

One last thought... Are you 100% sure this is a BITCOIN wallet? Any chance it could be a DOGE or LTC wallet or some other altcoin?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Bigpiggy01 (OP)
Hero Member
*****
Offline Offline

Activity: 1138
Merit: 523



View Profile WWW
January 18, 2018, 10:04:42 AM
 #5

Quite possibly... You could try the following:

1. Make a backup of your wallet file!... Wink
2. Put the COPY into the Bitcoin Core datadir
3. Start Bitcoin Core with commandline argument -upgradewallet

Hopefully, that will then allow you to dump the keys etc. If that doesn't work, then PyWallet might be able to dump the addresses/keys.

One last thought... Are you 100% sure this is a BITCOIN wallet? Any chance it could be a DOGE or LTC wallet or some other altcoin?

Thanks HCP I'll give that a go.

It's not an alt wallet, it predates LTC and DOGE by a fair bit  Grin The laptop has been at the bottom of a moving box for ages. It's just an exercise in claiming dust on BCH and BTC chains before their tx fees grow.

                         ▄▄▄█
              ▄▄▄▄▄▄▄██████▀
      ▄▄█████████████████▀  ▄█
   ▄██████████████████▀ ▄▄██▀
  ███████████████▀▀  ▄▄█▀▀
 ███████████▀▀▀     ▀▀
 ██████▀▀   ▄    █
 ███▀  ▄▄████   ▐█
 █▀   ▄████▀   ▄█▌
      ▀▀▀    ▄██▌
▐▄ ▀█▄▄  ▄▄████▀
██▀  ▀▀█████▀▀
▐▌
RAPTOREUM
  TOKENIZING THE WORLD!
  ██▀
▐▌
▐║
▐║
▐▌
██▄
[ POW Algorithm: GhostRider    Anti-FPGA/ASIC ]
Assets/Tokens Masternodes Smart Contracts

.51% / Double Spend Protection, Instant Speed, Private Send.
▀██
▐▌
║▌
║▌
▐▌
▄██
█▀





█▄
◈ ──  SOCIAL MEDIA ─── ◈
Reddit Telegram Discord
Twitter  Medium GitHub
▀█
  █
  █
  █
  █
  █
▄█
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!