bsc icon indicating copy to clipboard operation
bsc copied to clipboard

Synchronisation failed and retrieved hash chain is invalid: missing parent

Open devilrayzl opened this issue 2 years ago • 7 comments

System information

Geth version: [v1.1.12](https://github.com/bnb-chain/bsc/releases/tag/v1.1.12) OS & Version: Linux

Expected behaviour

Sync successful.

Actual behaviour

Not sync and always looking for peers.

t=2022-09-12T07:55:30+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=40  static=36
t=2022-09-12T07:55:40+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=120 static=36
t=2022-09-12T07:55:51+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=14  static=36
t=2022-09-12T07:56:03+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=30  static=36
t=2022-09-12T07:56:13+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=111 static=36
t=2022-09-12T07:56:23+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=64  static=36
t=2022-09-12T07:56:33+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=95  static=36
t=2022-09-12T07:56:42+0000 lvl=warn msg="Multiple headers for single request"   peer=49580d2a headers=0
t=2022-09-12T07:56:42+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=49580d2aef1fb712b202330320403fa32df2e904e98b5ad1d6322270b4708bae err="action from bad peer ignored: multiple headers (0) for single request"
t=2022-09-12T07:56:43+0000 lvl=info msg="Looking for peers"                     peercount=2 tried=76  static=36
t=2022-09-12T07:56:53+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=37  static=36
t=2022-09-12T07:56:54+0000 lvl=warn msg="Multiple headers for single request"   peer=494aaa53 headers=0
t=2022-09-12T07:56:54+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=494aaa5359ea9adad969bdbdf2d0efafe73214766e60d55c6288571cdfeda7e1 err="action from bad peer ignored: multiple headers (0) for single request"
t=2022-09-12T07:57:04+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=66  static=36
t=2022-09-12T07:57:11+0000 lvl=info msg="Downloader queue stats"                receiptTasks=0 blockTasks=379  itemSize="29.13 KiB" throttle=8192
t=2022-09-12T07:57:12+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=9234ab1dce022de3ace208a3010beec9b331bd4c85b1ac53d043437fd1a9c0f4 err="retrieved hash chain is invalid: missing parent"
t=2022-09-12T07:57:14+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=32  static=36
t=2022-09-12T07:57:24+0000 lvl=info msg="Looking for peers"                     peercount=0 tried=27  static=36
t=2022-09-12T07:57:40+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=f64e7c21304a5e63cfdd060be0098c668161caff2e7ab4ba93b7e03c45c0dabd err="retrieved hash chain is invalid: missing parent"
t=2022-09-12T07:57:44+0000 lvl=info msg="Looking for peers"                     peercount=2 tried=104 static=36
t=2022-09-12T07:57:54+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=126 static=36
t=2022-09-12T07:58:14+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=69  static=36
t=2022-09-12T07:58:25+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=76  static=36
t=2022-09-12T07:58:42+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=4b462a9b85beb0c7ed5d4242b2a259531970f8b5f01d76de4ea76cb975791980 err=timeout
t=2022-09-12T07:58:45+0000 lvl=info msg="Looking for peers"                     peercount=2 tried=79  static=36
t=2022-09-12T07:58:55+0000 lvl=info msg="Looking for peers"                     peercount=2 tried=101 static=36
t=2022-09-12T07:58:57+0000 lvl=info msg="Downloader queue stats"                receiptTasks=0 blockTasks=564  itemSize="29.57 KiB" throttle=8192
t=2022-09-12T07:58:58+0000 lvl=warn msg="Synchronisation failed, dropping peer" peer=9595461b0208762e00de57703092c5bec495ba016f6a955ef03c18ad107cf65e err="retrieved hash chain is invalid: missing parent"
t=2022-09-12T07:59:05+0000 lvl=info msg="Looking for peers"                     peercount=1 tried=13  static=36

Steps to reproduce the behaviour

using snapshot of BNB48Club's geth.21196522.tar.lz4. https://snapshots.bnb48.club/geth.21196522.tar.lz4

devilrayzl avatar Sep 12 '22 08:09 devilrayzl

I am living same problem on server , i cant fix

am using the latest bnb48club snapshot, @48clubIan u can help we?

b68h4 avatar Sep 13 '22 19:09 b68h4

t=2022-09-13T20:14:19+0000 lvl=info msg="Opened ancientdb with nodata mode" database=/home/geth/data/geth/chaindata/ancient frozen=21,194,239
t=2022-09-13T20:14:19+0000 lvl=info msg="Initialised chain configuration"   config="{ChainID: 56 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Ramanujan: 0, Niels: 0, MirrorSync: 5184000, Bruno: 13082000, Berlin: <nil>, YOLO v3: <nil>, CatalystBlock: <nil>, London: <nil>, ArrowGlacier: <nil>, MergeFork:<nil>, Euler: 18907621, Gibbs: <nil>, Engine: parlia}"
t=2022-09-13T20:14:19+0000 lvl=info msg="Deep froze chain segment"          blocks=118 elapsed=7.543ms number=21,194,356 hash=0x4d19119baaa895027065bd1706491303858b9d6436c3d909903768285a19324c
t=2022-09-13T20:14:21+0000 lvl=info msg="Unprotected transactions allowed"
t=2022-09-13T20:14:21+0000 lvl=info msg="Initialising Ethereum protocol"    network=56 dbversion=8
t=2022-09-13T20:14:21+0000 lvl=info msg="Loaded most recent local header"   number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=17h59m56s
t=2022-09-13T20:14:21+0000 lvl=info msg="Loaded most recent local full block" number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=17h59m56s
t=2022-09-13T20:14:21+0000 lvl=info msg="Loaded most recent local fast block" number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=17h59m56s
t=2022-09-13T20:14:21+0000 lvl=info msg="Loaded last fast-sync pivot marker"  number=18,122,881
t=2022-09-13T20:14:21+0000 lvl=warn msg="Head state missing, repairing"       number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e
t=2022-09-13T20:15:38+0000 lvl=eror msg="Missing block in the middle, aiming genesis" number=21,194,356 hash=0x4d19119baaa895027065bd1706491303858b9d6436c3d909903768285a19324c
t=2022-09-13T20:15:38+0000 lvl=info msg="Loaded most recent local header"     number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=18h1m13s
t=2022-09-13T20:15:38+0000 lvl=info msg="Loaded most recent local full block" number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b td=1          age=2y5mo6d
t=2022-09-13T20:15:38+0000 lvl=info msg="Loaded most recent local fast block" number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=18h1m13s
t=2022-09-13T20:15:38+0000 lvl=info msg="Loaded last fast-sync pivot marker"  number=18,122,881
t=2022-09-13T20:15:38+0000 lvl=warn msg="Sanitizing invalid txpool reannounce time" provided=0s updated=1m0s

2nd time start to geth with same arguments:

t=2022-09-13T20:16:26+0000 lvl=info msg="Initialising Ethereum protocol"    network=56 dbversion=8
t=2022-09-13T20:16:26+0000 lvl=info msg="Loaded most recent local header"   number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=18h2m1s
t=2022-09-13T20:16:26+0000 lvl=info msg="Loaded most recent local full block" number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b td=1          age=2y5mo6d
t=2022-09-13T20:16:26+0000 lvl=info msg="Loaded most recent local fast block" number=21,284,356 hash=0xb02c33c5eaafe8a6fabae279ddfb5c5e28867fb0ff91495c73c4b39f880ec80e td=42,333,346 age=18h2m1s
t=2022-09-13T20:16:26+0000 lvl=info msg="Loaded last fast-sync pivot marker"  number=18,122,881
t=2022-09-13T20:16:26+0000 lvl=warn msg="Sanitizing invalid txpool reannounce time" provided=0s updated=1m0s
t=2022-09-13T20:16:26+0000 lvl=crit msg="Fast Sync not finish, can't enable pruneancient mode"

b68h4 avatar Sep 13 '22 20:09 b68h4

You can also try the snapshot here: https://github.com/bnb-chain/bsc-snapshots

keefel avatar Sep 15 '22 12:09 keefel

same problem, have you managed to resolve this?

sonderangebot10 avatar Sep 28 '22 13:09 sonderangebot10

Any updates on this? Still unable to sync.

rcastellaj avatar Oct 03 '22 12:10 rcastellaj

ed to resolve this?

The official bsc snapshots cant download. All that I have tried fail with the error: tar: Unexpected EOF in archive

lelerukjaymoh avatar Oct 08 '22 10:10 lelerukjaymoh

ed to resolve this?

The official bsc snapshots cant download. All that I have tried fail with the error: tar: Unexpected EOF in archive

Yes I tried again recently and got this error. No problem with BNB48 erigon snapshots.

b68h4 avatar Oct 09 '22 21:10 b68h4

closing due to inactivity

bnb-tw avatar Jul 05 '23 02:07 bnb-tw