Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: sdp on May 14, 2013, 07:11:32 PM



Title: not 0.8.2 index error
Post by: sdp on May 14, 2013, 07:11:32 PM
Sorry about putting this bug report here but I don't want to create yet another account.

The first time I ran it is started rapidly decreasing the number of weeks left.  I left the computer running when it was a year out of date.  The second time I started it up, it gave me the following error:

I am using Linux/32
I get the following error:
-----------------------------------
************************                                                                                                                                                           
EXCEPTION: St13runtime_error                                                                                                                                                       
CDB() : can't open database file blkindex.dat, error 22                                                                                                                             
bitcoin in Runaway exception
-----------------------------------

Using ls I get:
-----------------------------------
bash-4.2$ ls -l ~/.bitcoin/blkindex.dat
-rw------- 1 shawn users 429834240 May 11 18:44 /home/shawn/.bitcoin/blkindex.dat
-----------------------------------

I am using ext3 (journaled filesystem).  Now the file size is just under the maximum size of a 32-bit integer. 
Is there a way to recover this?






Title: Re: not 0.8.2 index error
Post by: gmaxwell on May 14, 2013, 07:41:04 PM
What version are you running? Only old and ~no longer supported versions using a blkindex.dat.


Title: Re: not 0.8.2 index error
Post by: kjj on May 14, 2013, 08:24:05 PM
-rw------- 1 shawn users 429834240 May 11 18:44 /home/shawn/.bitcoin/blkindex.dat

I am using ext3 (journaled filesystem).  Now the file size is just under the maximum size of a 32-bit integer. 
Is there a way to recover this?

Your numbers are a bit off.  You are ~ 500 MB, not ~ 4 GB.

Most likely, you didn't shut down cleanly and your databases got broken.