Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arunasank opened this issue Jan 22, 2019 · 9 comments
Open

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

arunasank opened this issue Jan 22, 2019 · 9 comments

Comments

@arunasank
Copy link

arunasank commented Jan 22, 2019

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?

@Varunram
Copy link
Contributor

@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.

@arunasank
Copy link
Author

arunasank commented Jan 22, 2019

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

@Varunram
Copy link
Contributor

Varunram commented Jan 22, 2019

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

@arunasank
Copy link
Author

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

@Varunram
Copy link
Contributor

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.

@arunasank
Copy link
Author

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

@Varunram
Copy link
Contributor

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.

@arunasank
Copy link
Author

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

@arunasank
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants