Go-ethereum: Error: no suitable peers available

Created on 19 Jul 2018  路  7Comments  路  Source: ethereum/go-ethereum

When I try to deploy I got Error: no suitable peers available. net.peerCount says 2. Node is synced and keeps syncing when new blocks arrive.

System information

Geth version: 1.8.12
OS & Version: Linux

les triage

Most helpful comment

+1

All 7 comments

+1

Same issue on Raspberry Pi when entering eth.getBalance(eth.accounts[0]) on geth Javascript console:

Error: no suitable peers available
    at web3.js:3143:20
    at web3.js:6347:15
    at web3.js:5081:36
    at <anonymous>:1:1

Edit: Started working shortly after posting. May have needed more time after finishing synchronization, but not entirely sure.

Restarting without using the argument --light fixed it for me.

u may add peer for light node. --> node list

Calling following API is giving me this error:

web3.eth.getCode("0x0....123")

Is there a way to get this API working? Do I need to add peers to my client?

Facing this now :
geth --rinkeby --rpc --syncmode "light" --rpcport 8543 --rpcaddr 127.0.0.1 --rpccorsdomain "*" --port "35555" --rpcapi "eth,net,web3,personal,miner,admin"

  • geth 1.9.0
    Started geth an hour back still no peers found
    Error: no suitable peers available
    at web3.js:3143:20
    at web3.js:6347:15
    at web3.js:5081:36
    at :1:1

The original issue is fairly old and a lot of work went into les, so I'd close this issue. As for Rinkeby, it probably could help to check port forwarding.

Was this page helpful?
0 / 5 - 0 ratings