smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
336 stars 115 forks source link

Op-node not starting up...application failed #101

Closed voltagebots closed 1 year ago

voltagebots commented 1 year ago

when i run the docker-compose file for goerli testnet, op-node shows the error below

2023-10-25 08:07:24.043 | t=2023-10-25T07:07:24+0000 lvl=info msg="Initializing Rollup Node" |  
-- | -- | --
  |   | 2023-10-25 08:06:23.499 | t=2023-10-25T07:06:23+0000 lvl=crit msg="Application failed"                 message="incorrect L2 RPC chain id, expected from config 420, obtained from client 5" |  
  |   | 2023-10-25 08:06:23.499 | t=2023-10-25T07:06:23+0000 lvl=eror msg="Unable to create the rollup node"   error="incorrect L2 RPC chain id, expected from config 420, obtained from client 5" |  
  |   | 2023-10-25 08:06:23.499 | t=2023-10-25T07:06:23+0000 lvl=eror msg="Error initializing the rollup node" err="incorrect L2 RPC chain id, expected from config 420, obtained from client 5"
voltagebots commented 1 year ago

here is my config: cc: @smartcontracts please assist

  op-node:
    image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.1.0
    container_name: op-node
    hostname: op-node
    restart: always
    command: op-node --l1= https://endpoints.omniatech.io/v1/op/goerli/public  --l1.rpckind=any --l2=http://op-geth:8551 --l1.trustrpc --network=goerli --metrics.addr=0.0.0.0 --metrics.enabled --metrics.port=7300 --rpc.addr=0.0.0.0 --rpc.port=9545 --l2.jwt-secret=/var/jwt.txt
    ports:
      - 9003:9003
      - 9545:9545
    volumes:
      - /mnt/disks/optimism/jwt.txt:/var/jwt.txt
    user: '0'
  op-geth:
    image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:v1.101105.3
    container_name: op-geth
    # stop_grace_period: 5m
    hostname: op-geth
    env_file:
      - /mnt/disks/optimism/op-geth.env
    restart: always
    command: --goerli --datadir=/geth --rollup.sequencerhttp="$BEDROCK_SEQUENCER_HTTP" --ws --ws.port=8546 --ws.addr=0.0.0.0 --ws.origins='*' --networkid=420 --http --http.port=8545 --http.addr=0.0.0.0 --http.vhosts='*' --http.corsdomain='*' --authrpc.addr=0.0.0.0 --authrpc.jwtsecret=/var/jwt.txt --syncmode=full --gcmode=archive --maxpeers=0 --nodiscover  --authrpc.port=8551 --authrpc.vhosts='*' --rollup.disabletxpoolgossip=true  --rollup.historicalrpc=http://l2geth:8547 --ws.api=debug,eth,txpool,net,engine,web3 --metrics 
    ports:
      - 8551:8551
      - 8545:8545
      - 8546:8546
      - 6060:6060
      - 30303:30303/udp
    volumes:
      - /mnt/disks/optimism/op-geth:/geth
      - /mnt/disks/optimism/jwt.txt:/var/jwt.txt
    user: '0'
smartcontracts commented 1 year ago

You're using an L2 RPC (https://endpoints.omniatech.io/v1/op/goerli/public ) as your L1 RPC, replace that with a Goerli node instead.