Skip to content

Get the op-node p2p info error #743

Open
@shaokun11

Description

@shaokun11

Troubleshooting Category

Add troubleshooting item to a brand new page

What page will this troubleshooting item live?

https://docs.optimism.io/builders/node-operators/json-rpc#opp2p_peerstats

describe the problem from a developer's perspective, including any error message received

With cli cast rpc opp2p_discoveryTable --rpc-url http://localhost:9545 , it return server returned an error response: error code -32601: the method opp2p_discoveryTable does not exist/is not available. We use cast rpc optimism_syncStatus --rpc-url http://localhost:9545, it will correctly get the output

explain the solution to the problem identified above, use step-by-step instructions when possible

I think I maybe loss some option when start op-node,this is the start cli:
./bin/op-node
--l2=http://localhost:8551
--l2.jwt-secret=./jwt.txt
--sequencer.enabled
--sequencer.l1-confs=5
--verifier.l1-confs=4
--rollup.config=./rollup.json
--rpc.addr=0.0.0.0
--rpc.port=8547
--p2p.disable
--rpc.enable-admin
--p2p.sequencer.key=$GS_SEQUENCER_PRIVATE_KEY
--l1=$L1_RPC_URL
--l1.rpckind=$L1_RPC_KIND

Or how do I get the opp2p info ?

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    community-requestdocs updates requested by community or OP collectivedocumentationImprovements or additions to documentationtroubleshootingsuggest new troubleshooting item or revise an existing item

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions