sigp / lighthouse

Ethereum consensus client in Rust
https://lighthouse.sigmaprime.io/
Apache License 2.0
2.91k stars 738 forks source link

Forget to update lighthouse before hard-fork #4202

Closed ethers-master closed 9 months ago

ethers-master commented 1 year ago

Description

I forget to update lighthouse before hard-fork, so now I try to update lighthouse and purge-db with --checkpoint-sync-url, but I see it display very much error and warnings. Please help.

My lighthouse script:


/usr/local/bin/lighthouse beacon_node --datadir /home/ethfullnode/lighthouse/beacon-node --http --eth1-endpoints http://127.0.0.1:8545 -
-execution-endpoint http://localhost:8551 --execution-jwt /home/ethfullnode/eth/jwtsecret --metrics --checkpoint-sync-url https://mainnet-checkpoint-sync.stakely.io --purge-db

Lighthouse error logs:

Apr 17 16:47:04 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:04.699 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:04 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:04.699 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:05 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:05.001 INFO Syncing                                 est_time: --, distance: 65 slots (13 mins), peers: 78, service: slot_notifier
Apr 17 16:47:05 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:05.001 WARN Syncing deposit contract block cache    est_blocks_remaining: initializing deposits, service: slot_notifier
Apr 17 16:47:12 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:12.185 WARN Execution endpoint is not synced        last_seen_block_unix_timestamp: 1681331507, endpoint: http://localhost:8551/, auth=true, service: deposit_contract_rpc
Apr 17 16:47:12 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:12.185 ERRO Error updating deposit contract cache   error: Failed to get remote head and new block ranges: EndpointError(FarBehind), retry_millis: 60000, service: deposit_contract_rpc
Apr 17 16:47:15 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:15.299 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:15 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:15.299 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:17 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:17.001 INFO Syncing                                 est_time: --, distance: 66 slots (13 mins), peers: 77, service: slot_notifier
Apr 17 16:47:17 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:17.001 WARN Syncing deposit contract block cache    est_blocks_remaining: initializing deposits, service: slot_notifier
Apr 17 16:47:19 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:19.743 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:19 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:19.743 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:29 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:29.001 INFO Syncing                                 est_time: --, distance: 67 slots (13 mins), peers: 78, service: slot_notifier
Apr 17 16:47:29 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:29.001 WARN Syncing deposit contract block cache    est_blocks_remaining: initializing deposits, service: slot_notifier
Apr 17 16:47:33 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:33.847 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:33 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:33.847 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:41 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:41.001 INFO Syncing                                 est_time: --, distance: 68 slots (13 mins), peers: 78, service: slot_notifier
Apr 17 16:47:41 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:41.001 WARN Syncing deposit contract block cache    est_blocks_remaining: initializing deposits, service: slot_notifier
Apr 17 16:47:41 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:41.350 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:41 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:41.350 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:48 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:48.718 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:47:48 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:48.718 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec
Apr 17 16:47:53 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:53.001 INFO Syncing                                 est_time: --, distance: 69 slots (13 mins), peers: 77, service: slot_notifier
Apr 17 16:47:53 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:47:53.001 WARN Syncing deposit contract block cache    est_blocks_remaining: initializing deposits, service: slot_notifier
Apr 17 16:48:00 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:48:00.432 WARN Execution engine call failed            error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }), service: exec
Apr 17 16:48:00 Ubuntu-2004-focal-64-minimal-hwe lighthouse[684739]: Apr 17 14:48:00.432 WARN Error whilst processing payload status  error: Api { error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8551), path: "/", query: None, fragment: None }, source: TimedOut }) }, service: exec

Geth node display warning:

Beacon client online, but no consensus updates received in a while. Please fix your beacon client to follow the chain!

Version

Please provide your Lighthouse and Rust version. Are you building from stable or unstable, which commit?

Lighthouse version

Lighthouse v4.0.1-a53830f
BLS library: blst
SHA256 hardware acceleration: true
Allocator: jemalloc
Specs: mainnet (true), minimal (false), gnosis (false)

GETH version

geth version 1.11.5-stable-a38f4108

Geth still syncing


> eth.blockNumber
17038218

I don't know what the error is with lighthouse start script, please help me check.

pawanjay176 commented 1 year ago

Please use the latest lighthouse patch fix release https://github.com/sigp/lighthouse/releases/tag/v4.0.2-rc.0

Restart both geth and lighthouse, not sure if you have tried this, but this should get you on the right chain. If this does not work, then please let me know, you might have to manually rewind geth to a pre capella block.

michaelsproul commented 9 months ago

Closing in favour of https://github.com/sigp/lighthouse/issues/4198