Bitcoin Forum
November 18, 2018, 01:31:59 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind failed when reindexing  (Read 789 times)
cryptedlife
Member
**
Offline Offline

Activity: 71
Merit: 10

BlockStarter team


View Profile WWW
October 28, 2017, 06:05:44 PM
 #1

In bitcoin.conf I have
Code:
txindex=1
Then I startered
Code:
bitcoind -reindex -daemon

Then at block 485691 my bitcoind was interrupted with ERROR:

Code:
2017-10-28 13:27:29 receive version message: /Satoshi:0.14.0/: version 70015, blocks=492084, us=x.x.x.x:44864, peer=10977
2017-10-28 13:27:29 receive version message: /Satoshi:0.9.99/: version 70002, blocks=-1, us=x.x.x.x:8333, peer=10978
2017-10-28 13:27:29 Misbehaving: 205.251.22.236:4139 peer=10971 (0 -> 1)
2017-10-28 13:27:29 ProcessMessages(ping, 8 bytes) FAILED peer=10971
2017-10-28 13:27:29 receive version message: /Satoshi:0.14.2/: version 70015, blocks=492084, us=x.x.x.x:60804, peer=10979
2017-10-28 13:27:29 receive version message: /Satoshi:0.14.99/: version 70015, blocks=492084, us=x.x.x.x:46830, peer=10980
2017-10-28 13:27:31 receive version message: /nodes.bitcoin-russia.ru:0.0.1f/: version 70015, blocks=492084, us=x.x.x.x:8333, peer=109
81
2017-10-28 13:27:33 Imported mempool transactions from disk: 0 successes, 0 failed, 10345 expired
2017-10-28 13:27:34 Leaving block file 1000: CBlockFileInfo(blocks=212, size=133795768, heights=485480...485691, time=2017-09-16...2017-09-17
)
2017-10-28 13:27:35 Pre-allocating up to position 0x1000000 in blk01001.dat
2017-10-28 13:27:44 *** System error: CAutoFile::write: write failed: iostream error
2017-10-28 13:27:45 Error: Error: A fatal internal error occurred, see debug.log for details
2017-10-28 13:27:45 ERROR: ProcessNewBlock: AcceptBlock FAILED
2017-10-28 13:27:54 *** System error: CAutoFile::write: write failed: iostream error
2017-10-28 13:27:51 tor: Thread interrupt
2017-10-28 13:27:54 Error: Error: A fatal internal error occurred, see debug.log for details
2017-10-28 13:27:54 ERROR: ProcessNewBlock: AcceptBlock FAILED
2017-10-28 13:27:54 opencon thread exit
2017-10-28 13:27:54 msghand thread exit
2017-10-28 13:27:54 torcontrol thread exit
2017-10-28 13:27:54 addcon thread exit
2017-10-28 13:27:54 net thread exit
2017-10-28 13:27:54 scheduler thread interrupt
2017-10-28 13:27:55 Shutdown: In progress...
2017-10-28 13:27:56 Dumped mempool: 1.1e-05s to copy, 0.123345s to dump
2017-10-28 13:30:30 Shutdown: done

Then I tried to start bitcoind again (without -reindex)
Code:
bitcoind -daemon

And got ERROR again:
Code:
...

2017-10-28 17:38:48 Checking all blk files are present...
2017-10-28 17:38:48 LoadBlockIndexDB: transaction index enabled
2017-10-28 17:38:48 LoadBlockIndexDB: hashBestChain=00000000000000000019a37a36788e73a2eecaa1f1ad7bbc0ae89fa23c922bd6 height=485691 date=2017-09-17 05:49:53 progress=0.956959
2017-10-28 17:38:49 init message: Rewinding blocks...
2017-10-28 17:38:51 init message: Verifying blocks...
2017-10-28 17:38:51 Verifying last 6 blocks at level 3
2017-10-28 17:38:51 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2017-10-28 17:39:17 No coin database inconsistencies in last 7 blocks (4839 transactions)
2017-10-28 17:39:17  block index           66290ms
2017-10-28 17:39:17 init message: Loading wallet...
2017-10-28 17:39:17 nFileVersion = 140200
2017-10-28 17:39:17 Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
2017-10-28 17:39:17  wallet                  689ms
2017-10-28 17:39:17 setKeyPool.size() = 100
2017-10-28 17:39:17 mapWallet.size() = 0
2017-10-28 17:39:17 mapAddressBook.size() = 1
2017-10-28 17:39:17 mapBlockIndex.size() = 489692
2017-10-28 17:39:17 nBestHeight = 485691
2017-10-28 17:39:17 torcontrol thread start
2017-10-28 17:39:17 AddLocal(x.x.x.x:8333,1)
2017-10-28 17:39:17 Discover: IPv4 enp0s25: x.x.x.x
2017-10-28 17:39:17 init message: Loading addresses...
2017-10-28 17:39:18 Imported mempool transactions from disk: 1 successes, 0 failed, 0 expired
2017-10-28 17:39:19 Loaded 62417 addresses from peers.dat  1211ms
2017-10-28 17:39:19 init message: Loading banlist...
2017-10-28 17:39:19 init message: Starting network threads...
2017-10-28 17:39:19 net thread start
2017-10-28 17:39:19 dnsseed thread start
2017-10-28 17:39:19 msghand thread start
2017-10-28 17:39:19 init message: Done loading
2017-10-28 17:39:19 addcon thread start
2017-10-28 17:39:19 opencon thread start
2017-10-28 17:39:19 receive version message: /bitcoin-seeder:0.01/: version 60000, blocks=350000, us=x.x.x.x:8333, peer=0
2017-10-28 17:39:30 Loading addresses from DNS seeds (could take a while)
2017-10-28 17:39:30 117 addresses found from DNS seeds
2017-10-28 17:39:30 dnsseed thread exit
2017-10-28 17:39:31 socket recv error Connection reset by peer (104)
2017-10-28 17:39:48 receive version message: /Satoshi:0.15.0/: version 70015, blocks=492099, us=x.x.x.x:42068, peer=2
2017-10-28 17:39:48 receive version message: /Satoshi:0.15.0/: version 70015, blocks=492099, us=x.x.x.x:39708, peer=3
2017-10-28 17:39:58 *** System error: CAutoFile::write: write failed: iostream error
2017-10-28 17:39:58 Error: Error: A fatal internal error occurred, see debug.log for details
2017-10-28 17:39:58 ERROR: ProcessNewBlock: AcceptBlock FAILED
2017-10-28 17:39:58 tor: Thread interrupt
2017-10-28 17:39:58 torcontrol thread exit
2017-10-28 17:39:58 addcon thread exit
2017-10-28 17:39:58 opencon thread exit
2017-10-28 17:39:58 net thread exit
2017-10-28 17:40:04 scheduler thread interrupt
2017-10-28 17:40:07 *** System error: CAutoFile::write: write failed: iostream error
2017-10-28 17:40:07 Shutdown: In progress...
2017-10-28 17:40:07 Error: Error: A fatal internal error occurred, see debug.log for details
2017-10-28 17:40:07 ERROR: ProcessNewBlock: AcceptBlock FAILED
2017-10-28 17:40:07 msghand thread exit
2017-10-28 17:40:09 Dumped mempool: 1.1e-05s to copy, 0.20966s to dump
2017-10-28 17:40:11 Shutdown: done

Guys, how to fix this?

BlockStarter - a platform for launching ICO campaigns
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1542547919
Hero Member
*
Offline Offline

Posts: 1542547919

View Profile Personal Message (Offline)

Ignore
1542547919
Reply with quote  #2

1542547919
Report to moderator
1542547919
Hero Member
*
Offline Offline

Posts: 1542547919

View Profile Personal Message (Offline)

Ignore
1542547919
Reply with quote  #2

1542547919
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1582
Merit: 1751


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
October 28, 2017, 09:49:45 PM
 #2

It looks like bitcoind was unable to write to the file blk01001.dat in the blocks folder inside of your datadir. Make sure that you have enough disk space and that the user bitcoind is running under has permission to write to that file.

devopruschip
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
October 30, 2017, 11:43:35 AM
 #3

The problem is quite obvious, your blockchain is corrupted, what you can do is to reindex or just delete the entire blockchain to again start.
Spendulus
Legendary
*
Offline Offline

Activity: 2058
Merit: 1082



View Profile
October 31, 2017, 02:17:41 PM
 #4

The problem is quite obvious, your blockchain is corrupted, what you can do is to reindex or just delete the entire blockchain to again start.

Some virus scanners will delete various blocks in the blockchain, thus corrupting it.
cryptedlife
Member
**
Offline Offline

Activity: 71
Merit: 10

BlockStarter team


View Profile WWW
November 02, 2017, 10:56:23 PM
 #5

The problem is quite obvious, your blockchain is corrupted, what you can do is to reindex or just delete the entire blockchain to again start.
Thank you. But that happened right when I was at 70% of reindexing the entire blockchain.

BlockStarter - a platform for launching ICO campaigns
cryptedlife
Member
**
Offline Offline

Activity: 71
Merit: 10

BlockStarter team


View Profile WWW
November 02, 2017, 10:57:40 PM
 #6

The problem is quite obvious, your blockchain is corrupted, what you can do is to reindex or just delete the entire blockchain to again start.

Some virus scanners will delete various blocks in the blockchain, thus corrupting it.
I don't have virus scanners on that server.

Any other ideas how to fix it?
Do you think the only way is to start from scratch? Sad

BlockStarter - a platform for launching ICO campaigns
SopihxiDesil
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
November 03, 2017, 01:58:22 PM
 #7

I think to problem is here "Dumped mempool" mean no connection to pool. I have to same problem with connection, but it dont show "Dumped mempool"
boogersguy
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
November 04, 2017, 10:14:00 AM
 #8

Did you check your disk space?
Have you tried running without Tor?
MrCrank
Sr. Member
****
Offline Offline

Activity: 714
Merit: 253



View Profile
November 05, 2017, 06:54:45 AM
 #9

If this problem with disk space only..
I can offer to you use prune mode - you can save free space
Please read details here https://bitcointalk.org/index.php?topic=1599458.0

BitcoinDiamond
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
November 07, 2017, 12:50:28 PM
 #10

Free up space! Bigger the better.
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!