algorand / go-algorand

Algorand's official implementation in Go.
https://developer.algorand.org/
Other
1.35k stars 473 forks source link

Node doesn't sync. #1190

Closed Myridium closed 3 years ago

Myridium commented 4 years ago

Subject of the issue

The node doesn't sync. Similar issue to #571, probably.

Your environment

Steps to reproduce

Install go-algorand as per instructions. Copy go-algorand/installer/genesis/mainnet/genesis.json to ~/.algorand/ and run goal node start -d ~/.algorand.

Expected behaviour

Node should sync blockchain.

Actual behaviour

Node does not sync blockchain.

May be related to this message in the log: got no DNS addrs for network mainnet.

Extra info

brianolson commented 4 years ago

Based on nslookup, sounds like all DNS queries are failing. Is there a firewall rule preventing it? (Maybe something blocking outbound or inbound UDP?)

Myridium commented 4 years ago

How would I test this, @brianolson ?

Myridium commented 4 years ago

Okay, I connected to a VPN and it seems to be syncing now. Why was this necessary exactly...?

Can we have goal node status actually report a very important aspect of the status of the node; namely that it cannot access the network? Very silly that it pretends everything is okay and just waiting.

ian-algorand commented 4 years ago

@tsachiherman, could you talk about our plans for addressing this for visibility here? Thanks!

tsachiherman commented 4 years ago

@Myridium , we have plans to extend the DNS setting to allow custom DNS servers, which I suspect would resolve the issue you see. Watch for changes in this issue to determine which release is going to receive these updates.

algorandskiy commented 3 years ago

Implemented in #1736. Now DNSSEC resolver attempts to use system resolver(s) first, then FallbackDNSResolverAddress from algod's config, and then defaults to hard-coded list of DNS servers.