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.
I suspect it would be faster to redownload the blockchain than fix this, but here's where your error is being thrown from
– Nick ODell – 2013-02-13T23:25:40.2401@NickODell doing it, but it takes me more than 24h to download it all, if this bug happens again I'd really need a quicker way to fix it... – o0'. – 2013-02-13T23:42:53.523
1
Agreed. Actually, this seems more relevant to your problem. It would appear that if it loads a record of type kLastType which isn't preceeded by kFirstType, then it will put out that error message.
– Nick ODell – 2013-02-14T00:04:17.757@NickODell oh thank you, that would be useful. Now I'm re-downloading anyway, but I've not deleted the corrupted db yet... – o0'. – 2013-02-14T09:50:59.717
1You need -reindex, not -rescan (which is for finding missing wallet transactions). – Pieter Wuille – 2013-02-18T22:28:00.393