Bitcoin Forum
June 14, 2024, 12:20:48 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [solved] EXCEPTION: NSt8ios_base7failureE on ubuntu  (Read 5581 times)
lalejand (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 15, 2011, 06:06:05 PM
Last edit: March 15, 2011, 07:13:21 PM by lalejand
 #1

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 :/
jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 15, 2011, 06:11:31 PM
 #2

Delete data/blk*.dat and re-download the block chain, see if that helps.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lalejand (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 15, 2011, 06:12:19 PM
 #3

Will try, but how do I download the block chain ?
lalejand (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 15, 2011, 06:16:25 PM
 #4

And I don't find any blk....dat file in data :/

I have blk0001.dat and blkindex.dat in /home/lalejand/.bitcoin
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5236
Merit: 13087


View Profile
March 15, 2011, 06:56:35 PM
 #5

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).

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 15, 2011, 07:02:14 PM
 #6

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.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lalejand (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 15, 2011, 07:12:55 PM
 #7

It works !!!
thanks a lot !
tytus
Sr. Member
****
Offline Offline

Activity: 250
Merit: 250


View Profile
December 23, 2012, 03:23:35 PM
 #8

Is there any other solution for this ? downloading the block chain takes few days :-(
RAVENCROW
Full Member
***
Offline Offline

Activity: 169
Merit: 100



View Profile WWW
December 04, 2013, 02:37:16 AM
 #9

thanks worked for my namecoin problem too Smiley

฿Allaboutbit ฿฿Cludcoin ฿[/color]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!