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

Ethereum mainnet node is not synced well . Header download did not yield success #8689

Closed
etelpmoc opened this issue Nov 10, 2023 · 1 comment

Comments

@etelpmoc
Copy link

My Ethereum mainnet node is not synced from 18397760. It fails to download in snapshots stage.
I tried to restart many times, and waited for a few days, but nothing worked.
What might be the cause??

System information

Erigon version:
./erigon --version
erigon version 2.53.4-c4843268

OS & Version: Linux

Erigon Command (with flags/config):
./build/bin/erigon --datadir ../../erigon --torrent.download.rate=200mb --authrpc.addr=0.0.0.0 --authrpc.vhosts=* --authrpc.jwtsecret=../../jwt.hex --http.api eth,web3,net,debug,trace,txpool

Consensus Layer:
Prysm

Consensus Layer Command (with flags/config):
./prysm.sh --execution-endpoint=http://localhost:8551 --jwt-secret=../jwt.hex

Chain/Network:
Ethereum Mainnet

Expected behaviour

Blocks are synced normally

Actual behaviour

Blocks are not synced from 18307k
Downloader timeout (in Snapshots stage)
`

INFO[11-10|15:14:37.938] logging to file system                   log dir=../../erigon/logs file prefix=erigon log level=info json=false

INFO[11-10|15:14:37.938] Build info                               git_branch=release/2.53 git_tag=v2.53.4 git_commit=c4843268b788c0899cdad12d220fea4396afbb56

INFO[11-10|15:14:37.939] Starting Erigon on Ethereum mainnet... 

INFO[11-10|15:14:37.940] Maximum peer count                       ETH=100 total=100

INFO[11-10|15:14:37.941] starting HTTP APIs                       APIs=eth,web3,net,debug,trace,txpool

INFO[11-10|15:14:37.941] torrent verbosity                        level=WRN

INFO[11-10|15:14:40.046] Set global gas cap                       cap=50000000

INFO[11-10|15:14:40.110] [Downloader] Runnning with               ipv6-enabled=true ipv4-enabled=true download.rate=200mb upload.rate=4mb

INFO[11-10|15:14:40.111] Opening Database                         label=chaindata path=/home/tako/disk/sdk/client/erigon/chaindata

INFO[11-10|15:14:40.113] [db] chaindata                           sizeLimit=3TB pageSize=4096

INFO[11-10|15:14:40.114] Initialised chain configuration          config="{ChainID: 1, Homestead: 1150000, DAO: 1920000, Tangerine Whistle: 2463000, Spurious Dragon: 2675000, Byzantium: 4370000, Constantinople: 7280000, Petersburg: 7280000, Istanbul: 9069000, Muir Glacier: 9200000, Berlin: 12244000, London: 12965000, Arrow Glacier: 13773000, Gray Glacier: 15050000, Terminal Total Difficulty: 58750000000000000000000, Merge Netsplit: <nil>, Shanghai: 1681338455, Cancun: <nil>, Prague: <nil>, Engine: ethash}" genesis=0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3

INFO[11-10|15:15:06.572] Initialising Ethereum protocol           network=1

INFO[11-10|15:15:06.572] Disk storage enabled for ethash DAGs     dir=/home/tako/disk/sdk/client/erigon/ethash-dags count=2
18306999

INFO[11-10|15:15:08.000] Starting private RPC server              on=127.0.0.1:9090

INFO[11-10|15:15:08.000] new subscription to logs established 

INFO[11-10|15:15:08.000] rpc filters: subscribing to Erigon events 

INFO[11-10|15:15:08.000] New txs subscriber joined 

INFO[11-10|15:15:08.000] new subscription to newHeaders established 

INFO[11-10|15:15:08.002] HTTP endpoint opened                     url=127.0.0.1:8545 ws=false ws.compression=true grpc=false

INFO[11-10|15:15:08.002] Reading JWT secret                       path=../../jwt.hex

INFO[11-10|15:15:08.002] HTTP endpoint opened for Engine API      url=[::]:8551 ws=true ws.compression=true

WARN[11-10|15:15:08.008] NAT ExternalIP resolution has failed, try to pass a different --nat option err="no UPnP or NAT-PMP router discovered"

INFO[11-10|15:15:08.010] Started P2P networking                   version=67 self=enode://bce10d045abd8f5fd739efe36f7a2b535cadf6a6c63f45eefa9cd41579e6897d6e3f0357727cae853cb6ec41feffe794a5d26fae37648073fb09638648bd2c07@127.0.0.1:30304 name=erigon/v2.53.4-c4843268/linux-amd64/go1.21.3

INFO[11-10|15:15:08.011] [txpool] Started 
**WARN[11-10|15:15:08.011] NAT ExternalIP resolution has failed, try to pass a different --nat option err="no UPnP or NAT-PMP router discovered"**

INFO[11-10|15:15:08.013] Started P2P networking                   version=68 self=enode://bce10d045abd8f5fd739efe36f7a2b535cadf6a6c63f45eefa9cd41579e6897d6e3f0357727cae853cb6ec41feffe794a5d26fae37648073fb09638648bd2c07@127.0.0.1:30303 name=erigon/v2.53.4-c4843268/linux-amd64/go1.21.3

INFO[11-10|15:15:08.015] [1/12 Snapshots] Fetching torrent files metadata 

INFO[11-10|15:15:12.732] [snapshots] Blocks Stat                  blocks=18307k indices=18307k alloc=4.0GB sys=4.3GB

INFO[11-10|15:15:14.176] [EngineBlockDownloader] Downloading PoS headers... height=unknown hash=0x8cc9d77dc41c3e39c1a9101b649a66460b0f641471f2e2f500345eec886bd09f requestId=0

**WARN[11-10|15:16:44.180] [downloader] Timeout                     requestId=0 peerID=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000**

**WARN[11-10|15:16:44.188] [EngineBlockDownloader] Header download did not yield success** 

INFO[11-10|15:16:49.174] [NewPayload] Handling new payload        height=18539699 hash=0xdee37f56bed1ddca19ce5003f84c6ae3dbb107d019468f0f4295c7c093dac25e

INFO[11-10|15:16:49.174] [EngineBlockDownloader] Downloading PoS headers... height=unknown hash=0x27969b8e3ae1e1000a845503e00a55bb1762bc7bba13f333d617ef7a7ccdc242 requestId=0

INFO[11-10|15:16:49.491] [EngineBlockDownloader] Processing bodies... from=18539676 to=18539698

INFO[11-10|15:16:56.321] [EngineBlockDownloader] Processed        highest=18539698

INFO[11-10|15:16:56.321] Beginning downloaded blocks insertion 

INFO[11-10|15:16:56.619] [EngineBlockDownloader] Finished downloading blocks from=18539676 to=18539698

INFO[11-10|15:16:56.852] [EngineBlockDownloader] block verification skipped 

INFO[11-10|15:17:01.697] [NewPayload] Handling new payload        height=18539700 hash=0xbc726ce9254824732e65b0bff4500dba83e20bb1dcabc6a54a3f176d3af246a0

`

