bnb-chain / bsc-snapshots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The downloaded snapshot file cannot be loaded.

AbelGate opened this issue · comments

When I downloaded a snapshot, according to your documentation, I replaced the files in the chaindata folder after closing the geth program. But after starting, the following error will appear.

t=2023-12-10T03:24:35+0000 lvl=info msg="Loaded most recent local block"       number=34,152,285 hash=0x09341bef81675142215bc1dae584a832bd842ca499e2d47db8578ad9dc27c508 root=0x0951db36750ee629a5f30bcad70579ad23eef18b239c9d7a3c7ceeae0f61098e td=67,853,026 age=2d9h32m
t=2023-12-10T03:24:35+0000 lvl=info msg="Loaded most recent local finalized block" number=34,152,283 hash=0x6053f2e4e913197a301c7b69857d3c5be6daea922e996a53920c5ea85412b75b root=0xc2f5ca3526cb1b30626b577bd032c9673d66c25d761a9c4d6f005fc063e9776f td=67,853,022 age=2d9h33m
t=2023-12-10T03:24:35+0000 lvl=warn msg="Head state missing, repairing"        number=34,152,285 hash=0x09341bef81675142215bc1dae584a832bd842ca499e2d47db8578ad9dc27c508 diskRoot=0xc1c55ef6a8c42343ae18f36788f93f1f39b15615c6f8da974e98d657e2244f86
t=2023-12-10T03:28:19+0000 lvl=eror msg="Missing block in the middle, aiming genesis" number=34,062,285 hash=0x8a134fbe12951d81a30ea822a61e424b88cb93899e1bf37cf537ecfff367c7e5
t=2023-12-10T03:28:19+0000 lvl=info msg="Reset to block with genesis state"    number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b
t=2023-12-10T03:53:04+0000 lvl=eror msg="Unexpected error when getting snapshot" error="unknown ancestor" blockNumber=34,062,335 blockHash=0xb89797a38a59d282696a40dbd87d057ac1599a0cde97beb385f1e2b00e456c2b
t=2023-12-10T03:53:04+0000 lvl=eror msg="Unexpected error when getting snapshot" error="unknown ancestor" blockNumber=34,062,334 blockHash=0xb004f6677c365969c879aee574d29971b9b9865592bc6e047d88f17b0bdbbdc1
t=2023-12-10T03:53:04+0000 lvl=eror msg="Unexpected error when getting snapshot" error="unknown ancestor" blockNumber=34,062,334 blockHash=0xb004f6677c365969c879aee574d29971b9b9865592bc6e047d88f17b0bdbbdc1
t=2023-12-10T03:53:04+0000 lvl=eror msg="Unexpected error when getting snapshot" error="unknown ancestor" blockNumber=34,062,286 blockHash=0x8815d752f056374aac5017e3dcebbde761a921ecc37e0267004a15674af5e8de
t=2023-12-10T03:53:04+0000 lvl=info msg="Reset to block with genesis state"      number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b
t=2023-12-10T03:53:04+0000 lvl=info msg="Rewound to block with state"            number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b
t=2023-12-10T03:53:05+0000 lvl=info msg="Loaded most recent local block"         number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b root=0x919fcc7ad870b53db0aa76eb588da06bacb6d230195100699fc928511003b422 td=1          age=3y8mo1w
t=2023-12-10T03:53:05+0000 lvl=info msg="Loaded most recent local finalized block" number=0          hash=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b root=0x919fcc7ad870b53db0aa76eb588da06bacb6d230195100699fc928511003b422 td=1          age=3y8mo1w

I downloaded the geth.fast.34152285.tar.zst file again, try again.

请阅读 README, 使用正确的启动参数

下面这个是我的启动项目:

--history.transactions=0 --syncmode=full --tries-verify-mode=none --pruneancient --db.engine=pebble

使用的版本是:

v1.3.4

好的,是我的启动选项没有搞好,我在此下载文件,来看一次。

群内已回复, 请在解决后关闭 issues, 如果尚未解决, 可以回复issues 或者群内 @我

原因是 docker 内使用了 --tries-verify-mode=local 参数

确定是启动的参数问题造成。已经能正常同步。