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

bug: eth2-package has failing geth node #91

Closed
leeederek opened this issue May 4, 2023 · 1 comment · Fixed by #93 or #75
Closed

bug: eth2-package has failing geth node #91

leeederek opened this issue May 4, 2023 · 1 comment · Fixed by #93 or #75
Assignees
Labels
bug Something isn't working

Comments

@leeederek
Copy link
Contributor

here was an error executing Starlark code
An error occurred executing instruction (number 34) at github.com/kurtosis-tech/eth2-package/src/participant_network/el/geth/geth_launcher.star[74:28]:
  add_service(name="el-client-0", config=ServiceConfig(image="ethereum/client-go:latest", ports={"engine-rpc": PortSpec(number=8551, 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=""), "ws": PortSpec(number=8546, transport_protocol="TCP", application_protocol="")}, files={"/genesis": "el-genesis-data", "/prefunded-keys": "geth-prefunded-keys"}, entrypoint=["sh", "-c"], cmd=["geth init --datadir=/execution-data /genesis/output/genesis.json && cp -r /prefunded-keys/* /execution-data/keystore/ && { for i in $(seq 1 6); do echo \"password\" >> /tmp/password.txt; done; } && geth --verbosity=3 --unlock=0x878705ba3f8Bc32FCf7F4CAa1A35E72AF65CF766,0x4E9A3d9D1cd2A2b2371b8b3F489aE72259886f1A,0xdF8466f277964Bb7a0FFD819403302C34DCD530A,0x5c613e39Fc0Ad91AfDA24587e6f52192d75FBA50,0x375ae6107f8cC4cF34842B71C6F746a362Ad8EAc,0x1F6298457C5d76270325B724Da5d1953923a6B88 --password=/tmp/password.txt --datadir=/execution-data --networkid=3151908 --http --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.api=admin,engine,net,eth --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api=engine,net,eth --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=/genesis/output/jwtsecret --syncmode=full --bootnodes=\"\""], private_ip_address_placeholder="KURTOSIS_IP_ADDR_PLACEHOLDER"))
  Caused by: Unexpected error occurred starting service 'el-client-0'
  Caused by: An error occurred waiting for all TCP and UDP ports being open for service 'el-client-0' with private IP '10.2.0.5'; as the most common error is a wrong service configuration, here you can find the service logs:
  INFO [05-04|09:02:36.589] Maximum peer count                       ETH=50 LES=0 total=50
  INFO [05-04|09:02:36.590] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
  INFO [05-04|09:02:36.592] Set global gas cap                       cap=50,000,000
  INFO [05-04|09:02:36.592] Defaulting to pebble as the backing database
  INFO [05-04|09:02:36.592] Allocated cache and file handles         database=/execution-data/geth/chaindata cache=16.00MiB handles=16
  INFO [05-04|09:02:36.609] Opened ancient database                  database=/execution-data/geth/chaindata/ancient/chain readonly=false
  INFO [05-04|09:02:36.609] Writing custom genesis block
  INFO [05-04|09:02:36.616] Persisted trie from memory database      nodes=410 size=57.15KiB time="377.625µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=0 livesize=0.00B
  INFO [05-04|09:02:36.621] Successfully wrote genesis state         database=chaindata                      hash=482dd1..960441
  INFO [05-04|09:02:36.621] Defaulting to pebble as the backing database
  INFO [05-04|09:02:36.621] Allocated cache and file handles         database=/execution-data/geth/lightchaindata cache=16.00MiB handles=16
  INFO [05-04|09:02:36.640] Opened ancient database                  database=/execution-data/geth/lightchaindata/ancient/chain readonly=false
  INFO [05-04|09:02:36.640] Writing custom genesis block
  INFO [05-04|09:02:36.646] Persisted trie from memory database      nodes=410 size=57.15KiB time="348.084µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=0 livesize=0.00B
  INFO [05-04|09:02:36.649] Successfully wrote genesis state         database=lightchaindata                      hash=482dd1..960441
  INFO [05-04|09:02:36.693] Maximum peer count                       ETH=50 LES=0 total=50
  INFO [05-04|09:02:36.693] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
  INFO [05-04|09:02:36.696] Set global gas cap                       cap=50,000,000
  INFO [05-04|09:02:36.697] Allocated trie memory caches             clean=154.00MiB dirty=256.00MiB
  INFO [05-04|09:02:36.697] Using pebble as the backing database
  INFO [05-04|09:02:36.697] Allocated cache and file handles         database=/execution-data/geth/chaindata cache=512.00MiB handles=524,288
  INFO [05-04|09:02:36.718] Opened ancient database                  database=/execution-data/geth/chaindata/ancient/chain readonly=false
  Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks
  Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks
  Caused by: An error occurred while waiting for all TCP and UDP ports to be open
  Caused by: Unsuccessful ports check for IP '10.2.0.5' and port spec '{number:30303 transportProtocol:0 applicationProtocol:<nil> wait:0xc0002713d0}', even after '2' retries with '500' milliseconds in between retries. Timeout '15s' has been reached
  Caused by: An error occurred while calling network address '10.2.0.5:30303' with port protocol 'TCP' and using time out '14.49866325s'
  Caused by: dial tcp 10.2.0.5:30303: i/o timeout

Error encountered running Starlark code.
@leoporoli leoporoli self-assigned this May 4, 2023
@leoporoli leoporoli added the bug Something isn't working label May 4, 2023
@leoporoli
Copy link
Contributor

leoporoli commented May 4, 2023

Update: the error happens because the latest ethereum/client-go image was upgraded few hours ago and it is throwing a fatal error when the container is trying to start:

2023-05-04 09:52:06 INFO [05-04|12:52:06.527] Maximum peer count                       ETH=50 LES=0 total=50
2023-05-04 09:52:06 INFO [05-04|12:52:06.532] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
2023-05-04 09:52:06 INFO [05-04|12:52:06.544] Set global gas cap                       cap=50,000,000
2023-05-04 09:52:06 INFO [05-04|12:52:06.546] Defaulting to pebble as the backing database 
2023-05-04 09:52:06 INFO [05-04|12:52:06.546] Allocated cache and file handles         database=/execution-data/geth/chaindata cache=16.00MiB handles=16
2023-05-04 09:52:06 INFO [05-04|12:52:06.610] Opened ancient database                  database=/execution-data/geth/chaindata/ancient/chain readonly=false
2023-05-04 09:52:06 INFO [05-04|12:52:06.611] Writing custom genesis block 
2023-05-04 09:52:06 INFO [05-04|12:52:06.626] Persisted trie from memory database      nodes=410 size=57.15KiB time="723.623µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=0 livesize=0.00B
2023-05-04 09:52:06 INFO [05-04|12:52:06.638] Successfully wrote genesis state         database=chaindata                      hash=06b65f..3e12e0
2023-05-04 09:52:06 INFO [05-04|12:52:06.638] Defaulting to pebble as the backing database 
2023-05-04 09:52:06 INFO [05-04|12:52:06.638] Allocated cache and file handles         database=/execution-data/geth/lightchaindata cache=16.00MiB handles=16
2023-05-04 09:52:06 INFO [05-04|12:52:06.719] Opened ancient database                  database=/execution-data/geth/lightchaindata/ancient/chain readonly=false
2023-05-04 09:52:06 INFO [05-04|12:52:06.719] Writing custom genesis block 
2023-05-04 09:52:06 INFO [05-04|12:52:06.738] Persisted trie from memory database      nodes=410 size=57.15KiB time=5.62497ms   gcnodes=0 gcsize=0.00B gctime=0s livenodes=0 livesize=0.00B
2023-05-04 09:52:06 INFO [05-04|12:52:06.748] Successfully wrote genesis state         database=lightchaindata                      hash=06b65f..3e12e0
2023-05-04 09:52:06 INFO [05-04|12:52:06.824] Maximum peer count                       ETH=50 LES=0 total=50
2023-05-04 09:52:06 INFO [05-04|12:52:06.825] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
2023-05-04 09:52:06 INFO [05-04|12:52:06.827] Set global gas cap                       cap=50,000,000
2023-05-04 09:52:06 INFO [05-04|12:52:06.829] Allocated trie memory caches             clean=154.00MiB dirty=256.00MiB
2023-05-04 09:52:06 INFO [05-04|12:52:06.830] Using pebble as the backing database 
2023-05-04 09:52:06 INFO [05-04|12:52:06.830] Allocated cache and file handles         database=/execution-data/geth/chaindata cache=512.00MiB handles=524,288
2023-05-04 09:52:07 INFO [05-04|12:52:07.002] Opened ancient database                  database=/execution-data/geth/chaindata/ancient/chain readonly=false
2023-05-04 09:52:07 Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks
2023-05-04 09:52:07 Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks

it seems that the error cames from this conditions in the geth client: https://github.com/ethereum/go-ethereum/blame/ffda2c64c4260e1dd2cc2760faf1f8d33bdcf670/eth/ethconfig/config.go#L178

leoporoli added a commit that referenced this issue May 5, 2023
h4ck3rk3y added a commit that referenced this issue Sep 4, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.3.0](0.2.0...0.3.0)
(2023-09-03)


### ⚠ BREAKING CHANGES

* Uses the `plan` object. Users will have to update their Kurtosis CLI
to >= 0.63.0 and restart the engine

### Features

* add beacon-metrics-gazer + beacon-metrics-gazer grafana dashboard
([#114](#114))
([5540587](5540587))
* add deneb support
([#96](#96))
([07ed500](07ed500))
* add ethereumjs to nightly runners
([b86d886](b86d886))
* add ethereumjs to nightly runners
([#154](#154))
([b86d886](b86d886))
* add forkmon
([#107](#107))
([2a8ad19](2a8ad19))
* add light-beaconchain-explorer
([83e01a1](83e01a1))
* add light-beaconchain-explorer
([#125](#125))
([83e01a1](83e01a1))
* add multiple endpoint support for lightbeaconchain expolorer
([#151](#151))
([68572cd](68572cd))
* counting by summing each participant
([f9b638b](f9b638b))
* counting by summing each participant
([#112](#112))
([f9b638b](f9b638b))
* disable login for grafana
([4d7df4b](4d7df4b))
* disable login for grafana
([#122](#122))
([4d7df4b](4d7df4b))
* **formatting:** Add editorconfig, move everything to using tabs (4)
([#106](#106))
([cb0fc69](cb0fc69))
* launch the mock mev builder
([#94](#94))
([7fcd3e2](7fcd3e2))
* make it possible to have capella on epoch 0 or non 0
([#108](#108))
([1133497](1133497))
* make mev more configurable
([#164](#164))
([0165ef1](0165ef1))
* parameterize mev_boost and mev_builder images
([#171](#171))
([28adec1](28adec1))
* snooper support
([#121](#121))
([d2cccf4](d2cccf4))
* support full MEV
([#115](#115))
([e9e8c41](e9e8c41))
* use eth-network-package to spin up participant network
([#90](#90))
([91029ac](91029ac))


### Bug Fixes

* a bug around participants
([#129](#129))
([9382767](9382767))
* delay deneb to 500 epoch
([#102](#102))
([d07270b](d07270b))
* dont spin up extra el/cl client for mock-mev
([#158](#158))
([46d67fc](46d67fc))
* fix an arg parsing bug
([#135](#135))
([f084e7c](f084e7c))
* fix passed argument parsing
([#85](#85))
([a5d40e9](a5d40e9))
* fixed teku validator params for MEV
([#149](#149))
([b0079cf](b0079cf))
* fixing nimbus payload url
([#155](#155))
([55c1f59](55c1f59))
* geth failing after ethash package removal
([#93](#93))
([41e3d2c](41e3d2c)),
closes [#91](#91)
* make besu a bootnode
([29296cd](29296cd))
* make besu a bootnode
([#146](#146))
([29296cd](29296cd))
* make this work with kurtosis 0.65.0
([#73](#73))
([13c72ec](13c72ec))
* mention reth in package readme
([#133](#133))
([d11a689](d11a689))
* move parallel keystore generation to global config
([0789eed](0789eed))
* move parallel keystore generation to global config
([#130](#130))
([0789eed](0789eed))
* nightly tests that rely on etherejums get the right image
([#159](#159))
([97b4d33](97b4d33))
* Nimbus can't run when slot time is below 12s
([#100](#100))
([c38bff9](c38bff9))
* pass right mev-boost url to teku
([#147](#147))
([8bb75d9](8bb75d9))
* pin postgres package
([#174](#174))
([6b8d9d3](6b8d9d3))
* Remove nethermind restriction
([#126](#126))
([373c6c9](373c6c9))
* Switch default images to latest
([#99](#99))
([4a85c9d](4a85c9d))
* Update enclave name flag
([#87](#87))
([6531a7a](6531a7a))
* update genesis generator to support netherminds new format
([#68](#68))
([094352d](094352d))
* update nightly runner
([#163](#163))
([4eba65d](4eba65d))
* use eth maintained tx-fuzz
([#110](#110))
([b0903bd](b0903bd))
* use flashbots builder
([#162](#162))
([7a0c2d0](7a0c2d0))
* use mev-boost-relay by flashbots
([#141](#141))
([fca62fc](fca62fc))
* use named artifacts
([#69](#69))
([968f073](968f073)),
closes [#70](#70)
* Use plan object
([#65](#65))
([8e5d185](8e5d185))
* use v2 endoint to get the head block
([#153](#153))
([f084711](f084711))
* work with latest eth-network-package
([14dc957](14dc957))
* work with latest eth-network-package
([#116](#116))
([14dc957](14dc957))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gyanendra Mishra <[email protected]>
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
2 participants