thetatoken / theta-mainnet-integration-guide

Documents and demos to facilitate Theta mainnet integration
https://docs.thetatoken.org/
43 stars 17 forks source link

Unable to connect to the testnet successfully #28

Open leeweezee777 opened 3 years ago

leeweezee777 commented 3 years ago

I went through this documentation and everything worked for the local private net except for the make test_unit:

https://docs.thetatoken.org/docs/setup

The cli example document is good as well illustrating the token transfer. What doesn't work is this document:

https://docs.thetatoken.org/docs/connect-to-the-testnet

When I try to connect, this is what I get:

[2021-01-04 03:33:00]  INFO [snapshot] Importing Snapshot, 85% done.
[2021-01-04 03:33:00]  INFO [snapshot] Importing Snapshot, 90% done.
[2021-01-04 03:33:01]  INFO [ledger] Commit to data store, height: 1, rootHash: 0x73f491c3f94d256490170ee4e089579cd5a7e03a210e6509f59d74d13a680e1e
[2021-01-04 03:33:01]  INFO [snapshot] Importing Snapshot, 100% done.
[2021-01-04 03:33:01]  INFO [snapshot] Snapshot loaded successfully.
[2021-01-04 03:33:01]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-04 03:33:01]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-04 03:33:01]  INFO [rpc] RPC server started address=0.0.0.0 port=16888
[2021-01-04 03:33:01]  INFO [p2p] InboundPeerListener listen routine started, seedPeerOnly set to false
[2021-01-04 03:33:13]  WARN [p2p] Failed to connect to seed peer 54.219.137.110:15872: dial tcp 54.219.137.110:15872: i/o timeout
[2021-01-04 03:33:31]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-04 03:33:31]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-04 03:34:01]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-04 03:34:01]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-04 03:34:31]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-04 03:34:31]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-04 03:35:01]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-04 03:35:01]  WARN [p2p] Failed to retrieve previously persisted peers

Tried nc to no avail

nc -vz 54.219.137.110 15872

Is this the correct testnet endpoint? Also is it absolutely necessary that port 16888 is exposed on the node address?

jieyilong commented 3 years ago

Thanks for reporting the issue. We'll update the testnet config later. For now, could you update p2p.seeds in ../testnet/config.yaml with the following?

p2p:
  seeds: 172.31.0.52:15871
leeweezee777 commented 3 years ago

Thanks for reporting the issue. We'll update the testnet config later. For now, could you update p2p.seeds in ../testnet/config.yaml with the following?

p2p:
  seeds: 172.31.0.52:15871

Same issue:

[2021-01-05 21:25:17]  INFO [snapshot] Importing Snapshot, 75% done.
[2021-01-05 21:25:17]  INFO [snapshot] Importing Snapshot, 80% done.
[2021-01-05 21:25:17]  INFO [snapshot] Importing Snapshot, 85% done.
[2021-01-05 21:25:17]  INFO [snapshot] Importing Snapshot, 90% done.
[2021-01-05 21:25:19]  INFO [ledger] Commit to data store, height: 1, rootHash: 0x73f491c3f94d256490170ee4e089579cd5a7e03a210e6509f59d74d13a680e1e
[2021-01-05 21:25:19]  INFO [snapshot] Importing Snapshot, 100% done.
[2021-01-05 21:25:19]  INFO [snapshot] Snapshot loaded successfully.
[2021-01-05 21:25:19]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-05 21:25:19]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-05 21:25:19]  INFO [p2p] InboundPeerListener listen routine started, seedPeerOnly set to false
[2021-01-05 21:25:19]  INFO [rpc] RPC server started address=0.0.0.0 port=16888
[2021-01-05 21:25:31]  WARN [p2p] Failed to connect to seed peer 172.31.0.52:15871: dial tcp 172.31.0.52:15871: i/o timeout
[2021-01-05 21:25:49]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-05 21:25:49]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-05 21:26:19]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-05 21:26:19]  WARN [p2p] Failed to retrieve previously persisted peers
[2021-01-05 21:26:49]  INFO [p2p] Connecting to seed and persisted peers...
[2021-01-05 21:26:49]  WARN [p2p] Failed to retrieve previously persisted peers

I don't think this will work as what you specify there is non routable. @jieyilong

jun0tpyrc commented 3 years ago

the same issue persists , that peer looks dead

jun0tpyrc commented 3 years ago

by that we mean https://github.com/thetatoken/theta-protocol-ledger/blob/master/integration/testnet/walletnode/config.yaml#L8 does not work now , so as the new peer above

[2021-01-20 06:52:33]  WARN [p2p] Failed to connect to seed peer 172.31.0.52:15871: dial tcp 172.31.0.52:15871: i/o timeout
[2021-01-20 06:52:33]  WARN [p2p] Failed to connect to seed peer 54.219.137.110:15872: dial tcp 54.219.137.110:15872: i/o timeout

And does that setup intend to connect to the same testnet as https://guardian-testnet-explorer.thetatoken.org/ if fixed?