Bitcoin Forum
December 15, 2017, 05:31:47 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 [5]  All
  Print  
Author Topic: "Error opening block database. Do you want to rebuild the block database now?"  (Read 46805 times)
soy
Legendary
*
Offline Offline

Activity: 1162


Crypterium - Digital Mobile Cryptobank For Everyon


View Profile
December 18, 2013, 02:48:09 PM
 #81

Found a dated hidden ./.lock file in the ./.bitcoin directory.  Was getting a Corrupted Database error.  Deleted the hidden file, rebooted, restarted Bitcoin-QT, had started a reindexing and the client is building from where the reindexing had stopped.  Seems okay.



░░░░░░░░░░▄▄▄▄▄▄
░░░░░░▄███████████▄
░░░░▄██▀▀░░░░░░░░▀██▄
░░░██▀░░░▄▄▄▄▄▄░░░░▀██
░░██▀░░▄██▀▀▀▀▀░░▄▄
██▀░░██▀░░▄▄▄▄░░▀▀
██▀░░██░░▄██▀▀▀█▄
██░░██░░██▀
██░░▀▀░░██
██░░▄▄░░██
██░░██░░██▄
██▄░░██░░▀██▄▄▄█▀
██▄░░██▄░░▀▀▀▀░░▄▄
░░██▄░░▀██▄▄▄▄▄░░▀▀
░░░██▄░░░▀▀▀▀▀▀░░░░▄██
░░░░▀██▄▄░░░░░░░░▄██▀
░░░░░░▀███████████▀
░░░░░░░░░░▀▀▀▀▀▀


░░░░░░░░░░▄▄▄▄▄▄
░░░░░░▄███████████▄
░░░░▄██▀▀░░░░░░░░▀██▄
░░░██▀░░░▄▄▄▄▄▄░░░░▀██
░░██▀░░▄██▀▀▀▀▀░░▄▄
██▀░░██▀░░▄▄▄▄░░▀▀
██▀░░██░░▄██▀▀▀█▄
██░░██░░██▀
██░░▀▀░░██
██░░▄▄░░██
██░░██░░██▄
██▄░░██░░▀██▄▄▄█▀
██▄░░██▄░░▀▀▀▀░░▄▄
░░██▄░░▀██▄▄▄▄▄░░▀▀
░░░██▄░░░▀▀▀▀▀▀░░░░▄██
░░░░▀██▄▄░░░░░░░░▄██▀
░░░░░░▀███████████▀
░░░░░░░░░░▀▀▀▀▀▀

▀  Twitter
▀  Telegram
▀  Facebook
▀  ANN Thread
▀  Whitepaper
▀  Website
1513315907
Hero Member
*
Offline Offline

Posts: 1513315907

View Profile Personal Message (Offline)

Ignore
1513315907
Reply with quote  #2

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

Posts: 1513315907

View Profile Personal Message (Offline)

Ignore
1513315907
Reply with quote  #2

1513315907
Report to moderator
1513315907
Hero Member
*
Offline Offline

Posts: 1513315907

View Profile Personal Message (Offline)

Ignore
1513315907
Reply with quote  #2

1513315907
Report to moderator
1513315907
Hero Member
*
Offline Offline

Posts: 1513315907

View Profile Personal Message (Offline)

Ignore
1513315907
Reply with quote  #2

1513315907
Report to moderator
carly200
Full Member
***
Offline Offline

Activity: 196


View Profile
December 20, 2013, 08:23:16 PM
 #82

Hi,

I have a similar issue, that appeared suddenly, and I am unable to fix/debug it on my own. Maybe you can help.

My environment is a Win8.1 Laptop with an SSD, and I am running Bitcoin and Litecoin QT clients.
Since space on SSD is "spare", I moved the datadirectory to a permanently inserted SDXC card (exFat) months ago.

To avoid accidental database corruption (ejecting SD-card; windows hibernation, etc), I keep a backup of the data directory, that I make ~ once a month and that I can use to start off again, if something goes wrong.


Recently both BTC and LTC QT got an update to 0.8.6/0.8.6.1 and worked like a charm, until now.

After syncing and (I think proper) shutdown, I wanted to start the software yesterday morning and it ended with the "Error opening block database. Do you want to rebuild the block database now?" error.

neither clicking ok to reindex, nor aborting gets me back at my db.

I tried several recovery (e.g. going back to my backup), they all failed.
I now focused on the litecon-qt since blockchain size and folder copying/indexing does not take days, but it seems BTC and LTC behave the same.



Even deleting the whole directory (keeping/discarding wallet.dat) before starting, results in the same error when using the datadir on the SD card (which worked fine before).



Now I went back to my main SSD and removed the "datadir" back to default, and redownloaded the blockchain.
moving it to other drives (even network mounted drives) works, but the moment I move it to the SD card, the client ends with the error message.

I have 50GB of free space on the SD card and ran disk-check tools. Also I verified that the card is working by running write/read tests. the card seems ok.

what can cause this issue?

I am posting the Litecon debug info (please bear with me), since i am running tests for filesize/copy-speed limitations witht litecoin right now, as I think it is the same error:


Code:
2013-12-20 20:06:12 Litecoin version v0.8.6.1-beta (2013-12-05 22:52:50 -1000)
2013-12-20 20:06:12 Using OpenSSL version OpenSSL 1.0.1c 10 May 2012
2013-12-20 20:06:12 Default data directory C:\Users\MyUsername\AppData\Roaming\Litecoin
2013-12-20 20:06:12 Using data directory E:\crypto-blockchain\Litecoin
2013-12-20 20:06:12 Using at most 125 connections (2048 file descriptors available)
2013-12-20 20:06:12 Using 4 threads for script verification
2013-12-20 20:06:12 init message: Verifiziere Brieftasche...
2013-12-20 20:06:13 dbenv.open LogDir=E:\crypto-blockchain\Litecoin\database ErrorFile=E:\crypto-blockchain\Litecoin\db.log
2013-12-20 20:06:13 Bound to [::]:9333
2013-12-20 20:06:13 Bound to 0.0.0.0:9333
2013-12-20 20:06:13 scrypt: using scrypt-sse2 as detected.
2013-12-20 20:06:13 init message: Lade Blockindex...
2013-12-20 20:06:13 Opening LevelDB in E:\crypto-blockchain\Litecoin\blocks\index
2013-12-20 20:06:29 init message: Lade Blockindex...
2013-12-20 20:06:29 Wiping LevelDB in E:\crypto-blockchain\Litecoin\blocks\index
2013-12-20 20:06:29 Opening LevelDB in E:\crypto-blockchain\Litecoin\blocks\index
2013-12-20 20:06:31 Shutdown : In progress...
2013-12-20 20:06:31 StopNode()
2013-12-20 20:06:31 Flushed 0 addresses to peers.dat  138ms
2013-12-20 20:06:31 Shutdown : done



Can anybody help? Any Ideas?

Why doesnt even the empty directoy work?








retal
Full Member
***
Offline Offline

Activity: 196


View Profile WWW
January 19, 2014, 05:22:49 PM
 #83

#bitcoind -reindex

Musicoin mining pool
http://unepa.com
carly200
Full Member
***
Offline Offline

Activity: 196


View Profile
January 19, 2014, 06:13:05 PM
 #84

try checkdisk on the drive

i have that problem with my USB/SD cards from time to time...

Warning: keep in mind, that it might break the whole blockchain, and might make you redownload everything!
argaostar
Newbie
*
Offline Offline

Activity: 9


View Profile
August 21, 2014, 09:20:07 AM
 #85

Hello guys, I will try to lift this thread and tell a story about a strange behavior on my PC two days ago.
I have had bitcoin core on my PC for just a few days.
I believe it all started with with FSX Flightsimulator did not start up. I made a repair on it, and was reading tips on the net how to get it up and running again.
I was not able to solve it that night, and closed down the computer.
The next morning i connected to the net, Mozilla Firefox would not start. Or, I got the message it was already up and running, but it did not respond. Following advices on Mozillas home page
did not help, it was not to be seen in task manager, or not possible to close it anywhere. So I uninstalled it and reinstalled the program. Then it worked fine.
What I discovered at the same time, was that several icons on my desktop had disappeared.

And today when I wanted to open bitcoin-core, the icon was gone, even on the start menu. 
I had to go to the files, and start it from the exe file. When starting, I got the messages you guys had here. Made a try a couple of times, and downloaded a new one, but same result.

Looking in the file folder, I find only these files:
daemon
doc
bitcoin-qt.exe
copying.txt
readme.txt
uninstall.exe

Should it not be more files?

Now, this morning I am trembling of nervousity, have I lost my bitcoins??

The HDD is only one year old, I have 300 Gb of free space.
Yesterday I did a maintenance with AVG PC Tune up and Bitdefender. That was after the icons disappeared on the desktop.

Can also mention that AVG PC Tune up, also have a strange behavior today. It give a error message and ask if I want to send a report.
Then it crashes.

I guess it will not help to make a system recovery?

Been working with computers for many years, but this is a new experience.
If I have lost the bitcoins, as I today understand, probably is stored on the pc, I am in chock.
Tried to read through this thread, but can not keep my mind clear. Besides it seems like my problem here is of an another dimension.
I use Bitdefender total security, but still, there could be a hidden intruding from outside....


Newar
Legendary
*
Offline Offline

Activity: 1288


https://gliph.me/hUF


View Profile
August 24, 2014, 10:12:13 AM
 #86


If you worked with computers for many years, surely you have a backup.

The file you are looking for is called wallet.dat; the default location is here: https://en.bitcoin.it/wiki/Data_directory


OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
HITTI2
Hero Member
*****
Offline Offline

Activity: 533



View Profile
April 28, 2015, 03:36:19 PM
 #87

Same error on 0.10.1.

-reindex at the end of the target of a shortcut of bitcoin.exe  is fixing it atm.
https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments

12NcNYb2oEh6ANo95AakEjPqQdgbcxh4m9
BURST-W7HD-8VVV-X6L3-4EYLJ
Win7x64 Pro, Acer XB240H, Corsair Obsidian 750D Black,DEMCifilter Corsair Obsidian 750D Dust Filter Kit,Delidded i7-3770K OC'd@4.5GHz, F3-12800CL8D-8GBXM, MSI GeForce GTX 960 2GD5, ASUS Xonar D1, Vantec UGT-ST644R, ASRock Z75 Pro3, EVGA SuperNOVA 750 G2 PSU, EK-KIT L240, 2 x NF-A14-FLX Fans, 2 x Samsung 840 Pro 128GB RAID 0 32KB strip, WD Re WD1003FBYZ 1TB,2TB HGST/Hitachi (HUA723020ALA641),2 x HGST A7K3000 HUA723030ALA640 3 TB, Vertex II 60GB,Samsung SH-S223L.
HITTI2
Hero Member
*****
Offline Offline

Activity: 533



View Profile
April 28, 2015, 05:27:34 PM
 #88

This index screwed my blockchain up, closed bitcoin client with an error. I had to download the bootstrap and totally redo my blockchain.

12NcNYb2oEh6ANo95AakEjPqQdgbcxh4m9
BURST-W7HD-8VVV-X6L3-4EYLJ
Win7x64 Pro, Acer XB240H, Corsair Obsidian 750D Black,DEMCifilter Corsair Obsidian 750D Dust Filter Kit,Delidded i7-3770K OC'd@4.5GHz, F3-12800CL8D-8GBXM, MSI GeForce GTX 960 2GD5, ASUS Xonar D1, Vantec UGT-ST644R, ASRock Z75 Pro3, EVGA SuperNOVA 750 G2 PSU, EK-KIT L240, 2 x NF-A14-FLX Fans, 2 x Samsung 840 Pro 128GB RAID 0 32KB strip, WD Re WD1003FBYZ 1TB,2TB HGST/Hitachi (HUA723020ALA641),2 x HGST A7K3000 HUA723030ALA640 3 TB, Vertex II 60GB,Samsung SH-S223L.
Richy_T
Legendary
*
Offline Offline

Activity: 1330


1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k


View Profile
August 05, 2015, 01:18:27 AM
 #89

Just had this happen to me. Latest version of bitcoin on Linux. Halted the bitcoind with "bitcoin-cli stop" so it should have been clean. Currently trying the reindex.


