lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Quick sync startup from checkpoint failed

Open chengxingxi opened this issue 10 months ago • 20 comments

Description

Failed to start beacon node

Version

version:Lighthouse v4.6.0-1be5253 command: ./lighthouse bn --network mainnet
--execution-endpoint http://localhost:8551
--execution-jwt /secrets/jwt.hex
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io
--http --datadir xxx image

chengxingxi avatar Mar 30 '24 06:03 chengxingxi

you need Lighthouse v5 or newer for mainnet

michaelsproul avatar Mar 30 '24 06:03 michaelsproul

you need Lighthouse v5 or newer for mainnet

I upgraded the lighthouse version to 5.1.3, but it still cannot start. image

chengxingxi avatar Mar 30 '24 09:03 chengxingxi

how many checkpoint sync URLs have you tried?

could there be something blocking the request, like a firewall?

michaelsproul avatar Mar 30 '24 13:03 michaelsproul

how many checkpoint sync URLs have you tried?

could there be something blocking the request, like a firewall?

I tried all mainnets except Nimbus. image I have successfully started it before, but after deleting all the previously downloaded data, problems occurred when I started it again. The configuration in the middle has not changed. By the way, I started it in a non-pledged form, and there is the following content in the command line: --disable-deposit-contract-sync

chengxingxi avatar Mar 30 '24 13:03 chengxingxi

Can you share the full command you start Lighthouse? The error code is Unexpected EOF. Do you see the same error code when you use a different checkpoint link?

chong-he avatar Mar 31 '24 23:03 chong-he

Can you share the full command you start Lighthouse? The error code is Unexpected EOF. Do you see the same error code when you use a different checkpoint link?

Ok. version:Lighthouse v5.1.3-3058b96 command: ./lighthouse bn --network mainnet --execution-endpoint http://localhost:8551/ --execution-jwt /secrets/jwt.hex --checkpoint-sync-url https://mainnet.checkpoint.sigp.io/ --disable-deposit-contract-sync --http --datadir xxx I changed the checkpoint link and still got this error, as shown below。The top of the picture is the command I used to start the beacon node. image

The picture below is the version information image

chengxingxi avatar Apr 01 '24 09:04 chengxingxi

Can you try to remove the ending slash in the url? i.e., --checkpoint-sync-url https://mainnet.checkpoint.sigp.io

chong-he avatar Apr 01 '24 09:04 chong-he

您可以尝试删除网址中的结尾斜杠吗? IE,--checkpoint-sync-url https://mainnet.checkpoint.sigp.io

There is no slash at the end of my command line, but there is a slash in the error message URL.

chengxingxi avatar Apr 01 '24 09:04 chengxingxi

That's strange. it should work and I just try that the checkpoint sync works. Do you have firewall blocks the connection as @michaelsproul sproul suggested?

Can you see if a simple command like below still return the same error: ./lighthouse bn --network mainnet --checkpoint-sync-url https://beaconstate.ethstaker.cc --purge-db

chong-he avatar Apr 01 '24 09:04 chong-he

That's strange. it should work and I just try that the checkpoint sync works. Do you have firewall blocks the connection as @michaelsproul sproul suggested?

Can you see if a simple command like below still return the same error: ./lighthouse bn --network mainnet --checkpoint-sync-url https://beaconstate.ethstaker.cc --purge-db

Yes, still the same error. image

chengxingxi avatar Apr 01 '24 12:04 chengxingxi

It seems to be that something is blocking the connection. Do you have another internet connection option available? Try another ISP option if there is

chong-he avatar Apr 01 '24 12:04 chong-he

@chengxingxi You can see what curl shows with this request, which is similar to what Lighthouse is trying to do.

curl -v -H "Accept: application/json" "https://mainnet.checkpoint.sigp.io/eth/v2/beacon/blocks/finalized"

As @chong-he says, it looks like a problem with your internet connection.

michaelsproul avatar Apr 02 '24 04:04 michaelsproul

@chengxingxi您可以看到curl此请求显示的内容,这与 Lighthouse 尝试做的类似。

curl -v -H "Accept: application/json" "https://mainnet.checkpoint.sigp.io/eth/v2/beacon/blocks/finalized"

作为@chong-he说,您的互联网连接似乎有问题。 The output result is like this: image

chengxingxi avatar Apr 02 '24 08:04 chengxingxi

The connection is stopped. The curl should return a long data with block info. From your screenshot it seems to indicate a connection to localhost (127.0.0.0)?

Do you have another internet option available? Try that.

chong-he avatar Apr 02 '24 08:04 chong-he

The connection is stopped. The curl should return a long data with block info. From your screenshot it seems to indicate a connection to localhost (127.0.0.0)?

Do you have another internet option available? Try that.

Thank you, the node started normally after I changed the network. I also want to ask a question. I used snapshot synchronization mode for almost a week, and the geth client kept displaying "Post-merge network, but no beacon client seen. Please launch one to follow the chain!" while the lighthouse client kept outputting. "INFO Searching for peers current_slot: 8768669, head_slot: 8768608, finalized_epoch: 274019, finalized_root: 0x581b…ef7e, peers: 1, service: slot_notifier" and similar content. When I use the eth.syncing command to check, it shows that the current block is 0, as shown below.And I check that 1.7T of data has been downloaded. I check the Ethereum official website and it shows that using geth to synchronize in snapshot mode requires about 500G of hard disk size. . How should I check the downloaded data and know the progress of synchronization? image

chengxingxi avatar Apr 02 '24 09:04 chengxingxi

Looks like the sync is not progressing. Do you have peers on geth and Lighthouse? If you view the geth and Lighthouse logs you can see the sync progress

chong-he avatar Apr 02 '24 09:04 chong-he

Looks like the sync is not progressing. Do you have peers on geth and Lighthouse? If you view the geth and Lighthouse logs you can see the sync progress

The beacon node has two log files, The content of discv5 is as follows: image The content of libp2p is as follows: image It seems like they are reporting errors and not synchronizing properly. geth did not find the log file

chengxingxi avatar Apr 02 '24 10:04 chengxingxi

How did you start Lighthouse and Geth? Please switch over to Discord for troubleshooting: https://discord.gg/cyAszAh

chong-he avatar Apr 02 '24 11:04 chong-he

How did you start Lighthouse and Geth? Please switch over to Discord for troubleshooting: https://discord.gg/cyAszAh

The commands to start lighthouse are the same as before. geth command: geth --cache 4096 --authrpc.addr localhost --authrpc.port 8551 --authrpc.vhosts localhost --authrpc.jwtsecret /secret/jwt.hex --datadir /private/mux/ethereum

chengxingxi avatar Apr 02 '24 11:04 chengxingxi

When you start geth it should show you the logs, post some logs and also Lighthouse beacon logs

chong-he avatar Apr 02 '24 14:04 chong-he

Closing as inactive. Feel free to reopen with more logs

michaelsproul avatar Jul 26 '24 11:07 michaelsproul