Bitcoin Forum
May 10, 2024, 02:32:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Stuck in "activating best chain" since 0.11.2  (Read 2075 times)
BillyBobZorton (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1028


View Profile
November 14, 2015, 02:42:25 PM
 #1

So I updated, booted the wallet the first time, but it was stuck for like an hour in "7 days to go". I closed it, reopened it, and now im stuck at "activating best chain". What's going on? Help please.
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715351573
Hero Member
*
Offline Offline

Posts: 1715351573

View Profile Personal Message (Offline)

Ignore
1715351573
Reply with quote  #2

1715351573
Report to moderator
1715351573
Hero Member
*
Offline Offline

Posts: 1715351573

View Profile Personal Message (Offline)

Ignore
1715351573
Reply with quote  #2

1715351573
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4177



View Profile
November 14, 2015, 03:00:24 PM
 #2

Try posting the last part of your debug log and check your CPU and disk usage.

I suspect this may be because of a database corruption. Try backing up your wallet.dat first and run Bitcoin Core with the -rescan flag.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
BillyBobZorton (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1028


View Profile
November 14, 2015, 03:35:01 PM
Last edit: November 14, 2015, 03:46:05 PM by BillyBobZorton
 #3

Try posting the last part of your debug log and check your CPU and disk usage.

I suspect this may be because of a database corruption. Try backing up your wallet.dat first and run Bitcoin Core with the -rescan flag.

Ffs this has happened me a lot of times when i've updated the software. My ram and HD is good and new... if this keeps happening I may give up with running a node. If at least it was faster downloading the blockchain, but it takes +1 days at best for me.

Anyway debug is showing this:

Edit: Anyway, it has now opened. Apparently it was doing something and it wasn't stuck. I suggest to the devs that they add some loading bar showing progress and not just some static message.
mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
February 13, 2016, 05:55:47 PM
 #4

I suggest to the devs that they add some loading bar showing progress and not just some static message.

Yeah, I second this.
mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
February 23, 2016, 01:19:01 AM
 #5

Btw, Pieter Wuille states on stackexchange that:

http://bitcoin.stackexchange.com/questions/41524/what-does-activating-best-chain-mean
Quote
At startup, it is possible that the first database contains blocks that could be valid but aren't part of the snapshot the second database represents. This can happen when you manually overwrite the block index (restoring from a backup, for example), but more commonly: because Bitcoin crashed after downloading some blocks that ended up being written to the block index, but the resulting chain state was never dumped to disk. When this happens, we will activate the best chain, loading blocks from the second database and applying them to the first (while doing full validation on them in the process).

Since Bitcoin Core heavily caches the chain state in memory, it is possible that there are hundreds or thousands of blocks missing from the chain state after an unclean shutdown. It can take a while to validate them again.

TL;DR: It's verifying blocks that were downloaded already but not processed yet (because the result of processing wasn't properly written to disk, most likely).


I wonder what cases exist currently where this issue occurs even after a supposed *clean* shutdown. Maybe there is some buggy behavior still present? I know, for instance, there was a bug fix following 0.12.0rc3, as pruned nodes were discovered to not be shutting down in the right state (and it was not due to unclean shutdowns, but simply due to a bug).

There's the following bug report, for others experiencing getting stuck at "activating best chain": https://github.com/bitcoin/bitcoin/issues/7038

I've also noticed that the "checkblocks" scan that occurs on every startup can be slow for people running particular configurations. At least that issue can be worked around by configuring bitcoin.conf (with checkblocks and checklevel), and it also gives us some sort of progress indication in Qt.
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!