solana-labs / solana

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://solanalabs.com
Apache License 2.0
13.2k stars 4.28k forks source link

No RPC node find in the cluster. #26551

Closed jasoncsli closed 2 years ago

jasoncsli commented 2 years ago

Problem

My mainnet node can't find any rpc node to fetch the snapshot.

solana-validator \
--identity /data/solana/key.json \
--log /data/solana/ledger/solana-logs/solana.log \
--ledger /data/solana/ledger \
--accounts /data/solana/ledger/accounts/accounts \
--accounts-index-path /data/solana/ledger/accounts/index \
--accounts-index-memory-limit-mb 20000 \
--snapshots /data/solana/ledger/snapshot-dir \
--entrypoint entrypoint.mainnet-beta.solana.com:8001 \
--entrypoint entrypoint2.mainnet-beta.solana.com:8001 \
--entrypoint entrypoint3.mainnet-beta.solana.com:8001 \
--entrypoint entrypoint4.mainnet-beta.solana.com:8001 \
--entrypoint entrypoint5.mainnet-beta.solana.com:8001 \
--expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
--dynamic-port-range 8000-8100 \
--rpc-port 8899 \
--limit-ledger-size 700000000 \
--known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \
--known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \
--known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \
--known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \
--only-known-rpc \
--no-voting \
--enable-rpc-transaction-history \
--no-poh-speed-test \
--no-port-check \
--account-index spl-token-owner \
--wal-recovery-mode skip_any_corrupted_record \
--full-rpc-api \
--enable-cpi-and-log-storage
[2022-07-11T08:49:44.403414529Z INFO  solana_validator::bootstrap] Searching for an RPC service with shred version 51382 (Retrying: Wait for known rpc peers)...
[2022-07-11T08:49:44.403417172Z INFO  solana_validator::bootstrap] Total 0 RPC nodes found. 0 known, 0 blacklisted
[2022-07-11T08:49:45.403497028Z INFO  solana_validator::bootstrap::with_incremental_snapshots]
    RPC Address       |Age(ms)| Node identifier                              | Version | RPC  |PubSub|ShredVer
    ------------------+-------+----------------------------------------------+---------+------+------+--------
    RPC Enabled Nodes: 0
[2022-07-11T08:50:02.471662997Z INFO  solana_gossip::cluster_info]
    IP Address        |Age(ms)| Node identifier                              | Version |Gossip|TPUvote| TPU  |TPUfwd| TVU  |TVUfwd|Repair|ServeR|ShredVer
    ------------------+-------+----------------------------------------------+---------+------+------+-------+------+------+------+------+------+--------
    18.138.241.136  me|  2300 | DeuN2DTxRuZ165CBxXQ4b3Xtz3zJ3eBNuN5kvvYaW89P | 1.10.30 | 8000 | none | none | none | none | none | none | none | 51382
    145.40.125.95     |  3007 | 6yWrQvwJEGjLRnTsL7YySReSMEk9PpWWJTALcKw5Kbvi |    -    | 8001 | none | none | none | none | none | none | none | 51382
    147.75.63.147     | 160097 | DF1iB5ib1XfVB923NYP4CCzMQ7HsCXWaVkYv66cS3H1Z |    -    | 8000 | none | none | none | none | none | none | none | 51382
    145.40.77.67      | 160097 | 4CTAFwtdoKd8b3W3HrjV9rhm2eZz4ES2NNfrapaRBZyj |    -    | 8001 | none | none | none | none | none | none | none | 51382
    107.155.66.138    | 160097 | D9nAA1dF3BG5C95gUc3B9HKtQj6ThoPUtBtmVrvgUvYY |    -    | 8001 | none | none | none | none | none | none | none | 51382
    162.55.91.134     | 160097 | Ftyixdk5GN5H7aUzzkNrh2SotVay9c7RNowtwevYksys |    -    | 8000 | none | none | none | none | none | none | none | 51382
    Nodes: 0
    Spies: 6

Proposed Solution

jasoncsli commented 2 years ago

When I spy the cluster, I only see myself. Did my server get banned by other validators? I have no idea what happened.

sudo solana-gossip spy --entrypoint entrypoint5.mainnet-beta.solana.com:8001

[2022-07-11T09:30:59.827223214Z INFO  solana_gossip::gossip_service] discovering...
    IP Address        |Age(ms)| Node identifier                              | Version |Gossip|TPUvote| TPU  |TPUfwd| TVU  |TVUfwd|Repair|ServeR|ShredVer
    ------------------+-------+----------------------------------------------+---------+------+------+-------+------+------+------+------+------+--------
    18.138.241.136  me|  1305 | 2ms9qnDZnNqMo6hYX1qHAHVnL3sFBZm1s2DzGzjKb7yY | 1.10.29 | 8000 | none | none | none | none | none | none | none | 0
    Nodes: 0
    Spies: 1
steveluscher commented 2 years ago

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Solana itself.

Questions like yours deserve a purpose-built Q&A forum. Unless you have evidence that this is a bug with Solana itself, please post your question to the Solana Stack Exchange using this link: https://solana.stackexchange.com/questions/ask