1
looris@Palace-of-the-Nine-Moons:/tmp $ bitcoind 
looris@Palace-of-the-Nine-Moons:/tmp $ Bitcoin server starting


************************
EXCEPTION: St13runtime_error       
CLevelDB(): error opening database environment Corruption: missing start of fragmented record(2)       
bitcoin in AppInit()       

This happens when I start bitcoind, any clue on what could I do to fix it?

I tried to run it with -rescan but the result was the same.

o0'.
  • 5,240
  • 6
  • 39
  • 66

2 Answers2

4

Just run ./bitcoind -reindex and this will fix your problem.

-rescan is for missing wallet transactions

ManreeRist
  • 907
  • 2
  • 8
  • 12
0

Try to look in the ~/.bitcoin/db.log file for more information. It is likely that your only solution is to remove the block database (either blk0001.dat, blk0002.dat or blkindex.dat). DO NOT REMOVE YOUR wallet.dat file!!!

This means you will have to download the whole block chain again. This other question has tips on how to speed up that download.

Note that this may just be another case of the question asked here.

anarcat
  • 143
  • 6
  • Don't advise people to wipe their data directories. Since 0.8, we have -reindex which rebuilds them without redownloading. – Pieter Wuille Oct 09 '13 at 17:51