When I connect to execution client, it shows like this and the currentBlock and highestBlock field never grows.
eth.syncing
{ currentBlock: 18397760, healedBytecodeBytes: 0, healedBytecodes: 0, healedTrienodeBytes: 0, healedTrienodes: 0, healingBytecode: 0, healingTrienodes: 0, highestBlock: 18402233, stages: [{ block_number: "0x118ba40", stage_name: "Snapshots" }, { block_number: "0x118cbb9", stage_name: "Headers" }, { block_number: "0x0", stage_name: "BorHeimdall" }, { block_number: "0x118cbb9", stage_name: "BlockHashes" }, { block_number: "0x118ba40", stage_name: "Bodies" }, { block_number: "0x118ba40", stage_name: "Senders" }, { block_number: "0x118ba40", stage_name: "Execution" }, { block_number: "0x0", stage_name: "Translation" }, { block_number: "0x118ba40", stage_name: "HashState" }, { block_number: "0x118ba40", stage_name: "IntermediateHashes" }, { block_number: "0x118ba40", stage_name: "AccountHistoryIndex" }, { block_number: "0x118ba40", stage_name: "StorageHistoryIndex" }, { block_number: "0x118ba40", stage_name: "LogIndex" }, { block_number: "0x118ba40", stage_name: "CallTraces" }, { block_number: "0x118ba40", stage_name: "TxLookup" }, { block_number: "0x118ba40", stage_name: "Finish" }], startingBlock: 0, syncedAccountBytes: 0, syncedAccounts: 0, syncedBytecodeBytes: 0, syncedBytecodes: 0, syncedStorage: 0, syncedStorageBytes: 0 }

@yperbasis
Copy link
Member

Please re-open this issue if it still happens with v2.59.2 or 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

2 participants