<p>It appears that your wallet.dat file is corrupted. From your log files with the original copy of the wallet, it looks like you made that copy of the wallet before Bitcoin Core closed the wallet database (which actually includes more than the wallet.dat file but those other files are temporary and only exist when the database is open) which has resulted in corruption.</p>

<p>Since you have already used <code>-salvagewallet</code> on a different wallet file, just use that wallet.dat file. Note <code>-salvagewallet</code> has some issues and is not guaranteed to fix corruption. Because your wallet is old enough, it does not use HD keys, so the following workaround should work: start Bitcoin Core with the <code>-usehd=0</code> option or add <code>usehd=0</code> to your bitcoin.conf file.</p>

<p>This is a workaround and should allow you to open your wallet and retrieve your private keys. Your wallet.dat file is still corrupted and you should stop using it immediately. You should move your coins out of that wallet file ASAP by following the instructions <a href="https://bitcoin.stackexchange.com/a/61025/48884">here</a>.</p>

CC BY-SA 3.0
2017-10-24T23:13:50.820Z
so are you saying to use the copy of my wallet that i used the -salvagewallet command on? or use the copy that i did not use the command on?
Jodyjr1980
CC BY-SA 3.0
2017-10-24T23:15:28.940Z
Use the copy that you used `-salvagewallet` on.
Ava Chow
CC BY-SA 3.0
2017-10-24T22:40:12.343Z
2017-10-24T22:40:12.343Z
Ava Chow
<p>I synchronized fully, replaced the wallet.dat file, rescanned and this happened.</p>

<p>My debug log:
<a href="https://drive.google.com/file/d/0B7me4XCWsORySzdMMEpYWU5Lakk/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/0B7me4XCWsORySzdMMEpYWU5Lakk/view?usp=sharing</a></p>

<p>Screenshot of Error:</p>

<p><a href="https://i.sstatic.net/cXrVJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cXrVJ.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2017-10-23T18:15:30.980Z
Your wallet is currently corrupted. DO NOT START BITCOIN CORE WITH `-salvagewallet`, THAT WILL ONLY MAKE THINGS WORSE. From your log file, I see that you have already done that and it is in fact the current source of your problems. What version of Bitcoin Core was this wallet created in?
Ava Chow
CC BY-SA 3.0
2017-10-24T02:49:34.700Z
I have no idea its been sitting unused since around 2014 ish i think. but i still have the original copy of my wallet. I downloaded the copy that I used -salvagewallet on. but it was causing crashes before I tried the salvagewallet command on it.
Jodyjr1980
CC BY-SA 3.0
2017-10-24T02:51:47.837Z
Try using a copy of the original wallet.dat file. Don't do `-salvagewallet`, just load it in and see what happens.
Ava Chow
CC BY-SA 3.0
2017-10-24T22:21:24.130Z
@AndrewChow tried that it went through the reindex and even showed the last transactions (which were from like 2014) But when i tried to send it too a different address it crashed as soon as i entered my password to unlock my wallet.  here is the new debug.log [link](https://drive.google.com/open?id=0B7me4XCWsORyZ1gzNDNKVnFXTnc)  and the db.log file [link](https://drive.google.com/open?id=0B7me4XCWsORydlQxekNiX2UwS3M)
Jodyjr1980
<bitcoin-core><error>
Error help! "A fatal error occurred. Bitcoin can no longer continue safely and will quit."
Jodyjr1980
# Error help! "A fatal error occurred. Bitcoin can no longer continue safely and will quit."

(Asked by: username_0 on 2017-10-23)

I synchronized fully, replaced the wallet.dat file, rescanned and this happened.

My debug log:
<https://drive.google.com/file/d/0B7me4XCWsORySzdMMEpYWU5Lakk/view?usp=sharing>

Screenshot of Error:

[![enter image description here](https://i.sstatic.net/cXrVJ.png)](https://i.sstatic.net/cXrVJ.png)

**Tags:** bitcoin-core, error

> **Comments:**
> **username_1**: Your wallet is currently corrupted. DO NOT START BITCOIN CORE WITH `-salvagewallet`, THAT WILL ONLY MAKE THINGS WORSE. From your log file, I see that you have already done that and it is in fact the current source of your problems. What version of Bitcoin Core was this wallet created in?  
> **username_0**: I have no idea its been sitting unused since around 2014 ish i think. but i still have the original copy of my wallet. I downloaded the copy that I used -salvagewallet on. but it was causing crashes before I tried the salvagewallet command on it.  
> **username_1**: Try using a copy of the original wallet.dat file. Don't do `-salvagewallet`, just load it in and see what happens.  
> **username_0**: @AndrewChow tried that it went through the reindex and even showed the last transactions (which were from like 2014) But when i tried to send it too a different address it crashed as soon as i entered my password to unlock my wallet.  here is the new debug.log [link](https://drive.google.com/open?id=0B7me4XCWsORyZ1gzNDNKVnFXTnc)  and the db.log file [link](https://drive.google.com/open?id=0B7me4XCWsORydlQxekNiX2UwS3M)  

---

## 1 answers

### Answer by username_1 on 2017-10-24. Score: 1

It appears that your wallet.dat file is corrupted. From your log files with the original copy of the wallet, it looks like you made that copy of the wallet before Bitcoin Core closed the wallet database (which actually includes more than the wallet.dat file but those other files are temporary and only exist when the database is open) which has resulted in corruption.

Since you have already used `-salvagewallet` on a different wallet file, just use that wallet.dat file. Note `-salvagewallet` has some issues and is not guaranteed to fix corruption. Because your wallet is old enough, it does not use HD keys, so the following workaround should work: start Bitcoin Core with the `-usehd=0` option or add `usehd=0` to your bitcoin.conf file.

This is a workaround and should allow you to open your wallet and retrieve your private keys. Your wallet.dat file is still corrupted and you should stop using it immediately. You should move your coins out of that wallet file ASAP by following the instructions [here](https://bitcoin.stackexchange.com/a/61025/48884).

> **Comments:**
> **username_0**: so are you saying to use the copy of my wallet that i used the -salvagewallet command on? or use the copy that i did not use the command on?  
> **username_1**: Use the copy that you used `-salvagewallet` on.  

---

