Bitcoin Forum
May 20, 2019, 12:09:02 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: My blockchain doesn't get downloaded after client update  (Read 1073 times)
zx9r
Full Member
***
Offline Offline

Activity: 152
Merit: 100


View Profile
February 12, 2013, 05:02:57 PM
 #1

I downloaded the version 0.7.2 and made an update from 0.3.24 (before this I made a backup of entire /users/appdata/bitcoin directory which I have in a safe place)

After the upgrade, the new version 0.7.2 doesnt start. It throws I kind of segmentation fault and hangs.

Then I tried removing the users/bitcoin directory and it starts pretty fine downloading from the beginning of the blockchain withot problems.

I deleted again the users/bitcoin directory contents and put in it my wallet.dat. Now the bitcoin client can start, it reads the content of the wallet (I can see the transactions but all unconfirmed) and it is stucked at the block number 149. After that it doesnt any more blocks.

I can post some logs:

/users/bitcoin/db.txt

file wallet.dat has LSN 353/5524652, past end of log at 1/384363
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
DB_ENV->log_flush: LSN of 353/5524652 past current end-of-log of 1/384363
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
wallet.dat: unable to flush page: 7
txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
[...]


/users/bitcoin/debug.txt

received block 0000000000a86824bc08
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 0000000000b9ecdee1ed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 00000000002cce65fb66
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 00000000002eda10df0e
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 0000000000a17b36b3ba
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
received block 0000000000daf3e57997
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
ERROR: FetchInputs() : 44209c865e mempool Tx prev not found b8ced7a6fd
stored orphan tx 44209c865e (mapsz 1106)
ERROR: FetchInputs() : 8aef4715a6 mempool Tx prev not found 5b59d4adb6
stored orphan tx 8aef4715a6 (mapsz 1107)
ERROR: FetchInputs() : 9f2e70fa49 mempool Tx prev not found c4a2919907
stored orphan tx 9f2e70fa49 (mapsz 1108)
ERROR: FetchInputs() : abdc448bb2 mempool Tx prev not found 9f2e70fa49
stored orphan tx abdc448bb2 (mapsz 1109)

[...]

Flush(false)
blkindex.dat refcount=0
blkindex.dat checkpoint
blkindex.dat closed
wallet.dat refcount=0
wallet.dat checkpoint
wallet.dat detach
wallet.dat closed
DBFlush(false) ended               0ms
StopNode()
ThreadOpenConnections exited
ThreadSocketHandler exited
ipcThread exited
ThreadMessageHandler exited
ThreadMapPort exited
Flushed 13638 addresses to peers.dat  78ms
Flush(true)
DBFlush(true) ended               0ms
EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
Bitcoin exited



Anybody knows what can I do ?

1558310942
Hero Member
*
Offline Offline

Posts: 1558310942

View Profile Personal Message (Offline)

Ignore
1558310942
Reply with quote  #2

1558310942
Report to moderator
1558310942
Hero Member
*
Offline Offline

Posts: 1558310942

View Profile Personal Message (Offline)

Ignore
1558310942
Reply with quote  #2

1558310942
Report to moderator
Get signals when whales enter & exit a market 74% average win rate
full binance integration
TRY NOW!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1558310942
Hero Member
*
Offline Offline

Posts: 1558310942

View Profile Personal Message (Offline)

Ignore
1558310942
Reply with quote  #2

1558310942
Report to moderator
1558310942
Hero Member
*
Offline Offline

Posts: 1558310942

View Profile Personal Message (Offline)

Ignore
1558310942
Reply with quote  #2

1558310942
Report to moderator
1558310942
Hero Member
*
Offline Offline

Posts: 1558310942

View Profile Personal Message (Offline)

Ignore
1558310942
Reply with quote  #2

1558310942
Report to moderator
zvs
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


House Nogleg


View Profile WWW
February 13, 2013, 04:43:24 AM
 #2

well, you could try getting

http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.0/test/

that

and then

www.nogleg.com/archive/v0.8.0-Feb-11th/v0.8.0-Feb-11th.7z

i havent tested it yet on my windows machine (it's slow to DL 4 gigs)

i assume it would work, and be missing a couple hundred blocks maybe?

it looks like you'd have to reDL whole blockchain regardless

maybe it would need txindex?  i duno, i dont keep wallets with transactions on either

zvs
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


House Nogleg


View Profile WWW
February 13, 2013, 06:16:57 AM
 #3

first try, got an error.  deleted database directory and it finished resyncing in about 5 minutes..  starting from 220807

i was going to edit the file to remove that log.00000002 , but it looked like it was gonna take about 30m.. so..

bah.  i'll remove it

BookLover
Hero Member
*****
Offline Offline

Activity: 534
Merit: 500


^Bitcoin Library of Congress.


View Profile
February 14, 2013, 03:06:56 PM
 #4

Clear the bitcoin directory and copy your backup wallet and blockchain files to the bitcoin directory.  Then run the bitcoin client with the commands -detachb and -rescan.

This may not work but based on the info given it may resolve your problem.

zx9r
Full Member
***
Offline Offline

Activity: 152
Merit: 100


View Profile
February 17, 2013, 07:58:56 PM
 #5

Finally I made a clean installation and copy only the wallet. It took a big time to download all the entire chain but it is all ok now.
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!