lit icon indicating copy to clipboard operation
lit copied to clipboard

Announcement error on mac when I run `./lit --tn3 true`

Open arunasank opened this issue 6 years ago • 9 comments

Steps to reproduce the bug:

I run ./lit --tn3 true (from the README) and ./lit --tn3 myfreenode.net (from the WALKTHROUGH) and get the following errors:

$./lit --tn3 true -v
passphrase:

2019/01/22 21:11:58.614771 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host
$./lit --tn3 fullnode.net -v
passphrase:

2019/01/22 21:13:23.410539 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:13:25.411942 [ERROR]dial tcp4 112.85.42.250:18333: i/o timeout
2019/01/22 21:13:25.411980 [ERROR] Tried to connect to all available node Addresses. Failed
2019/01/22 21:13:25.411997 [ERROR] Can't connect to host fullnode.net
2019/01/22 21:13:25.412007 [ERROR] NewWallit Hook.Start crash  Couldn't establish connection with node. Exiting.
2019/01/22 21:13:25.413569 [ERROR]Unsupported coin daemon or coin daemon not running
2019/01/22 21:13:25.413605 [ERROR]Unsupported coin daemon or coin daemon not running
2019/01/22 21:13:25.415415 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host

I checked to make sure this is not an issue with the number of open file descriptors on my machine. Do any of the developers run on a mac? Is there a workaround here? Am I missing something?

arunasank avatar Jan 22 '19 15:01 arunasank

@arunasank the argument passed to --tn3 must be a valid bitcoin core client's ip address (an example is seed.bitcoin.sipa.be). So running ./lit --tn3 seed.bitcoin.sipa.be -v should start the sync process.

Regarding the first issue, that's because true is not a valid ipv4 address and we do ipv4 lookups to resolve whether a given argument to --tn3 is an ip or a string (like true). So the error is to be expected since we do want to crash in case the argument passed is a random string like -- tn3 random.

Varunram avatar Jan 22 '19 15:01 Varunram

Thanks for the quick response @Varunram. How does that explain the error with fullnode.net?

Also, just tried using the example you suggested, and see the same error:

$./lit --tn3 seed.bitcoin.sipa.be -v
passphrase:

2019/01/22 21:31:09.045429 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:31:11.051033 [ERROR]dial tcp4 72.223.25.234:18333: i/o timeout
2019/01/22 21:31:11.051076 [ERROR] Tried to connect to all available node Addresses. Failed
2019/01/22 21:31:11.051097 [ERROR] Can't connect to host seed.bitcoin.sipa.be
2019/01/22 21:31:11.051109 [ERROR] NewWallit Hook.Start crash  Couldn't establish connection with node. Exiting.
2019/01/22 21:31:11.052722 [ERROR]Unsupported coin daemon or coin daemon not running
2019/01/22 21:31:11.052767 [ERROR]Unsupported coin daemon or coin daemon not running
2019/01/22 21:31:11.113924 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host

arunasank avatar Jan 22 '19 16:01 arunasank

Oops, that was for mainnet. Please try one of the following seeds (defined in coinparam/bitcoin.go):

testnet-seed.bitcoin.jonasschnelli.ch
seed.tbtc.petertodd.org
seed.testnet.bitcoin.sprovoost.nl
testnet-seed.bluematt.me

Varunram avatar Jan 22 '19 16:01 Varunram

Fails for all 4. 🙈 I checked coinparam/bitcoin.go, and it seems like these are the only 4 defined for testnet, with 18333. Do you have experience setting this up on a mac?

arunasank@Arunas-MacBook-Pro aruna-lit $ ./lit --tn3 testnet-seed.bitcoin.jonasschnelli.ch -v
passphrase:

2019/01/22 21:35:12.299018 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:35:13.022247 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host
^C
arunasank@Arunas-MacBook-Pro aruna-lit $ ./lit --tn3 seed.tbtc.petertodd.org -v
passphrase:

2019/01/22 21:35:30.431369 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:35:30.869118 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host
^C
arunasank@Arunas-MacBook-Pro aruna-lit $ ./lit --tn3 seed.testnet.bitcoin.sprovoost.nl -v
passphrase:

2019/01/22 21:35:41.741793 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:35:41.909326 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host
^C
arunasank@Arunas-MacBook-Pro aruna-lit $ ./lit --tn3 testnet-seed.bluematt.me -v
passphrase:

2019/01/22 21:35:53.927469 [WARN] failure loading exchange rates: open /Users/arunasank/.lit/rates.json: no such file or directory
2019/01/22 21:35:54.657125 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host

arunasank avatar Jan 22 '19 16:01 arunasank

Oh, I see what's the problem here. -v is a silent mode which prints only warnings and errors. Try -vvv, sync should be running fine.

Varunram avatar Jan 22 '19 16:01 Varunram

Nice, that worked! 🙂

I see a stream of block ingestions.

The Announcement error persists though:

2019/01/22 21:40:31.832963 [ERROR] Announcement error Get https://ipv4.myexternalip.com/raw: dial tcp: lookup ipv4.myexternalip.com: no such host

arunasank avatar Jan 22 '19 16:01 arunasank

Ah, I just checked out https://myexternalip.com and looks like they retired ipv4.myexternalip.com. I guess we need a new host that gets our external ip and publishes it to the tracker.

Varunram avatar Jan 22 '19 16:01 Varunram

Ah, that explains it. Thanks for helping out, here!

arunasank avatar Jan 22 '19 16:01 arunasank

From the README:

The words yup, yes, y, true, 1, ok, enable, on can be used to specify that Lit automatically connect to peers fetched from a list of DNS seeds.

@Varunram actually, --tn3 true also works. Adding the -vvv was the trick.

arunasank avatar Jan 22 '19 16:01 arunasank