-
Notifications
You must be signed in to change notification settings - Fork 896
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
Not giving any feedback not syncing, data-storage-format=BONSAI, sync-mode=X_SNAP #4408
Comments
I'm having a similar issue. The funny thing is... I have another machine where it is running perfectly. When I try to create a 2nd node, nothing happens (no blocks get imported). Even with a fresh clean database. The Target Chain Height information does get updated, and peers are connected. Local Chain Height is not increasing, keeps sitting at 0. In your logs I'm seeing : enode://b3383903f17699d47e54fe97c0449bbe94f1f5408bf6e821a2cb3fe46a183d1ff45189ea9885e8c49d31b31fc9a764eef809803b71488886dd999bb67fd5d6e9@127.0.0.1:30303) maybe p2phost has to be set to your external / 0.0.0.0 IP? |
There seems to be a problem with the connection to Teku:
This log message means that Teku is not calling Besu's API endpoints. Post merge Besu needs Teku to sync. It cannot do it without it. What are the Teku logs saying? Do you see any error? |
I'm having the same issue starting a fresh sync on Goerli, deleted the database and started from scratch and the sync just stops at block
Besu log just stays like this forever:
Using nimbus for the beacon client, tried both the latest version (
@daniellehrner can you please clarify the below?
Can't besu indepdentely sync the entire chain post merge? given that my goerli nimbus is still syncing could this be the issue why besu won't continue past block Edit: in addition, nimbus also spits these once in a while:
|
dropped teku in favor of nimbus. Teku failed to sync, nimbus already synced 40% without any hiccups. Besu displays the warning: @daniellehrner it seems just to be a warning it would get stuck with teku connected I had it connected but teku keeps failing. Had to switch to nimbus which is syncing for the last 10 hours already synced 40% without issues. I'll experiment with besu and nimbus when the sync completes. I had also a case of besu syncing normally a few days ago/before the merge but for some reason did not let it complete I think it froze my PC but not sure. Again I'll play with it after nimbus syncs |
besu keeps on displaying over and over again:
Teku is properly synced and is waiting for execution layer: Does Besu require a full synced validator node in order to import blocks? And what does the follwing message mean? |
I'm having this same problem. I'm wondering if we should make a new issue on here for it though as our issue seems quite different than above. Besu sync'd almost to full then I loaded the latest beacon chain state on teku using my nimbus node thats running on another machine (with geth) and ever since I've been stuck here. Teku says its waiting on besu while Besu does virtually nothing. |
I think besu requires a full validator node (teku). I removed my teku validator keys from the config to test. and besu is no longer syncing/importing blocks. Then i added my keys again (on the machine that was not syncing before) and it's starts importing blocks immediately. I guess this is how it's suppose to work... maybe someone can confirm? |
This is definitely not how its supposed to work. You are not required to be a validator in order to run a full node. You just need a beacon node and engine api configured (with the execution client). Where are you at in your sync? It's weird that importing validator keys made a difference, I may try generating/importing keys just to test behavior. |
@ibhagwan, @howardrcc, I am looking at geth/have it installed. I read in the geth documentation that the behavior is to sync up to the merge and then stall in till a consensus client is connected. I think that should be/is the case the case with besu. |
For those interested I was able to solve this, turns out Besu needs an in-sync consensus client in order to continue the sync past the "stuck" block and since my goerli nimbus sync was taking forever (testing on low-end home hardware) it didn't continue the sync. The solution is rather simple, I used "checkpoint sync" instead of regular sync, this way the node is first considered in sync and then downloads the history using backfill. For Nimbus, see how to use trusted node sync. |
I had already done this (loaded beacon state from my already sync'd nimbus on teku). It does appear my issue may have cleared up. I'm getting progress just need to work out memory allocation as I'm seeing some java out of memory errors. |
@proteanx are you using |
I had it set to less than 8gb but have since increased it. Hopefully that clears up any remaining issues. |
Update - still unable to fully sync. It appears it just never completes the Worldstate download. It imports blocks up to the current block and then just hangs while it downloads and then eventually it times out (you no longer see it in the log output). Any suggestions? Luckily my geth/nimbus is working fine so it's not critical to fix now but I was very interested in testing/using besu. |
exactly the same issue here. |
It appears that it's not possible to synchronize Besu post-merge independently as a standalone Execution Client at this time. Had a fully synchronized Besu node to post-merge then had to stop the service due to the Sync Committee Attestation issue and use Teku with Geth. When attempting to bring Besu back in synchronization in the background without Teku connected, the client does not process any ingress connections or attempt to make any outbound ones. I was able to spin up Besu in this manner pre-merge running simultaneously with Geth and have verified that it's not a network issue. |
It's not possible to run any execution client by themselves now, including geth. So I'm not sure what this is supposed to mean. |
Hmmm, it'd be nice to be able to run two execution clients concurrently with one as a backup. Guess that would be a feature request with the consensus client teams then. |
Without some fancy third party solution it's not possible to point a cl client at more than one el client, it's 1:1. Instead of having a cl client pointing to multiple el clients you now have to have a cl client for every el client and the failover is established at the validator client level, where you can point to multiple cl beacon nodes. |
Initial standalone (no beacon client) sync seems to be also affected. Very quick analysis:
...
|
To give an update. I've switched to geth and nimbus. I have to get things going since I have ETH that is staked. I will be playing around with besu and teku in the next few days. Will give an update |
This issue should be resolved with many peering changes we have made and also post-Merge networks not requiring a minimum of five peers. You can drop down the --fast-sync-min-peers flag to 1 or 2 and it should progress. I anticipate you will get many more peers on 22.10.0. @AntoBrajkovic |
Why should I use Besu instead GETH ? |
Description
Switching over from infura, prysm to besu and teku. Besu has locked my computer up twice although the bigger issue is what I brought up in the tittle not giving any feedback seeming not to sync since the database file is not getting bigger. Tried native and docker instances of besu have had the same issue of no progress. I might be missing something obvious
Steps to Reproduce (Bug)
sudo docker run --network="host" --user 1000:1000 --mount type=bind,source=/media/otna/besu/besuDatabase/,target=/var/lib/besu hyperledger/besu:latest --data-path=/var/lib/besu --data-storage-format=BONSAI --sync-mode=X_SNAP --engine-jwt-secret=/var/lib/besu/token.txt
Expected behavior: Besu to sync up with the EL
Actual behavior: Besu does nothing and sometimes freezes my machine
Frequency: Every time
Versions (Add all that apply)
Client:
Version: 20.10.12
API version: 1.41
Go version: go1.17.3
Git commit: 20.10.12-0ubuntu4
Built: Mon Mar 7 17:10:06 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.17.3
Git commit: 20.10.12-0ubuntu4
Built: Mon Mar 7 15:57:50 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.9-0ubuntu3
GitCommit:
runc:
Version: 1.1.0-0ubuntu1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
log:
otna@ethValidator:~$ sudo docker run --network="host" --user 1000:1000 --mount type=bind,source=/media/otna/besu/besuDatabase/,target=/var/lib/besu hyperledger/besu:latest --data-path=/var/lib/besu --data-storage-format=BONSAI --sync-mode=X_SNAP --engine-jwt-secret=/var/lib/besu/token.txt
2022-09-16 20:43:15.444+00:00 | main | INFO | Besu | Using LibEthPairings native alt bn128
2022-09-16 20:43:15.446+00:00 | main | INFO | Besu | Using the native implementation of the signature algorithm
2022-09-16 20:43:15.449+00:00 | main | INFO | Besu | Starting Besu version: besu/v22.7.2/linux-x86_64/openjdk-java-11
2022-09-16 20:43:15.685+00:00 | main | WARN | Besu | --rpc-http-host has been ignored because --rpc-http-enabled was not defined on the command line.
2022-09-16 20:43:15.688+00:00 | main | WARN | Besu | --rpc-http-host has been ignored because --rpc-http-enabled was not defined on the command line.
2022-09-16 20:43:15.689+00:00 | main | WARN | Besu | --graphql-http-host has been ignored because --graphql-http-enabled was not defined on the command line.
2022-09-16 20:43:15.690+00:00 | main | WARN | Besu | --rpc-ws-host has been ignored because --rpc-ws-enabled was not defined on the command line.
2022-09-16 20:43:15.691+00:00 | main | INFO | Besu | Static Nodes file = /var/lib/besu/static-nodes.json
2022-09-16 20:43:15.691+00:00 | main | INFO | StaticNodesParser | StaticNodes file /var/lib/besu/static-nodes.json does not exist, no static connections will be created.
2022-09-16 20:43:15.691+00:00 | main | INFO | Besu | Connecting to 0 static nodes.
2022-09-16 20:43:15.693+00:00 | main | INFO | Besu | Security Module: localfile
2022-09-16 20:43:15.703+00:00 | main | INFO | DatabaseMetadata | Lookup database metadata file in data directory: /var/lib/besu
2022-09-16 20:43:15.737+00:00 | main | INFO | RocksDBKeyValueStorageFactory | Existing database detected at /var/lib/besu. Version 2
2022-09-16 20:43:16.053+00:00 | main | INFO | KeyPairUtil | Loaded public key 0xb3383903f17699d47e54fe97c0449bbe94f1f5408bf6e821a2cb3fe46a183d1ff45189ea9885e8c49d31b31fc9a764eef809803b71488886dd999bb67fd5d6e9 from /var/lib/besu/key
2022-09-16 20:43:16.141+00:00 | main | INFO | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Frontier: 0, Homestead: 1150000, DaoRecoveryInit: 1920000, DaoRecoveryTransition: 1920001, Homestead: 1920010, TangerineWhistle: 2463000, SpuriousDragon: 2675000, Byzantium: 4370000, Petersburg: 7280000, Istanbul: 9069000, MuirGlacier: 9200000, Berlin: 12244000, London: 12965000, ArrowGlacier: 13773000, GrayGlacier: 15050000]
2022-09-16 20:43:16.156+00:00 | main | INFO | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Frontier: 0, Homestead: 1150000, DaoRecoveryInit: 1920000, DaoRecoveryTransition: 1920001, Homestead: 1920010, TangerineWhistle: 2463000, SpuriousDragon: 2675000, Byzantium: 4370000, Petersburg: 7280000, Istanbul: 9069000, MuirGlacier: 9200000, Berlin: 12244000, London: 12965000, ArrowGlacier: 13773000, GrayGlacier: 15050000]
2022-09-16 20:43:16.669+00:00 | main | INFO | EthPeers | Updating the default best peer comparator
2022-09-16 20:43:16.679+00:00 | main | INFO | BesuControllerBuilder | TTD difficulty is present, creating initial sync phase with transition to PoS support
2022-09-16 20:43:16.773+00:00 | main | INFO | TransitionBesuControllerBuilder | TTD present, creating DefaultSynchronizer that stops propagating after finalization
2022-09-16 20:43:16.806+00:00 | main | INFO | RunnerBuilder | Detecting NAT service.
2022-09-16 20:43:16.921+00:00 | main | INFO | Runner | Starting external services ...
2022-09-16 20:43:16.923+00:00 | main | INFO | JsonRpcService | Starting JSON-RPC service on 0.0.0.0:8551
2022-09-16 20:43:16.995+00:00 | vert.x-eventloop-thread-1 | INFO | JsonRpcService | JSON-RPC service started and listening on 0.0.0.0:8551
2022-09-16 20:43:16.998+00:00 | main | INFO | AutoTransactionLogBloomCachingService | Starting auto transaction log bloom caching service.
2022-09-16 20:43:16.998+00:00 | main | INFO | LogBloomCacheMetadata | Lookup cache metadata file in data directory: /var/lib/besu/caches
2022-09-16 20:43:17.002+00:00 | main | INFO | Runner | Starting Ethereum main loop ...
2022-09-16 20:43:17.003+00:00 | main | INFO | NatService | No NAT environment detected so no service could be started
2022-09-16 20:43:17.003+00:00 | main | INFO | NetworkRunner | Starting Network.
2022-09-16 20:43:17.004+00:00 | main | INFO | DefaultP2PNetwork | Starting DNS discovery with URL enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net
2022-09-16 20:43:17.039+00:00 | nioEventLoopGroup-2-1 | INFO | RlpxAgent | P2P RLPx agent started and listening on /0:0:0:0:0:0:0:0:30303.
2022-09-16 20:43:17.040+00:00 | main | INFO | PeerDiscoveryAgent | Starting peer discovery agent on host=0.0.0.0, port=30303
2022-09-16 20:43:17.065+00:00 | vert.x-eventloop-thread-1 | INFO | VertxPeerDiscoveryAgent | Started peer discovery agent successfully, on effective host=0:0:0:0:0:0:0:0%0 and port=30303
2022-09-16 20:43:17.066+00:00 | vert.x-eventloop-thread-1 | INFO | PeerDiscoveryAgent | P2P peer discovery agent started and listening on /0:0:0:0:0:0:0:0%0:30303
2022-09-16 20:43:17.107+00:00 | vert.x-eventloop-thread-1 | INFO | PeerDiscoveryAgent | Writing node record to disk. NodeRecord{seq=7, publicKey=0x03b3383903f17699d47e54fe97c0449bbe94f1f5408bf6e821a2cb3fe46a183d1f, udpAddress=Optional[/127.0.0.1:30303], tcpAddress=Optional[/127.0.0.1:30303], asBase64=-Jq4QE1xe_IA6FF73O99sZsUfSl2DjL9ivP2ggv1HoLdZ3kaSEXVD0MKRJn7iE-kwwmH8U2zEaxukru-EOoSIExP_dQHg2V0aMrJhPxk7ASDEYwwgmlkgnY0gmlwhH8AAAGJc2VjcDI1NmsxoQOzODkD8XaZ1H5U_pfARJu-lPH1QIv26CGiyz_kahg9H4N0Y3CCdl-DdWRwgnZf, nodeId=0x2f5615cd34423b0d1711859103da5f7cc926708cae0e711ea24fb4c81c3eeb0c, customFields={tcp=30303, udp=30303, ip=0x7f000001, eth=[[0xfc64ec04, 0x118c30]], id=V4, secp256k1=0x03b3383903f17699d47e54fe97c0449bbe94f1f5408bf6e821a2cb3fe46a183d1f}}
2022-09-16 20:43:17.140+00:00 | main | INFO | DefaultP2PNetwork | Enode URL enode://b3383903f17699d47e54fe97c0449bbe94f1f5408bf6e821a2cb3fe46a183d1ff45189ea9885e8c49d31b31fc9a764eef809803b71488886dd999bb67fd5d6e9@127.0.0.1:30303
2022-09-16 20:43:17.141+00:00 | main | INFO | DefaultP2PNetwork | Node address 0x03da5f7cc926708cae0e711ea24fb4c81c3eeb0c
2022-09-16 20:43:17.142+00:00 | main | INFO | DefaultSynchronizer | Starting synchronizer.
2022-09-16 20:43:17.143+00:00 | main | INFO | SnapSyncDownloader | Starting sync.
2022-09-16 20:43:17.145+00:00 | main | INFO | WaitForPeersTask | Waiting for 5 total peers to connect. 0 peers currently connected.
2022-09-16 20:43:17.147+00:00 | main | INFO | Runner | Ethereum main loop is up.
2022-09-16 20:43:17.897+00:00 | Timer-0 | INFO | DNSResolver | Resolved 2409 nodes
2022-09-16 20:43:27.553+00:00 | EthScheduler-Timer-0 | INFO | WaitForPeersTask | Waiting for 5 total peers to connect. 4 peers currently connected.
2022-09-16 20:43:52.706+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 2 / 5 required peers currently available.
2022-09-16 20:43:57.708+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:02.709+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:07.710+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:12.711+00:00 | EthScheduler-Timer-0 | INFO | WaitForPeersTask | Waiting for 5 total peers to connect. 4 peers currently connected.
2022-09-16 20:44:17.316+00:00 | nioEventLoopGroup-3-3 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:22.316+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:27.318+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:32.319+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:37.321+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:42.322+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:47.323+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:44:52.323+00:00 | EthScheduler-Timer-0 | INFO | WaitForPeersTask | Waiting for 5 total peers to connect. 4 peers currently connected.
2022-09-16 20:45:00.584+00:00 | nioEventLoopGroup-3-10 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:05.584+00:00 | EthScheduler-Timer-0 | INFO | WaitForPeersTask | Waiting for 5 total peers to connect. 4 peers currently connected.
2022-09-16 20:45:16.951+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:45:17.788+00:00 | nioEventLoopGroup-3-4 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:22.789+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:27.791+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:32.792+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:37.793+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:42.795+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:47.796+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:52.797+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:45:57.799+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:46:02.800+00:00 | EthScheduler-Timer-0 | INFO | FastSyncActions | Waiting for valid peers with chain height information. 4 / 5 required peers currently available.
2022-09-16 20:47:17.051+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:49:17.151+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:51:17.210+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:53:17.310+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:55:17.411+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:57:17.511+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 20:59:17.611+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:01:17.630+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:03:17.727+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:05:17.770+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:07:17.871+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:09:17.971+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
2022-09-16 21:11:18.072+00:00 | vert.x-eventloop-thread-0 | WARN | EngineExchangeTransitionConfiguration | not called in 120 seconds, consensus client may not be connected
The text was updated successfully, but these errors were encountered: