Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Unexpected number of transactions, cannot recover OVM Context, could not detect network #73

@dkrpt

Description

@dkrpt

Trying to set up an OE-replica node using a local geth docker container. Cloned op-replica repo, modified .env, replica.yml and replica-shared.yml but not sure everything is set up correctly. Added l1geth as a service into the op-replica docker compose file.

Right now I'm getting the following errors in my l2geth-replica logs:

l2geth-replica_1        | INFO [02-07|21:54:16.330] Connected to upstream service
data-transport-layer_1  | {"level":30,"time":1644270856334,"method":"GET","url":"/eth/syncing?backend=l2","elapsed":4,"msg":"Served HTTP Request"}
l2geth-replica_1        | INFO [02-07|21:54:16.335] Found latest index                       index=0
l2geth-replica_1        | INFO [02-07|21:54:16.335] Block not found, resetting index         new=<nil> old=0
l2geth-replica_1        | ERROR[02-07|21:54:16.335] Unexpected number of transactions in block count=0
l2geth-replica_1        | panic: Cannot recover OVM Context

and these in the replica-healthcheck logs

replica-healthcheck_1   | Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.4.4)
replica-healthcheck_1   |     at Logger.makeError (/opt/optimism/node_modules/@ethersproject/logger/lib/index.js:187:21)
replica-healthcheck_1   |     at Logger.throwError (/opt/optimism/node_modules/@ethersproject/logger/lib/index.js:196:20)
replica-healthcheck_1   |     at StaticJsonRpcProvider.<anonymous> (/opt/optimism/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:491:54)
replica-healthcheck_1   |     at step (/opt/optimism/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
replica-healthcheck_1   |     at Object.throw (/opt/optimism/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
replica-healthcheck_1   |     at rejected (/opt/optimism/node_modules/ethers/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
replica-healthcheck_1   |     at processTicksAndRejections (node:internal/process/task_queues:96:5) {
replica-healthcheck_1   |   reason: 'could not detect network',
replica-healthcheck_1   |   code: 'NETWORK_ERROR',
replica-healthcheck_1   |   event: 'noNetwork'
replica-healthcheck_1   | }

I'm using GETH_INIT_SCRIPT=l2geth-replica-start.sh in my .env

If I use GETH_INIT_SCRIPT=check-for-chaindata-berlin.sh I get

l2geth-replica_1        | /scripts/check-for-chaindata-berlin.sh: line 20: L2GETH_GENESIS_HASH: parameter not set
l2geth-replica_1        | /geth/geth/chaindata missing, running init
node_optimism_l2geth-replica_1 exited with code 2

Here are my set up files
env.env.txt
replica-shared.yml.txt
replica,yml.txt

And here is the full logs
all_logs.txt

any ideas what the issue might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions