Pages:
Author

Topic: "Error opening block database. Do you want to rebuild the block database now?" (Read 48060 times)

sr. member
Activity: 420
Merit: 250
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.
member
Activity: 238
Merit: 10
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
newbie
Activity: 2
Merit: 0
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.
hero member
Activity: 544
Merit: 507
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
hero member
Activity: 651
Merit: 518
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.
hero member
Activity: 544
Merit: 507
...

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?
hero member
Activity: 651
Merit: 518
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.
sr. member
Activity: 395
Merit: 408
Bitcoin OG artworks collection
I have a similar issue today and few days ago
legendary
Activity: 2576
Merit: 2267
1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
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.
legendary
Activity: 2576
Merit: 2267
1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
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...
hero member
Activity: 563
Merit: 500
This index screwed my blockchain up, closed bitcoin client with an error. I had to download the bootstrap and totally redo my blockchain.
hero member
Activity: 563
Merit: 500
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
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF

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

newbie
Activity: 9
Merit: 0
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....


full member
Activity: 196
Merit: 100
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!
full member
Activity: 301
Merit: 106
full member
Activity: 196
Merit: 100
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?








soy
legendary
Activity: 1428
Merit: 1013
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.
newbie
Activity: 16
Merit: 0
I'm having the same issue with v0.8.5-beta, specs at bottom of the post for reference.

This happens any time I close and then reopen Bitcoin-Qt. I was having an issue with another application last night, so I manually closed it and all other applications (including Qt) and rebooted. Sure enough, when I reopened Qt, it prompted me to re-index (which takes several overnight sessions with my processor pinned near 100%). My entire system is backed up, so this time I closed Qt and restored the .../Application Support/Bitcoin/ directory, and then re-opened Qt and received a different error that I stupidly closed because I was so pissed. Instead I RErestored back to the unindexed version that existed and just let the reindex start. Again.

Is there some issue that prevents the data directory from being restored from backup?

Code:
Model Name: MacBook Pro
Model Identifier: MacBookPro5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.53 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 6 MB
Memory: 8 GB
Bus Speed: 1.07 GHz
Boot ROM Version: MBP51.007E.B06
SMC Version (system): 1.33f8

Code:
  Capacity: 480.1 GB (480,103,981,056 bytes)
  Model: OCZ-AGILITY3                           
  Revision: 2.220000
  Serial Number: OCZ-#######
  Native Command Queuing: Yes
  Queue Depth: 32
  Removable Media: No
  Detachable Drive: No
  BSD Name: disk0
  Medium Type: Solid State
  TRIM Support: No
  Partition Map Type: GPT (GUID Partition Table)
  S.M.A.R.T. status: Verified
  Volumes:
disk0s1:
  Capacity: 209.7 MB (209,715,200 bytes)
  BSD Name: disk0s1
  Content: EFI
Macintosh HD:
  Capacity: 479.24 GB (479,243,194,368 bytes)
  Available: 11.49 GB (11,487,240,192 bytes)
  Writable: Yes
  File System: Journaled HFS+
  BSD Name: disk0s2
  Mount Point: /
  Content: Apple_HFS
  Volume UUID: ###########
Recovery HD:
  Capacity: 650 MB (650,002,432 bytes)
  BSD Name: disk0s3
  Content: Apple_Boot
  Volume UUID: ############
sr. member
Activity: 408
Merit: 261
This happened to me today (again). Latest OSX, bitcoin-qt 0.8.5. FileVault 2 enabled, but it doesn't sound like that matters.

Any update/progress?


You can follow along here:

https://github.com/bitcoin/bitcoin/issues/2770

It's being worked on, but hasn't been completely squashed yet.

this problem has gotten so bad with OSX that i've gone back to the Windows version.

I suggest running Mac client v0.7.2 (with the May 15 workaround) if you want to maintain a flawless OSX experience until things are sorted out.
Pages:
Jump to: