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

blutgang doesn't finalize blocks with reth and nethermind #82

Open
nidhi-singh02 opened this issue May 23, 2024 · 9 comments
Open

blutgang doesn't finalize blocks with reth and nethermind #82

nidhi-singh02 opened this issue May 23, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@nidhi-singh02
Copy link

Describe the bug
I am running a custom network with multiple EL clients and a CL. Blutgang works with geth alone, but doesn't work with reth and nethermind even solo.

To Reproduce
Steps to reproduce the behavior:
Run a network with EL and CL clients and add blutgang as load balancer for JSON RPC endpoints.

Expected behavior
My blocks are not getting finalised via testing when using solo reth and solo nethermind.

Specs:

  • OS: Running in docker containers via kurtosis
  • Kernel: [e.g. Linux 6.2.0-27-generic]
  • Blutgang version: Used docker image both makemake1337/blutgang:latest and makemake1337/blutgang:master
  • Kurtosis version
    Blutgang options:
    Kept all the blutgang options by default as in kurtosis ethereum package. This is how config toml template looks like https://github.com/kurtosis-tech/ethereum-package/blob/main/static_files/blutgang-config/config.toml.tmpl
  • DB mode: HighThroughput
  • DB compression: no
  • Cache capacity: 1000000000
  • MA length: 100
  • RPCs used: reth and nethermind

Additional context
I also tried playing around with some parameters of toml file such as setting readonly flag in admin section to false and increasing the expected_block_time , health_check_ttl and ttl, but no luck.

@nidhi-singh02 nidhi-singh02 added the bug Something isn't working label May 23, 2024
@makemake-kbo
Copy link
Contributor

That shouldn't be happening. Internally Blutgang only uses methods supported by all EL clients.

Try the 0.3.5-debug-verbose docker image.

It should have more logging outputs that should help us debug this.

@nidhi-singh02
Copy link
Author

That shouldn't be happening. Internally Blutgang only uses methods supported by all EL clients.

Try the 0.3.5-debug-verbose docker image.

It should have more logging outputs that should help us debug this.

Sure, Let me run using this docker image. Thank you for pushing the image :)

Btw I am curious, is logging level option not available in the master image ?

@makemake-kbo
Copy link
Contributor

That shouldn't be happening. Internally Blutgang only uses methods supported by all EL clients.
Try the 0.3.5-debug-verbose docker image.
It should have more logging outputs that should help us debug this.

Sure, Let me run using this docker image. Thank you for pushing the image :)

Btw I am curious, is logging level option not available in the master image ?

No, its a compile time feature flag.

@nidhi-singh02
Copy link
Author

nidhi-singh02 commented May 24, 2024

I ran with the docker image, seems the chain head in blutgang is getting updated, not sure why BlockByNumber method from geth module does not shows the updated block, it is stuck at Block number 1 always, whereas BlockNumber works fine.

@makemake-kbo
Copy link
Contributor

I ran with the docker image, seems the chain head in blutgang is getting updated, not sure why BlockByNumber method from geth module does not shows the updated block, it is stuck at Block number 1 always, whereas BlockNumber works fine.

smells like a cache issue, try clearing it and see if that fixes it.

@nidhi-singh02
Copy link
Author

Are you referring to do_clear for cleaning the cache ?

@makemake-kbo
Copy link
Contributor

Are you referring to do_clear for cleaning the cache ?
@nidhi-singh02

yes, either that or deleting the database folder.

@makemake-kbo makemake-kbo self-assigned this Jun 20, 2024
@nidhi-singh02
Copy link
Author

I have set do_clear parameter to true in the toml file, still same issue with BlockByNumber using reth full node or nethermind full node. Only geth full node works.

@makemake-kbo
Copy link
Contributor

please try the 0.4.0 branch, if possible with debug-verbose on, or the 0.3.5-debug-verbose docker image. its hard to debug this issue without this context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants