Bitcoin Forum
November 02, 2024, 09:02:27 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Core 0.20.0 sync stuck on a block, please help, has there been a fork?  (Read 328 times)
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 11:49:28 AM
 #1

hi guys,

I just launched my "usual" blockchain catch-up and core 0.20.0 is stuck from a while, he was crunching some data, CPU active, disk, network traffic, etc,. then all of a sudden all quiet, 0% network activity, etc. the disk is fine and PC as well, no hooks etc.

Sync is stuck at 2 days ago, Last Block time Fri Jul 31 09:50:27 2020 (99.89%)

Network is connected, i see all 4 dots connected, i have 10-12 connections active, though that then drops to 2 dots only, back to 4, very irregular. seems something is def up!

Can someone help me out please? i just had a peek at the debug log and here's what we have there:

2020-08-02T11:43:16Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:16Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:16Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:16Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:16Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:17Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:17Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:17Z New outbound peer connected: version: 70015, blocks=641879, peer=87 (full-relay)
2020-08-02T11:43:22Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:29Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:43:40Z New outbound peer connected: version: 70015, blocks=641879, peer=88 (full-relay)
2020-08-02T11:43:41Z New outbound peer connected: version: 70015, blocks=641879, peer=89 (full-relay)
2020-08-02T11:43:47Z New outbound peer connected: version: 70015, blocks=641879, peer=90 (full-relay)
2020-08-02T11:44:04Z New outbound peer connected: version: 70015, blocks=641879, peer=93 (full-relay)
2020-08-02T11:44:05Z New outbound peer connected: version: 70015, blocks=641879, peer=94 (full-relay)
2020-08-02T11:44:06Z New outbound peer connected: version: 70015, blocks=641879, peer=95 (full-relay)
2020-08-02T11:44:07Z New outbound peer connected: version: 70015, blocks=641879, peer=96 (block-relay)
2020-08-02T11:44:24Z New outbound peer connected: version: 70015, blocks=641879, peer=97 (block-relay)
2020-08-02T11:44:30Z New outbound peer connected: version: 70015, blocks=641879, peer=98 (block-relay)
2020-08-02T11:46:03Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:03Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:04Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:04Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:04Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:04Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:04Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:07Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:15Z ERROR: AcceptBlockHeader: block 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8 is marked invalid
2020-08-02T11:46:16Z New outbound peer connected: version: 70015, blocks=641880, peer=104 (full-relay)
2020-08-02T11:46:33Z New outbound peer connected: version: 70015, blocks=641880, peer=105 (full-relay)
2020-08-02T11:46:34Z New outbound peer connected: version: 70015, blocks=641880, peer=106 (full-relay)
2020-08-02T11:46:38Z New outbound peer connected: version: 70015, blocks=641879, peer=103 (full-relay)

many thanks,
Gab
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
August 02, 2020, 12:10:36 PM
Merited by LoyceV (4), Rath_ (2), togoshigekata (1)
 #2

Hmm. It most commonly occurs when you use an invalidate block command.

Try running
Code:
reconsiderblock 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8
.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8036


Crypto Swap Exchange


View Profile
August 02, 2020, 12:10:51 PM
Merited by Rath_ (2)
 #3

AFAIK there's no fork and my Bitcoin Core are able to sync without any problem. Did you run any command that might break Bitcoin Core such as :

Code:
invalidateblock 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8

Edit : if you do, try to run command shown by @ranochigo

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 12:13:10 PM
 #4

AFAIK there's no fork and my Bitcoin Core are able to sync without any problem. Did you run any command that might break Bitcoin Core such as :

Code:
invalidateblock 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8

Edit : if you do, try to run command shown by @ranochigo

hi both,

no i haven't ran any command line command at all, just launched usual sync, went to do some emails and wait in background. i tried to check the network state with a couple of commands but i haven't invalidated anything.

so, which would be the best course of action? wallet seems fine, i have backup, but i rather Not RE sync 300Gigs if i possible Smiley

thanks guys
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 12:14:05 PM
 #5

so shall i do

reconsiderblock 00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8

worst case nothing happens?
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 12:23:18 PM
Merited by LoyceV (4), LFC_Bitcoin (1)
 #6

Ok, i took the plunge, panic mode ON and launched the command.... it worked!  Grin

thanks guys!

guess it happens when you sync sometimes, right? always learn something new!
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
August 02, 2020, 12:24:59 PM
 #7

Ok, i took the plunge, panic mode ON and launched the command.... it worked!  Grin

thanks guys!

guess it happens when you sync sometimes, right? always learn something new!
It shouldn't usually happen. Did you modify your bitcoin.conf or anything? Is there anything about this hash in the earlier parts of your debug.log?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 12:31:06 PM
 #8

Ok, i took the plunge, panic mode ON and launched the command.... it worked!  Grin

thanks guys!

guess it happens when you sync sometimes, right? always learn something new!
It shouldn't usually happen. Did you modify your bitcoin.conf or anything? Is there anything about this hash in the earlier parts of your debug.log?

nah it started with 2020-08-02T11:08:20Z InvalidChainFound: invalid block=00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8

then all the further errors, that's all i can see.
gabrio81 (OP)
Member
**
Offline Offline

Activity: 94
Merit: 56


View Profile
August 02, 2020, 04:02:56 PM
 #9

Ok, i took the plunge, panic mode ON and launched the command.... it worked!  Grin

thanks guys!

guess it happens when you sync sometimes, right? always learn something new!

No, it never happens to me and this is first time i saw message " ERROR: AcceptBlockHeader: block [HASH] is marked invalid" without user doing anything.
It's more often to receive the block corrupted and Bitcoin Core download the block from another node.

it might have been lots of syncs on and off, disconnecting the hard disk on and off, oh well it's solved now. happy days.
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6311


Self-proclaimed Genius


View Profile
August 03, 2020, 03:59:44 AM
 #10

nah it started with 2020-08-02T11:08:20Z InvalidChainFound: invalid block=00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8
Perhaps your node followed a "stale block" sent by a pool right before you closed Bitcoin core.
Then when you opened to "blockchain catch-up" it was invalidated.

AFAIK, forks with 1-block-long chain happen often because of competing miners.
Previously, we can easily check it here as a chain diagram with height: blockchain.com/btc/orphaned-blocks but the link is now unavailable.
So we can't confirm it.

But it's now solved so, congrats!

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6311


Self-proclaimed Genius


View Profile
August 05, 2020, 05:21:50 AM
 #11

nah it started with 2020-08-02T11:08:20Z InvalidChainFound: invalid block=00000000000000000007b86426ffa671d5f52a0cf22eb1a03a73c114695983c8
Perhaps your node followed a "stale block" sent by a pool right before you closed Bitcoin core.
Then when you opened to "blockchain catch-up" it was invalidated.
-snip-
I doubt it, IIRC Bitcoin Core would choose chain with most PoW.
It wouldn't know if it's the tip at that time then the user immediately close his node.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6311


Self-proclaimed Genius


View Profile
August 05, 2020, 03:19:46 PM
 #12

True, but i don't see how it makes other block invalid since IIRC Bitcoin Core would sync block header first if it's not 100% synced.
Assuming OP is always doing the "usual blockchain catch up", then the last time he did, his node had been syncing;
and after it was 100% synced, his node might have received a "will-be" stale block (new tip) then he closed the client right away because "blockchain had caught up".

But there's no much gain in finding the exact cause of the issue since this was solved now  Smiley

it might have been lots of syncs on and off, disconnecting the hard disk on and off, oh well it's solved now. happy days.
Probably.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
June 16, 2022, 10:14:16 PM
 #13

Had something similar happen, with repeated "ERROR: AcceptBlockHeader: block ... is marked invalid" on the same block (which was valid).
It was on Litecoin Core 0.18, not Bitcoin Core, but the fix was the same: reconsiderblock.

The only strange thing that had happened in proximity was a previous out of space crash for the cachestate.
But a following run did sync new blocks for a minute or two, before hitting "marked invalid", so maybe it was unrelated.

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!