node
node copied to clipboard
Increase global peer coverage
It's hard to looking peers:
base-geth-1 | INFO [03-25|07:56:33.173] Looking for peers peercount=0 tried=78 static=0
base-geth-1 | INFO [03-25|07:56:53.511] Looking for peers peercount=1 tried=79 static=0
base-geth-1 | INFO [03-25|07:57:03.647] Looking for peers peercount=0 tried=148 static=0
base-geth-1 | INFO [03-25|07:57:13.685] Looking for peers peercount=0 tried=114 static=0
base-geth-1 | INFO [03-25|07:57:23.717] Looking for peers peercount=0 tried=138 static=0
base-geth-1 | INFO [03-25|07:57:33.748] Looking for peers peercount=0 tried=92 static=0
base-geth-1 | INFO [03-25|07:57:43.799] Looking for peers peercount=0 tried=175 static=0
base-geth-1 | INFO [03-25|07:57:53.872] Looking for peers peercount=0 tried=139 static=0
base-geth-1 | INFO [03-25|07:58:04.108] Looking for peers peercount=0 tried=105 static=0
base-geth-1 | INFO [03-25|07:58:14.178] Looking for peers peercount=0 tried=117 static=0
base-geth-1 | INFO [03-25|07:58:24.263] Looking for peers peercount=0 tried=138 static=0
base-geth-1 | INFO [03-25|07:58:34.396] Looking for peers peercount=0 tried=115 static=0
base-geth-1 | INFO [03-25|07:58:44.417] Looking for peers peercount=0 tried=104 static=0
base-geth-1 | INFO [03-25|07:58:54.432] Looking for peers peercount=0 tried=89 static=0
base-geth-1 | INFO [03-25|07:59:04.459] Looking for peers peercount=0 tried=102 static=0
base-geth-1 | INFO [03-25|07:59:14.540] Looking for peers peercount=0 tried=145 static=0
base-geth-1 | INFO [03-25|07:59:24.541] Looking for peers peercount=0 tried=72 static=0
Very long time, still 0 peer
I'm experiencing the same issue. I haven't dug into the architecture of the project (apologies) but it seems that 9222 tcp/udp are the discovery ports for p2p.
I've opened these up on the node but I'm still experiencing the same issue as @TangMonk - long periods of 0 peers.
Thanks, will take a look. We set up some default public peers but perhaps they don't have enough capacity.
As for the question in the title of this issue, yes we have the static peers that should be provided by the bootnodes in the default config here. This is a recent update, so make sure your config has this too:
https://github.com/base-org/node/blob/18a9591d2b06ae90885d450e824c75ccd6d8582c/.env.mainnet#L3
@TangMonk @mariokami Can you all also please make sure TCP / UDP for P2P is forwarded for 30303 and let us know the results?
@TangMonk* @mariokami* Can you all also please make sure TCP / UDP for P2P is forwarded for 30303 and let us know the results?
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2c85eb19d42b base-node "bash ./op-node-entr…" 4 hours ago Up 4 hours 0.0.0.0:6060->6060/tcp, :::6060->6060/tcp, 0.0.0.0:7300->7300/tcp, :::7300->7300/tcp, 0.0.0.0:9222->9222/tcp, :::9222->9222/tcp, 0.0.0.0:9222->9222/udp, :::9222->9222/udp, 0.0.0.0:7545->8545/tcp, :::7545->8545/tcp base-node-1
add7fe3cae97 base-geth "bash ./geth-entrypo…" 4 hours ago Up About a minute 0.0.0.0:8545-8546->8545-8546/tcp, :::8545-8546->8545-8546/tcp, 0.0.0.0:30303->30303/tcp, :::30303->30303/tcp, 0.0.0.0:30303->30303/udp, :::30303->30303/udp, 0.0.0.0:7301->6060/tcp, :::7301->6060/tcp base-geth-1
and no firewall enabled on my machine
Thanks, will take a look. We set up some default public peers but perhaps they don't have enough capacity.
As for the question in the title of this issue, yes we have the static peers that should be provided by the bootnodes in the default config here. This is a recent update, so make sure your config has this too:
https://github.com/base-org/node/blob/18a9591d2b06ae90885d450e824c75ccd6d8582c/.env.mainnet#L3
All above of your provided static peers node are from USA. Not convenient for people from other areas
Could u please add some Asian static peers node, Hong Kong, Singapore, Japan is fine. I am living in China, Syncing node is so sloooow.
Thanks for the feedback; leaving this issue open to track the need for increasing global peer coverage to facilitate easier discovery.
@wbnns thanks for the response - 30303 is forwarded on this box, and I'll keep you posted with updates. I wasn't thinking about 30303 because it says in the docker-compose.yml file :
- 30403:30303 # P2P TCP (currently unused)
- 30403:30303/udp # P2P UDP (currently unused)
@TangMonk the bootnodes are just for discovery (ie: to provide addresses for other nodes via Kademlia DHT) so their geographic location shouldn't make too much of a difference. I'd be interested if there was something to suggest otherwise.
Is it 30303 (conflicting with Ethereum) or is it 30301 ? The static bootnodes list has 30301 for all their ports...
Are the boot nodes still overloaded? Same issue here with no connected nodes, no firewall.
Took about 1 hour for my node to find one peer, after that the whole chain sync took 1 hour as my L1 beacon and exec are local to the infrastructure.
To be fair it kind of feels like you dont need more than 1 peer to start syncing. Would it be too hard to provide a reliable list of 10 or so static nodes?
My server is in Germany, and all provided static nodes cannot be pinged. Looking for a peer for more than a day and the result is still 0.
The boot nodes don't (shouldn't) participate in peering iirc - they just provide pointers to additional peers via Kademlia DHT lookups.
If anyone has a moment and is interested there is Nebula which can crawl DHT networks for analysis. It would be interesting to see what the properties of the Base network are like.
We do provide a set of nodes available for peering, but apparently not enough. We will look into increasing capacity.
been running for days without being able to find a single peer
We do provide a set of nodes available for peering, but apparently not enough. We will look into increasing capacity.
So.... any new peers?
We cranked up our snapshot peering this week, let me know if you still have issues.
I thought this was the basic goal of base eth.
We cranked up our snapshot peering this week, let me know if you still have issues.
Yes, it's still an issue. I've been trying to resync after updating to .4 for about 4 days now. Its stuck at peercount=2 but makes no progress.
We have added one more machine with additional 500 peer handling capacity, though I am not sure if that will help, as the issue may be discovery related. Still digging into this.
One thing I found that helps with peer connectivity is to make sure inbound connections to 30303 are open, and you specify your external IP address appropriately (geth --nat=extip:[your external ip address]). Is that something your setup would allow?
We have added one more machine with additional 500 peer handling capacity, though I am not sure if that will help, as the issue may be discovery related. Still digging into this.
One thing I found that helps with peer connectivity is to make sure inbound connections to 30303 are open, and you specify your external IP address appropriately (geth --nat=extip:[your external ip address]). Is that something your setup would allow?
Wait, why 30303 ? That's Ethereum.
right op-geth is just a fork of geth, so it defaults to 30303 for p2p. You can override it to whatever port you prefer with the --port flag however.
now im in a situation where my chain finds 1-2 peers quick enough but it never syncs. just stays in looking for peers. why?
INFO [06-17|11:44:14.386] Looking for peers peercount=4 tried=95 static=0
INFO [06-17|11:44:24.467] Looking for peers peercount=4 tried=167 static=0
INFO [06-17|11:44:34.568] Looking for peers peercount=4 tried=160 static=0
INFO [06-17|11:44:44.766] Looking for peers peercount=4 tried=115 static=0
INFO [06-17|11:44:54.796] Looking for peers peercount=4 tried=156 static=0
INFO [06-17|11:45:04.845] Looking for peers peercount=4 tried=133 static=0
I'm here, and it's not syncing. Doesn't matter if I start with an empty data dir or with a snapshot. Using the 0.8.4 release.
Can you try opening inbound connections to port 30303 and specifying the HOST_IP appropriately?
Both are done and it's not starting the sync
Can you confirm you can "telnet <HOST_IP> 30303" (or whatever port you're using) to the node from an outside machine? I am having trouble replicating so wondering if your port is still blocked somehow. We're still working on allowing more peers to be found even if the port is blocked. Thanks for your patience.
I can confirm, yes. It's a kube cluster but the NodePort 30303 is being proxied through to the box, and the HOST_IP indeed can be telnet'd into 30303 from an external machine, and it arrives at the right pod.
Also I dont have issues finding peers. It's just not starting the sync.
I have 2 peers already within 2 minutes of restarting. Now running 0.8.3 I think. Same old.
Would you mind sharing your enode id? (Feel free to e-mail...) I can see if I can peer my node with it and see if that gets it syncing.
I also have 100+ peers connected now but it's not trying to catch up the chain. Can you advise of current configuration that might make this weird?