Stuck with debian node

Hello
After setting up the node and started I get these errors:

2021/04/25 10:04:13.709549 [WARN ] GID 1, Ask my ID from http://devnet-seed-0004.nkn.org:30003/ error: Post http://devnet-seed-0004.nkn.org:30003/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/25 10:04:13.709588 [ERROR] GID 1, Tried all seeds but can’t got my external IP and nknID

Hi

You might be using a very old tutorial. Your config.json seems to be copied from testnet template. You need to use mainnet template, i.e. copy config.mainnet.json to config.json.

I am getting a similar error on a few of the new nodes I am building

2021/04/29 08:18:32 Set SyncHeaderMaxSize to 12146
2021/04/29 08:18:32 Set SyncBatchWindowSize to 60
2021/04/29 08:18:32 Set TxPoolMaxMemorySize to 3
2021/04/29 08:18:32.774602 [INFO ] GID 1, Skip automatic port forwading. You need to set up port forwarding and firewall yourself.
2021/04/29 08:18:32.775089 [INFO ] GID 1, Node version: v2.1.2
Password:
2021/04/29 08:18:36.019485 [INFO ] GID 1, Getting my IP address…
2021/04/29 08:18:41.020366 [ERROR] GID 1, POST request: Post http://mainnet-seed-0012.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

2021/04/29 08:18:41.024169 [WARN ] GID 1, Ask my ID from http://mainnet-seed-0012.nkn.org:30003 error: Post http://mainnet-seed-0012.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:18:43.774132 [WARN ] GID 11, Get the remote version number error: Get https://mainnet.nkn.org/version.json: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:18:46.026967 [ERROR] GID 1, POST request: Post http://mainnet-seed-0015.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

2021/04/29 08:18:46.028037 [WARN ] GID 1, Ask my ID from http://mainnet-seed-0015.nkn.org:30003 error: Post http://mainnet-seed-0015.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:18:51.029854 [ERROR] GID 1, POST request: Post http://mainnet-seed-0028.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

2021/04/29 08:18:51.032855 [WARN ] GID 1, Ask my ID from http://mainnet-seed-0028.nkn.org:30003 error: Post http://mainnet-seed-0028.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:18:56.033577 [ERROR] GID 1, POST request: Post http://mainnet-seed-0007.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

2021/04/29 08:18:56.033739 [WARN ] GID 1, Ask my ID from http://mainnet-seed-0007.nkn.org:30003 error: Post http://mainnet-seed-0007.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:19:01.034319 [ERROR] GID 1, POST request: Post http://mainnet-seed-0013.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

2021/04/29 08:19:01.035988 [WARN ] GID 1, Ask my ID from http://mainnet-seed-0013.nkn.org:30003 error: Post http://mainnet-seed-0013.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2021/04/29 08:19:06.036909 [ERROR] GID 1, POST request: Post http://mainnet-seed-0036.nkn.org:30003: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I can ping the url its trying to reach without issue
root@kenya:~/linux-amd64/data/services/nkn-node# ping mainnet-seed-0036.nkn.org
PING mainnet-seed-0004.nkn.org (139.59.192.106) 56(84) bytes of data.
64 bytes from 139.59.192.106: icmp_seq=1 ttl=51 time=255 ms

any idea ?
Thank you

Has anyone found a resolution on this issue? I am getting the same issue from the past 2 days.

Hello Rohit,

I would suggest you to deploy your nodes using the All-in-One script from @no112358
You can find here :

Thank you so much for your response.

If I re-deploy node again then I will have to create ID again and will need to spend 10 NKN again.

Can I resolve this issue somehow?

Yes sorry I should have mention it :roll_eyes:

First don’t forget to save your wallet.json and wallet.pwd files
You can find them using the following command :

cd "$(find / -type d -name "nkn-node" 2>/dev/null)"

Than you can see the content of the files to save it with the following commands

tail wallet.json
tail wallet.pwd

You can then reinstall your node.

Once it’s done and asking you to pay for the generation fee just re-do the first command to get into the nkn-node directory than open the wallet files and delete the existing content to paste your saved content :

nano wallet.json
nano wallet.pwd

Restart your server and you should be up and running :slight_smile: