-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sidecar crashes when using Lighthouse with checkpoint sync enabled #5
Comments
There's a bug in the fix. ethnode-sidecar/clients/eth2.go Line 124 in 8116151
This is printing nil for us, because it's printing err in the happy case (no error).These are the logs:
|
Also, what's the point of the liveness probe? This is what we're seeing with the p2pNodePort turned on. There's lots of restarts.. which is puzzling because we thought having inbound connections should actually help with syncing.
And with the p2pNodePort turned off:
|
Hey @LuisNaldo7 as mentioned in many of our charts e.g.: https://github.com/stakewise/helm-charts/blob/main/charts/geth/values.yaml#L367 liveness/readniness probes should be disabled until node fully synced. Even if checkpoint sync support is implemented, the use of liveness probes will be meaningless, the pod will still restart due to the fact that the node is not synchronized, since it is not very desirable to restart nodes during synchronization, it is better to disable these checks completely until the node is synchronized, after sync you can enable it back and everything should work as expected |
Issue
According to the beacon api consensus clients that are not fully synced should return
when calling endpoint "/eth/v1/node/syncing".
This is not the case for Lighthouse when it's running with checkpoint sync enabled. Then the result is
which leads to the sidecar crashing.
ethnode-sidecar/clients/eth2.go
Line 103 in efa22eb
In "eth2.go" the client tries to receive the value from "data.sync_distance" which is not part of the object.
Solution
Even though the error is caused by lighthouse returning an object that is not defined in the official api an error handling and logging would be highly appreciated.
The text was updated successfully, but these errors were encountered: