Bitcoin Forum
September 25, 2017, 10:45:17 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [solved] EXCEPTION: NSt8ios_base7failureE on ubuntu  (Read 5390 times)
lalejand
Newbie
*
Offline Offline

Activity: 4


View Profile
March 15, 2011, 06:06:05 PM
 #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 :/
The money raised from these ads will be used to pay for improved forum software and other useful stuff.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
jgarzik
Legendary
*
Offline Offline

Activity: 1470


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, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lalejand
Newbie
*
Offline Offline

Activity: 4


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

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

Activity: 4


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: 2786


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: 1470


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, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lalejand
Newbie
*
Offline Offline

Activity: 4


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

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

Activity: 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



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!