Grrr. It started downloading the blockchain all over again :/
(Edit: It wasn't downloading the blockchain, just regenerating the rev*.dat files)


If it makes any difference, the blocks and chainstate directories are symlinked from elsewhere. Is there something in that that could be causing it? I mention it because the person is having trouble with the SD card. Could we get more info on what triggers this error?

Never mind. Disk space issue...

1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
Richy_T
Legendary
*
Offline Offline

Activity: 1330


1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k


View Profile
August 05, 2015, 03:04:14 PM
 #90

Reindexing was taking forever. It's now about 12 hours later and I was still only caught up to Feb.

I guess the lesson is to backup your blocks and chainstate directories (which fortunately, I did or rather had a copy for a different instance of bitcoind). That represents work which is hard and slow to recover.

1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
start the art
Sr. Member
****
Offline Offline

Activity: 262



View Profile WWW
August 31, 2015, 04:46:32 PM
 #91

I have a similar issue today and few days ago

SISAR
Hero Member
*****
Offline Offline

Activity: 483



View Profile
August 31, 2015, 08:02:39 PM
 #92

Delete all Bitcoin related registry keys (use search within regedit.exe located at Windows directory) and afterwards run BitcoinQt wallet then adjust it to your likings via Settings menu.

Listen, my friend. This is going to be very hard to comprehend but none of what you are seeing is real.
miguelmorales85
Hero Member
*****
Offline Offline

Activity: 555


View Profile
September 11, 2015, 02:14:30 AM
 #93

...

Think it is worth running?

No, seems ok.


Edit: Also perhaps a checkdsk /r is in order?

Give it a go, I assumed you already tried that.

Ok thanks, will run that tonight. So it is likely to be an HD issue I guess rather than client issue as nobody has reported it?

Could I mount (linux) a flash disk (64GB) and place datadir there?
That would be more efficient than using a regular hdd right?
SISAR
Hero Member
*****
Offline Offline

Activity: 483



View Profile
September 11, 2015, 07:41:28 PM
 #94

Delete all Bitcoin related registry keys (use search within regedit.exe located at Windows directory) and afterwards run BitcoinQt wallet then adjust it to your likings via Settings menu.

Also if wallet.dat you are using was created with very old version of BitcoinQt use -upgradewallet option when starting your new wallet, just once is fine so remove option afterwards.

Listen, my friend. This is going to be very hard to comprehend but none of what you are seeing is real.
miguelmorales85
Hero Member
*****
Offline Offline

Activity: 555


View Profile
September 11, 2015, 11:07:44 PM
 #95

Delete all Bitcoin related registry keys (use search within regedit.exe located at Windows directory) and afterwards run BitcoinQt wallet then adjust it to your likings via Settings menu.

Also if wallet.dat you are using was created with very old version of BitcoinQt use -upgradewallet option when starting your new wallet, just once is fine so remove option afterwards.

Im running the node with walletless >> disablewallet=1
Tjargi
Newbie
*
Offline Offline

Activity: 2


View Profile
December 01, 2017, 06:54:04 AM
 #96

I accidentally deleted my bitcoin and wallet years ago after freeing up space on my hard drive. I have not used this computer much since then. The 2010 MacBook Pro works fine. I thought I had backed it up when I ran parrelels with windows xp on this machine. However, I deleted parrelels and windows xp from the machine and the backup. I haven’t done anything else on this machine until I can find out if any trace still exists. Is there anyway to find out if they are on the hard drive still? Any feedback is appreciated. Thank you.
cupic
Member
**
Offline Offline

Activity: 84

https://i.imgur.com/zkZKv6i.jpg


View Profile
December 01, 2017, 07:59:56 AM
 #97

you should email yourself your private keys and pass phrase.or whatever other information. even if your computer gets destroyed you can still recover your email from a different device

salihno71
Sr. Member
****
Offline Offline

Activity: 378


View Profile
December 01, 2017, 10:06:59 AM
 #98

I accidentally deleted my bitcoin and wallet years ago after freeing up space on my hard drive. I have not used this computer much since then. The 2010 MacBook Pro works fine. I thought I had backed it up when I ran parrelels with windows xp on this machine. However, I deleted parrelels and windows xp from the machine and the backup. I haven’t done anything else on this machine until I can find out if any trace still exists. Is there anyway to find out if they are on the hard drive still? Any feedback is appreciated. Thank you.

You have a (very) slim chance that your wallet is still available somewhere on the disk. First of all, stop using your computer.  The more you use your computer, the larger the possibility that your wallet is overwritten. If possible move your HD to another computer. Then install one of the existing programs for recovery of deleted files on this new computer (on his old disc, not on the moved disc with deleted wallet). There are some solutions on the market but cannot talk about them since i never used any of them. If you're lucky, your wallet might still be intact since the deletion just removes the reference to the file but not the file itself. But if even a single bit is changed on that file, you will not be able to recover it. Good luck.

you should email yourself your private keys and pass phrase.or whatever other information. even if your computer gets destroyed you can still recover your email from a different device

This is very bad advice for one simple reason - anyone who has the access to your mail also has the access to your funds. You have to backup passphrase and private keys, but mailing them is the last possible way you should do it.

   
▄████▄      
██████      
▀████▀      
▀██████      ▄▄▄▄▄▄▄▄▄▄▄▄   
▄▄█████  ▄██████████████████▄
▄██████▀██  ████████████████████
▄█████▀    ▀  ████████████████████
▄█████▀         ███ ████████████ ███
██████▀          ███ ████████████ ███
███████           ███ ████████████ ███

▄████▄                  ███████   
██████                 ▄██████    
▀████▀                ▄█████▀     
▄▄▄▄▄▄▄▄▄▄▄▄      ▄    ▄█████▀       
▄██████████████████▄  ██▄ █████▀         
████████████████████  ██████▀▀           
████████████████████  ██████▄            
███ ████████████ ███                     
███ ████████████ ███                     
███ ████████████ ███                      
  [    |    ████████████████████████
████████████████████████
███            ▀████████
███  ███████  ▄  ▀██████
███           ██▄  ▀████
███  ███████  ████▄  ███
███                  ███
███  ██████████████  ███
███                  ███
███  ██████████████  ███
███                  ███
████████████████████████
████████████████████████
  ] 
FACEBOOK  )   (  TWITTER  )
  SUBSCRIBE NOW!!! 
INSTAGRAM  )  (  LINKEDIN  )
Pages: « 1 2 3 4 [5]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!