Skip to content

op-node errors with: 'failed to setup: unable to create the rollup node: failed to init L2: incorrect L2 RPC chain id 1, expected 10' #79

Closed Answered by sbvegan
lootboi asked this question in Node Operators
Discussion options

You must be logged in to vote

Getting back to the originally reported issue. Let's take a look at the log message.

message="failed to setup: unable to create the rollup node: failed to init L2: incorrect L2 RPC chain id 1, expected 10"

This means that the --l2 parameter was pointing to a L1 node. The chain id of Ethereum is 1 and OP Mainnet is 10. So we take a look at that parameter.

--l2=ws://localhost:8551

The script looks right, this is default location for the authrpc host and port. So its pointed at op-geth, but there's something up. This must mean that op-geth started, but was not properly configured as a L2 node. If its started up without a L2 configuration, op-geth gets confused and just starts running as a L1…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sbvegan
Comment options

@sbvegan
Comment options

Answer selected by sbvegan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node-operator Questions relating to running a rollup node on OP Mainnet/Testnet.
2 participants