Bitcoin Forum
April 20, 2024, 02:37:18 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Database Corrupt and recovering question  (Read 263 times)
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
March 31, 2019, 09:01:02 AM
Merited by ABCbits (1)
 #1

hi there,

I am running bitcoin-0.17.1-win64-setup, the other day I sent a transaction, went in the pool and stayed there for a while (I was a bit stingy with the fee have to say), anyway, after that, while waiting Bitcoin core to catch up, had a database corruption on the external hdd since i had to unplug it or something (shut down Core of course, but it was not finished with the syncing) where I keep bitcoin files and the blockchain's stuff... btw i got that transaction where it had to be so it's in the chain OK.

Long story short, after a few re-starts to see if it would catch up, it would say database corrupt, so I hit OK and is reprocessing all blocks starting with a 0 balance wallet - not re downloading the entire blockchain - have seen the log, and it's about 1.5 days, I reckon today it will complete....wallet balance is weird right now.

Main thing is how to handle the wallet, is it going to catch up when it picks up last transaction before I got the corruption in the database and all be back OK?

OR shall I restore the last wallet (pre latest transaction) when it finishes catching up?

many thanks,
Gabrio
1713580638
Hero Member
*
Offline Offline

Posts: 1713580638

View Profile Personal Message (Offline)

Ignore
1713580638
Reply with quote  #2

1713580638
Report to moderator
1713580638
Hero Member
*
Offline Offline

Posts: 1713580638

View Profile Personal Message (Offline)

Ignore
1713580638
Reply with quote  #2

1713580638
Report to moderator
1713580638
Hero Member
*
Offline Offline

Posts: 1713580638

View Profile Personal Message (Offline)

Ignore
1713580638
Reply with quote  #2

1713580638
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713580638
Hero Member
*
Offline Offline

Posts: 1713580638

View Profile Personal Message (Offline)

Ignore
1713580638
Reply with quote  #2

1713580638
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5494


Self-proclaimed Genius


View Profile
March 31, 2019, 09:28:00 AM
Merited by Jet Cash (2), vapourminer (1)
 #2

You just need to wait for Core to re-sync, that's all.
1.5 days, so that's about 210+ blocks and if the previous transaction was new, that might be the cause of the "weird balance".

If you want some assurance about you wallet's balance, check the address' balance on an online blockexplorer like: liveblockcypher.com or blockchain.com/explorer.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6349


Looking for campaign manager? Contact icopress!


View Profile
March 31, 2019, 09:33:03 AM
 #3

OR shall I restore the last wallet (pre latest transaction) when it finishes catching up?

Just wait it finish catching up. There's a very high chance that will be enough.
However, if it'll still be odd, before doing anything else (eg. restore), make sure you backup even that current wallet.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
March 31, 2019, 01:11:52 PM
 #4

thanks guys, it's still processing blocks.... argh..takes forever, 95% now.... and still strange numbers on the wallet, let's hope for this evening, I just came back!

Gabrio
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
March 31, 2019, 01:16:31 PM
 #5

You just need to wait for Core to re-sync, that's all.
1.5 days, so that's about 210+ blocks and if the previous transaction was new, that might be the cause of the "weird balance".

If you want some assurance about you wallet's balance, check the address' balance on an online blockexplorer like: liveblockcypher.com or blockchain.com/explorer.

btw how do I check my wallet's balance on the blockchain.com ? shall I use the last address I sent payment to?

thanks
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
March 31, 2019, 05:07:01 PM
 #6

You just need to wait for Core to re-sync, that's all.
1.5 days, so that's about 210+ blocks and if the previous transaction was new, that might be the cause of the "weird balance".

If you want some assurance about you wallet's balance, check the address' balance on an online blockexplorer like: liveblockcypher.com or blockchain.com/explorer.

btw how do I check my wallet's balance on the blockchain.com ? shall I use the last address I sent payment to?

thanks

1. Open list of bitcoin address generated by your wallet (You can find it by select File > Receiving addresses)
2. Copy each bitcoin address listed and paste into blockchain.com (or other block explorer) search bar

thanks, sent you a PM.
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
March 31, 2019, 10:23:51 PM
 #7

Everything back to normal - correct balance updated at the end of the sync!

It's the 3rd time I get the database corrupt though, is there anything that can be done as a maintenance to prevent this? Or is it due to the fact that I keep it on external hdd and sometimes that happens? With that plug/unplug devices, etc

thanks,
Gabrio
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6349


Looking for campaign manager? Contact icopress!


View Profile
April 01, 2019, 08:44:20 AM
Merited by HCP (2), bones261 (2)
 #8

Everything back to normal - correct balance updated at the end of the sync!

Great news!

It's the 3rd time I get the database corrupt though, is there anything that can be done as a maintenance to prevent this? Or is it due to the fact that I keep it on external hdd and sometimes that happens? With that plug/unplug devices, etc

I'm 99% sure that the issue is caused by the external HDD.

Two things to start with would be:
1. After closing Bitcoin wallet, check with task manager it was indeed closed (check, but not kill).
2. Use the "safely eject" functionality and wait for "it's now safe to" before unplugging.

Maybe some will hate me for this advice, but if you don't need Bitcoin core wallet, maybe you could use a SPV wallet (Electrum), or at lest use Bitcoin wallet in pruned mode (much smaller blockchain), on the internal HDD.
I think that you can also set in your system for external HDD (or USBs) to make it safer for unplugging, but I expect that'll make the data transfer much slower (and not sure how it can be done).

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
April 01, 2019, 05:55:57 PM
 #9

Everything back to normal - correct balance updated at the end of the sync!

Great news!

It's the 3rd time I get the database corrupt though, is there anything that can be done as a maintenance to prevent this? Or is it due to the fact that I keep it on external hdd and sometimes that happens? With that plug/unplug devices, etc

I'm 99% sure that the issue is caused by the external HDD.

Two things to start with would be:
1. After closing Bitcoin wallet, check with task manager it was indeed closed (check, but not kill).
2. Use the "safely eject" functionality and wait for "it's now safe to" before unplugging.

Maybe some will hate me for this advice, but if you don't need Bitcoin core wallet, maybe you could use a SPV wallet (Electrum), or at lest use Bitcoin wallet in pruned mode (much smaller blockchain), on the internal HDD.
I think that you can also set in your system for external HDD (or USBs) to make it safer for unplugging, but I expect that'll make the data transfer much slower (and not sure how it can be done).

thanks for the tips!
Jet Cash
Legendary
*
Offline Offline

Activity: 2688
Merit: 2449


https://JetCash.com


View Profile WWW
April 05, 2019, 02:19:51 PM
 #10

It's the 3rd time I get the database corrupt though, is there anything that can be done as a maintenance to prevent this? Or is it due to the fact that I keep it on external hdd and sometimes that happens? With that plug/unplug devices, etc


Eject the drive before you shut down the computer. If I remember correctly, you right click on the drive letter in file manager, and then select eject.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 05, 2019, 11:26:59 PM
Last edit: November 15, 2023, 07:39:06 AM by HCP
 #11

Ejecting the drive may not be necessary... as long as you ensure you shutdown Bitcoin Core properly before disconnecting the drive or shutting down the computer.

In general, keeping the database on a removable drive isn't recommended as the chances for corruption are a lot higher than on a "fixed" drive. Even a slight accidental knock of the cable could be enough to unseat the plug from the socket enough that it disconnects/reconnects and could lead to corruption.

You could also try turning off "write caching" for that specific device... Right click the drive in explorer, select properties... click the "Hardware" tab, select the device from the list, then click the "Properties" button. Click "Change Settings" button... you'll get yet another properties window that has a "Policies" tab... select the "Policies" tab... and you should see the following "Removal Policies"...

Make sure it is set to "Quick Removal":




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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!