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
-
OP-Mainnet Archive node setup errorsWhen attempting to sync an op-mainnet archive node from bedrock data and an archival snapshot, the
This is apart of the Building a Node from Source guide at this step. Scripts:
This is the rollup config:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I see the issue and I'll work on fixing this in the docs! We're actually in the process of migrating our documentation website to: https://docs.optimism.io/ The data directory path in the I'll make those updates here: https://docs.optimism.io/node-operators/building-node/mainnet |
Beta Was this translation helpful? Give feedback.
-
Hey @lootboi, We hope your recent question was resolved to your satisfaction. Your feedback is invaluable and helps us improve our support services. Could you spare a moment to fill out a short feedback survey. Thank you for helping us improve our developer community. |
Beta Was this translation helpful? Give feedback.
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 thatop-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…