Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stuck at syncing #208

Open
1 task done
kugimiya530 opened this issue Dec 4, 2024 · 5 comments
Open
1 task done

stuck at syncing #208

kugimiya530 opened this issue Dec 4, 2024 · 5 comments
Assignees

Comments

@kugimiya530
Copy link

Describe the bug

after stage1 , it's start spaming same message and didn't syncing

Steps to reproduce

  1. Download the "full node" snapshot
  2. start the node with --full --bsc --datadir ./data
  3. after stage1, the stage2 was stuck for a while , and same message spaming

Node logs

Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.397114Z  INFO Received headers total=10000 from_block=41201594 to_block=41191595
Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.413985Z  INFO Received headers total=10000 from_block=41191594 to_block=41181595
Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.427337Z  INFO Received headers total=10000 from_block=41181594 to_block=41171595
Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.435481Z  INFO Received headers total=10000 from_block=41171594 to_block=41161595
Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.440255Z  INFO Received headers total=10000 from_block=41161594 to_block=41151595
Dec 04 23:23:53 BSCReth bash[87348]: 2024-12-04T15:23:53.444564Z  INFO Received headers total=10000 from_block=41151594 to_block=41141595
Dec 04 23:23:54 BSCReth bash[87348]: 2024-12-04T15:23:54.451106Z  INFO Received headers total=10000 from_block=41141594 to_block=41131595
Dec 04 23:24:05 BSCReth bash[87348]: 2024-12-04T15:24:05.557051Z  INFO Status connected_peers=10 stage=Headers checkpoint=0 target=None
Dec 04 23:24:30 BSCReth bash[87348]: 2024-12-04T15:24:30.556326Z  INFO Status connected_peers=10 stage=Headers checkpoint=0 target=None
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.009697Z  INFO Received headers total=10000 from_block=41131594 to_block=41121595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.056774Z  INFO Received headers total=10000 from_block=41121594 to_block=41111595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.104483Z  INFO Received headers total=10000 from_block=41111594 to_block=41101595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.289569Z  INFO Received headers total=10000 from_block=41101594 to_block=41091595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.294069Z  INFO Received headers total=10000 from_block=41091594 to_block=41081595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.298753Z  INFO Received headers total=10000 from_block=41081594 to_block=41071595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.304590Z  INFO Received headers total=10000 from_block=41071594 to_block=41061595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.308541Z  INFO Received headers total=10000 from_block=41061594 to_block=41051595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.312869Z  INFO Received headers total=10000 from_block=41051594 to_block=41041595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.321493Z  INFO Received headers total=10000 from_block=41041594 to_block=41031595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.337118Z  INFO Received headers total=10000 from_block=41031594 to_block=41021595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.344749Z  INFO Received headers total=10000 from_block=41021594 to_block=41011595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.348909Z  INFO Received headers total=10000 from_block=41011594 to_block=41001595
Dec 04 23:24:33 BSCReth bash[87348]: 2024-12-04T15:24:33.352668Z  INFO Received headers total=10000 from_block=41001594 to_block=40991595
Dec 04 23:24:36 BSCReth bash[87348]: 2024-12-04T15:24:36.983875Z  INFO Received headers total=10000 from_block=40991594 to_block=40981595
Dec 04 23:24:55 BSCReth bash[87348]: 2024-12-04T15:24:55.556823Z  INFO Status connected_peers=11 stage=Headers checkpoint=0 target=None
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.064555Z  INFO Received headers total=10000 from_block=40981594 to_block=40971595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.114089Z  INFO Received headers total=10000 from_block=40971594 to_block=40961595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.183621Z  INFO Received headers total=10000 from_block=40961594 to_block=40951595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.229633Z  INFO Received headers total=10000 from_block=40951594 to_block=40941595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.265489Z  INFO Received headers total=10000 from_block=40941594 to_block=40931595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.317241Z  INFO Received headers total=10000 from_block=40931594 to_block=40921595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.351354Z  INFO Received headers total=10000 from_block=40921594 to_block=40911595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.376669Z  INFO Received headers total=10000 from_block=40911594 to_block=40901595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.398308Z  INFO Received headers total=10000 from_block=40901594 to_block=40891595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.416007Z  INFO Received headers total=10000 from_block=40891594 to_block=40881595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.438126Z  INFO Received headers total=10000 from_block=40881594 to_block=40871595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.446765Z  INFO Received headers total=10000 from_block=40871594 to_block=40861595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.454903Z  INFO Received headers total=10000 from_block=40861594 to_block=40851595
Dec 04 23:25:13 BSCReth bash[87348]: 2024-12-04T15:25:13.643396Z  INFO Received headers total=10000 from_block=40851594 to_block=40841595
Dec 04 23:25:17 BSCReth bash[87348]: 2024-12-04T15:25:17.970444Z  INFO Received headers total=10000 from_block=40841594 to_block=40831595
Dec 04 23:25:20 BSCReth bash[87348]: 2024-12-04T15:25:20.556015Z  INFO Status connected_peers=10 stage=Headers checkpoint=0 target=None
Dec 04 23:25:45 BSCReth bash[87348]: 2024-12-04T15:25:45.556744Z  INFO Status connected_peers=10 stage=Headers checkpoint=0 target=None
Dec 04 23:26:10 BSCReth bash[87348]: 2024-12-04T15:26:10.556122Z  INFO Status connected_peers=13 stage=Headers checkpoint=0 target=None
Dec 04 23:26:35 BSCReth bash[87348]: 2024-12-04T15:26:35.556855Z  INFO Status connected_peers=14 stage=Headers checkpoint=0 target=None
Dec 04 23:27:00 BSCReth bash[87348]: 2024-12-04T15:27:00.557032Z  INFO Status connected_peers=15 stage=Headers checkpoint=0 target=None
Dec 04 23:27:25 BSCReth bash[87348]: 2024-12-04T15:27:25.556262Z  INFO Status connected_peers=16 stage=Headers checkpoint=0 target=None
Dec 04 23:27:50 BSCReth bash[87348]: 2024-12-04T15:27:50.556954Z  INFO Status connected_peers=16 stage=Headers checkpoint=0 target=None
Dec 04 23:28:15 BSCReth bash[87348]: 2024-12-04T15:28:15.556117Z  INFO Status connected_peers=17 stage=Headers checkpoint=0 target=None
Dec 04 23:28:40 BSCReth bash[87348]: 2024-12-04T15:28:40.556767Z  INFO Status connected_peers=17 stage=Headers checkpoint=0 target=None
Dec 04 23:29:05 BSCReth bash[87348]: 2024-12-04T15:29:05.556859Z  INFO Status connected_peers=19 stage=Headers checkpoint=0 target=None
Dec 04 23:29:30 BSCReth bash[87348]: 2024-12-04T15:29:30.556321Z  INFO Status connected_peers=19 stage=Headers checkpoint=0 target=None
Dec 04 23:29:55 BSCReth bash[87348]: 2024-12-04T15:29:55.556853Z  INFO Status connected_peers=21 stage=Headers checkpoint=0 target=None
Dec 04 23:30:20 BSCReth bash[87348]: 2024-12-04T15:30:20.556769Z  INFO Status connected_peers=20 stage=Headers checkpoint=0 target=None
Dec 04 23:30:45 BSCReth bash[87348]: 2024-12-04T15:30:45.556994Z  INFO Status connected_peers=20 stage=Headers checkpoint=0 target=None
Dec 04 23:31:10 BSCReth bash[87348]: 2024-12-04T15:31:10.556289Z  INFO Status connected_peers=21 stage=Headers checkpoint=0 target=None
Dec 04 23:31:35 BSCReth bash[87348]: 2024-12-04T15:31:35.556442Z  INFO Status connected_peers=21 stage=Headers checkpoint=0 target=None
Dec 04 23:32:00 BSCReth bash[87348]: 2024-12-04T15:32:00.556553Z  INFO Status connected_peers=21 stage=Headers checkpoint=0 target=None
Dec 04 23:32:25 BSCReth bash[87348]: 2024-12-04T15:32:25.556618Z  INFO Status connected_peers=22 stage=Headers checkpoint=0 target=None
Dec 04 23:32:50 BSCReth bash[87348]: 2024-12-04T15:32:50.556996Z  INFO Status connected_peers=23 stage=Headers checkpoint=0 target=None
Dec 04 23:33:15 BSCReth bash[87348]: 2024-12-04T15:33:15.556694Z  INFO Status connected_peers=23 stage=Headers checkpoint=0 target=None
Dec 04 23:33:40 BSCReth bash[87348]: 2024-12-04T15:33:40.556469Z  INFO Status connected_peers=22 stage=Headers checkpoint=0 target=None
Dec 04 23:34:05 BSCReth bash[87348]: 2024-12-04T15:34:05.556157Z  INFO Status connected_peers=23 stage=Headers checkpoint=0 target=None
Dec 04 23:34:30 BSCReth bash[87348]: 2024-12-04T15:34:30.556665Z  INFO Status connected_peers=23 stage=Headers checkpoint=0 target=None
Dec 04 23:34:55 BSCReth bash[87348]: 2024-12-04T15:34:55.556725Z  INFO Status connected_peers=22 stage=Headers checkpoint=0 target=None

Platform(s)

Linux (x86)

What version/commit are you on?

reth-bsc-cli Version: 1.0.7
Commit SHA: c868b94

What database version are you on?

root@BSCReth ~/Desktop/RETH # bsc-reth db version
2024-12-04T15:55:54.121228Z INFO Initialized tracing, debug log directory: /root/.cache/reth/logs/bsc
Error: Datadir does not exist: "/root/.local/share/reth/bsc"

Location:
/project/crates/cli/commands/src/db/mod.rs:76:9

Which chain / network are you on?

bsc mainnet

What type of node are you running?

Full via --full flag

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@STdevK
Copy link

STdevK commented Dec 6, 2024

@kugimiya530 please join the TG channel if you still have problem with Reth BSC: https://t.me/+M9D9Eo7sMj4wNDI1

@kugimiya530
Copy link
Author

kugimiya530 commented Dec 6, 2024 via email

@argakiig
Copy link
Contributor

I had a similar issue on the more recent v1.1.0 build, running a default archive node. We were following the head when the node rolled back to block 45164942 at which point it seemingly was stuck downloading headers while trying to catch up with the head

ERROR Snapshot not found err=unknown header [hash=0xb24ef52b19f960c4923f01f9474808dbf60676bbdc521efb41b46672ba6e96be]

After restarting the node seemed to get in a loop ending with the following

reth-bsc-node-1  | 2024-12-26T21:21:21.591563Z ERROR Snapshot not found err=unknown header [hash=0xb24ef52b19f960c4923f01f9474808dbf60676bbdc521efb41b46672ba6e96be]
reth-bsc-node-1  | 2024-12-26T21:21:21.592092Z  INFO Received forkchoice updated message when syncing head_block_hash=0xb14a84592feec9c4e57b03a5cd69b3d2a0d2ecffe8c0190486f2053883455496 safe_block_hash=0x0000000000000000000000000000000000000000000000000000000000000000 finalized_block_hash=0x0000000000000000000000000000000000000000000000000000000000000000
reth-bsc-node-1  | 2024-12-26T21:21:21.598965Z  WARN fatal error occurred while inserting downloaded block fatal=unknown header [hash=0xb24ef52b19f960c4923f01f9474808dbf60676bbdc521efb41b46672ba6e96be]
reth-bsc-node-1  | 2024-12-26T21:21:21.598971Z ERROR insert block fatal error fatal=unknown header [hash=0xb24ef52b19f960c4923f01f9474808dbf60676bbdc521efb41b46672ba6e96be]
reth-bsc-node-1  | 2024-12-26T21:21:21.599045Z ERROR Fatal error
reth-bsc-node-1  | 2024-12-26T21:21:21.599054Z ERROR Fatal error in consensus engine
reth-bsc-node-1  | 2024-12-26T21:21:21.599191Z ERROR shutting down due to error
reth-bsc-node-1  | Error: Fatal error in consensus engine
reth-bsc-node-1  |
reth-bsc-node-1  | Location:
reth-bsc-node-1  |     /app/crates/node/builder/src/launch/engine.rs:444:43

@j75689
Copy link
Collaborator

j75689 commented Dec 31, 2024

Hi @kugimiya530,

Is your node working properly now? According to the logs, it seems that the peer did not respond to the data

@j75689
Copy link
Collaborator

j75689 commented Dec 31, 2024

Hi @argakiig

I checked this hash, it does not exist in the bsc history block, maybe the peer returned the block body during a fork stage

This problem should be solved after restarting

Software fixes still need to be resolved later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants