Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: lalejand on March 15, 2011, 06:06:05 PM



Title: [solved] EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: lalejand on March 15, 2011, 06:06:05 PM
Hi,

I use(d) bitcoin on Ubuntu Maverick :
bitcoin:
  Installé : 0.3.19-maverick6
  Candidat : 0.3.19-maverick6
 Table de version :
 *** 0.3.19-maverick6 0
        500 http://ppa.launchpad.net/stretch/bitcoin/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status

Yesterday my computer crashed and I had to reboot by staying pushing the on-off button.
Since that moment Bitcoin refuses to work. I get this error :
lalejand@lalejand-laptop:~$ /usr/bin/bitcoin &
[1] 2469
lalejand@lalejand-laptop:~$

************************
EXCEPTION: NSt8ios_base7failureE      
CAutoFile::read : end of file      
bitcoin in AppInit()      



************************
EXCEPTION: NSt8ios_base7failureE      
CAutoFile::read : end of file      
bitcoin in CMyApp::OnUnhandledException()      

terminate called after throwing an instance of 'std::ios_base::failure'
  what():  CAutoFile::read : end of file

[1]+  Abandon                 (core dumped) /usr/bin/bitcoin

I found in this forum that the cause can be a malformed block.
badblocks says :
lalejand@lalejand-laptop:~$ badblocks -s /dev/*
badblocks: dernier bloc invalide - /dev/autofs
lalejand@lalejand-laptop:~$ sudo badblocks -n /dev/autofs
badblocks: bloc de départ invalide (0): doit être moins de 0

I restarted my computer on a live usb and checked /dev/sda1 with e2fsck and badblocks. And everything is alright.

So I don't know what i can do :/


Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: jgarzik on March 15, 2011, 06:11:31 PM
Delete data/blk*.dat and re-download the block chain, see if that helps.


Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: lalejand on March 15, 2011, 06:12:19 PM
Will try, but how do I download the block chain ?


Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: lalejand on March 15, 2011, 06:16:25 PM
And I don't find any blk....dat file in data :/

I have blk0001.dat and blkindex.dat in /home/lalejand/.bitcoin


Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: theymos on March 15, 2011, 06:56:35 PM
I have blk0001.dat and blkindex.dat in /home/lalejand/.bitcoin

Delete those. Delete everything there except wallet.dat and bitcoin.conf (if it exists).


Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: jgarzik on March 15, 2011, 07:02:14 PM
And I don't find any blk....dat file in data :/

I have blk0001.dat and blkindex.dat in /home/lalejand/.bitcoin

Yes, ".bitcoin" is the proper directory for you.  I set mine to "data", sorry for the confusion.



Title: Re: EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: lalejand on March 15, 2011, 07:12:55 PM
It works !!!
thanks a lot !


Title: Re: [solved] EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: tytus on December 23, 2012, 03:23:35 PM
Is there any other solution for this ? downloading the block chain takes few days :-(


Title: Re: [solved] EXCEPTION: NSt8ios_base7failureE on ubuntu
Post by: RAVENCROW on December 04, 2013, 02:37:16 AM
thanks worked for my namecoin problem too :)