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

Unable to connect to the testnet successfully #28

Open
leeweezee777 opened this issue Jan 4, 2021 · 4 comments
Open

Unable to connect to the testnet successfully #28

leeweezee777 opened this issue Jan 4, 2021 · 4 comments

Comments

@leeweezee777
Copy link

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
Copy link
Member

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
Copy link
Author

leeweezee777 commented Jan 5, 2021

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

@thetatoken thetatoken deleted a comment Jan 18, 2021
@jun0tpyrc
Copy link

the same issue persists , that peer looks dead

@jun0tpyrc
Copy link

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?

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

4 participants
@jieyilong @jun0tpyrc @leeweezee777 and others