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

Builder not working #320

Closed
piwonskp opened this issue Oct 19, 2023 · 2 comments
Closed

Builder not working #320

piwonskp opened this issue Oct 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@piwonskp
Copy link
Contributor

piwonskp commented Oct 19, 2023

Config:

{
    "mev_type": "full",
    "participants": [
        {
            "el_client_type": "geth",
            "el_client_image": "ethpandaops/flashbots-builder:main-45e865e",
            "el_client_log_level": "",
            "cl_client_type": "lighthouse",
            "cl_client_image": "sigp/lighthouse:v4.5.0",
            "cl_client_log_level": "",
            "beacon_extra_params": [
                "--always-prepare-payload",
                "--prepare-payload-lookahead",
                "12000",
                "--disable-peer-scoring"
            ],
            "el_extra_params": [
                "--builder",
                "--builder.remote_relay_endpoint=http://mev-relay-api:9062",
                "--builder.beacon_endpoints=http://cl-1-lighthouse-geth:4000",
                "--builder.bellatrix_fork_version=0x30000038",
                "--builder.genesis_fork_version=0x10000038",
                "--builder.genesis_validators_root=GENESIS_VALIDATORS_ROOT_PLACEHOLDER",
                "--miner.extradata=The_Dev_version_of_builder",
                "--builder.algotype=greedy",
				"--metrics.builder=true"
            ],
            "validator_count": 64,
            "el_extra_env_vars": {
                "BUILDER_TX_SIGNING_KEY": "0xef5177cd0b6b21c87db5a0bf35d4084a8a57a9d6a064f86d51ac85f2b873a4e2"
            }
        }
    ]
}

Results in:

There was an error executing Starlark code 
An error occurred executing instruction (number 17) at [github.com/kurtosis-tech/ethereum-package/src/el/geth/geth_launcher.star[113:31](http://github.com/kurtosis-tech/ethereum-package/src/el/geth/geth_launcher.star[113:31]:
  add_service(name="el-1-geth-lighthouse", config=ServiceConfig(image="ethpandaops/flashbots-builder:main-45e865e", ports={"engine-rpc": PortSpec(number=8551, transport_protocol="TCP", application_protocol=""), "metrics": PortSpec(number=9001, transport_protocol="TCP", application_protocol=""), "rpc": PortSpec(number=8545, transport_protocol="TCP", application_protocol=""), "tcp-discovery": PortSpec(number=30303, transport_protocol="TCP", application_protocol=""), "udp-discovery": PortSpec(number=30303, transport_protocol="UDP", application_protocol="")}, files={"/data": "sacred-morning"}, entrypoint=["sh", "-c"], cmd=["geth init --state.scheme=path --datadir=/execution-data /data/data/custom_config_data/genesis.json && geth --state.scheme=path  --verbosity=3 --datadir=/execution-data --networkid=3151908 --http --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.api=admin,engine,net,eth,web3,debug,flashbots --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api=admin,engine,net,eth,web3,debug,flashbots --ws.origins=* --allow-insecure-unlock --nat=extip:KURTOSIS_IP_ADDR_PLACEHOLDER --verbosity=3 --authrpc.port=8551 --authrpc.addr=0.0.0.0 --authrpc.vhosts=* --authrpc.jwtsecret=/data/data/jwt/jwtsecret --syncmode=full --rpc.allow-unprotected-txs --metrics --metrics.addr=0.0.0.0 --metrics.port=9001 --builder --builder.remote_relay_endpoint=http://mev-relay-api:9062 --builder.beacon_endpoints=http://cl-1-lighthouse-geth:4000 --builder.bellatrix_fork_version=0x30000038 --builder.genesis_fork_version=0x10000038 --builder.genesis_validators_root=GENESIS_VALIDATORS_ROOT_PLACEHOLDER --miner.extradata=The_Dev_version_of_builder --builder.algotype=greedy --metrics.builder=true"], env_vars={"BUILDER_TX_SIGNING_KEY": "0xef5177cd0b6b21c87db5a0bf35d4084a8a57a9d6a064f86d51ac85f2b873a4e2"}, private_ip_address_placeholder="KURTOSIS_IP_ADDR_PLACEHOLDER", max_cpu=1000, min_cpu=100, max_memory=1024, min_memory=256))
  Caused by: Unexpected error occurred starting service 'el-1-geth-lighthouse'
  Caused by: An error occurred waiting for all TCP and UDP ports to be open for service 'el-1-geth-lighthouse' with private IP '172.16.4.8'; this is usually due to a misconfiguration in the service itself, so here are the logs:
  == SERVICE 'el-1-geth-lighthouse' LOGS ===================================
  Incorrect Usage: flag provided but not defined: -state.scheme
  
  NAME:
     geth init - Bootstrap and initialize a new genesis block
  
  USAGE:
     geth init [command options] <genesisPath>
  
  DESCRIPTION:
     
     The init command initializes a new genesis block and definition for the network.
     This is a destructive action and changes the network in which you will be
     participating.
  
     It expects the genesis file as argument.
  
  OPTIONS:
     API AND CONSOLE
     
      --header value, -H value      
            Pass custom headers to the RPC server when using --remotedb or the geth attach
            console. This flag can be given multiple times.
     ETHEREUM
     
      --datadir value                (default: /root/.ethereum)
            Data directory for the databases and keystore
      --datadir.ancient value       
            Root directory for ancient data (default = inside chaindata)
      --db.engine value              (default: "leveldb")
            Backing database implementation to use ('leveldb' or 'pebble')
     LOGGING AND DEBUGGING
     
      --remotedb value              
            URL for remote database
     PERFORMANCE TUNING
     
      --cache.preimages              (default: false)
            Enable recording the SHA3/keccak preimages of trie keys
  flag provided but not defined: -state.scheme
  
  == FINISHED SERVICE 'el-1-geth-lighthouse' LOGS ===================================
  Caused by: An error occurred while waiting for all TCP and UDP ports to be open
  Caused by: Unsuccessful ports check for IP '172.16.4.8' and port spec '{privatePortSpec:0xc00028d600}', even after '240' retries with '500' milliseconds in between retries. Timeout '2m0s' has been reached
  Caused by: An error occurred while calling network address '172.16.4.8:30303' with port protocol 'TCP' and using time out '200ms'
  Caused by: dial tcp 172.16.4.8:30303: connect: no route to host

Error encountered running Starlark code.
@piwonskp piwonskp added the bug Something isn't working label Oct 19, 2023
@barnabasbusa
Copy link
Contributor

barnabasbusa commented Oct 20, 2023

Pls try to use the latest builder image from flashbots: flashbots/builder:latest (This is now the default image which should be working)

@barnabasbusa
Copy link
Contributor

Fixed the issue with #327. So it should now work for you even with the old image.

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