optimism: Fatal: No genesis block configured.

Describe the bug Docker compose error message: Fatal: No genesis block configured.

To Reproduce Steps to reproduce the behavior:

  1. Clone the project
  2. Go to infra/op-replica/docker-compose folder
  3. Copy default-mainnet.env file to .env
  4. Run docker-compose up

.env file:

COMPOSE_PROJECT_NAME=op-replica
COMPOSE_FILE=replica.yml:replica-shared.yml:replica-toml.yml
ETH_NETWORK=mainnet
DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT=https://mainnet.infura.io/v3/<infura_key>
DATA_TRANSPORT_LAYER__L2_RPC_ENDPOINT=https://mainnet.optimism.io
REPLICA_HEALTHCHECK__ETH_NETWORK_RPC_PROVIDER=https://mainnet.optimism.io
SEQUENCER_CLIENT_HTTP=https://mainnet.optimism.io
SHARED_ENV_PATH=../envs/mainnet
GCMODE=full
L2GETH_IMAGE_TAG=0.5.17
DTL_IMAGE_TAG=0.5.26
HC_IMAGE_TAG=1.0.4
L2GETH_HTTP_PORT=9991
L2GETH_WS_PORT=9992
DTL_PORT=7878
GETH_INIT_SCRIPT=check-for-chaindata-berlin.sh

Expected behavior Start to sync

System Specs:

  • OS: Ubuntu 18
  • Package Version (or commit hash): master

Error Log

l2geth-replica_1        | Chain config:
l2geth-replica_1        | INFO [04-11|14:06:12.196] Maximum peer count                       ETH=50 LES=0 total=50
l2geth-replica_1        | INFO [04-11|14:06:12.196] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
l2geth-replica_1        | INFO [04-11|14:06:12.197] Allocated cache and file handles         database=/geth/geth/chaindata cache=16.00MiB handles=16
l2geth-replica_1        | Fatal: No genesis block configured.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

So, apparently, the issue here was lack of RAM. This happens because the first time l2geth runs, it gets killed and then upon restart, it tries to fetch the genesis block which is not there. Increasing to 8GB RAM fixed the issue for us @0xsShady and @smartcontracts.