Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error: "Error: wallet.dat corrupt, salvage failed" when running ./src/zcashd after update to v5.3.0 #6225

Open
elvis-hp opened this issue Oct 27, 2022 · 1 comment
Labels
A-wallet-database Area: Wallet database and serialization database corruption I-fail-to-run The zcashd binary fails to start, or crashes shortly after starting. M-potential-loss-of-funds This issue risks a potential loss of funds for a user.

Comments

@elvis-hp
Copy link

Can any one help me, thanks!
Messages:

  • Error: wallet.dat corrupt, salvage failed

Init message: Verifying wallet...

@daira
Copy link
Contributor

daira commented Nov 9, 2022

Apologies for not spotting this issue earlier.

First make a backup of the original wallet.dat.

Then please try the following: copy wallet.dat from the node directory to the directory containing a zcashd build (from source), and run:

zcutil/bin/db_dump -r wallet.dat >wallet.dump
zcutil/bin/db_load wallet.new <wallet.dump
zcutil/bin/db_verify wallet.new

Let us know the output of each of these commands. If the recovery was successful, you will get a message BDB5105 Verification of wallet.new succeeded. In that case, move wallet.new to the old location of wallet.dat in the node directory, and restart the node with the -reindex flag.

@daira daira added M-potential-loss-of-funds This issue risks a potential loss of funds for a user. database corruption A-wallet-database Area: Wallet database and serialization labels Nov 9, 2022
@daira daira changed the title Got error: "Error: wallet.dat corrupt, salvage failed" when runing ./src/zcashd affter update to v5.3.0 Got error: "Error: wallet.dat corrupt, salvage failed" when running ./src/zcashd after update to v5.3.0 Nov 9, 2022
@daira daira added the I-fail-to-run The zcashd binary fails to start, or crashes shortly after starting. label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-wallet-database Area: Wallet database and serialization database corruption I-fail-to-run The zcashd binary fails to start, or crashes shortly after starting. M-potential-loss-of-funds This issue risks a potential loss of funds for a user.
Projects
None yet
Development

No branches or pull requests

2 participants