My newly installed node stopped running - see copied code below

2019/05/30 17:30:16.360088 e[0;31m[ERROR]e[m GID 143, Update successors error: neighbor list is empty
2019/05/30 17:30:17.712044 e[0;31m[ERROR]e[m GID 143, Update successors error: neighbor list is empty
2019/05/30 17:30:19.278447 e[0;31m[ERROR]e[m GID 143, Update successors error: neighbor list is empty
2019/05/30 17:30:19.288563 e[0;31m[ERROR]e[m GID 144, Update predecessor error: neighbor list is empty
2019/05/30 17:30:20.342563 e[0;33m[WARN ]e[m GID 189, Handle proposal error: Wait for proposal timeout
2019/05/30 17:30:20.421442 e[0;33m[WARN ]e[m GID 145, Local node has no inbound neighbor, it’s possible that local node is unreachable from outside, e.g. behind firewall or NAT.
panic: Node has no neighbors and is too lonely to run

goroutine 184 [running]:
main.nknMain.func3(0xc000128b90, 0xc0002292b0, 0xc00026d050)
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:247 +0x19c
created by main.nknMain
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:242 +0xd87

C:\Users\User-pc\NKN>

Again it shut down see above

Are your node is under sub-net behind firewall or NAT?
You have to setting your firewall or NAT in order to allow 30001~30003 port incoming from external internet IP.

No I created rules in the firewall to open those ports

I restarted it twice and again it shut down:

019/05/31 08:43:29.344798 e[0;33m[WARN ]e[m GID 169, Local node has no inbound neighbor, it’s possible that local node is unreachable from outside, e.g. behind firewall or NAT.
2019/05/31 08:43:30.580102 e[0;31m[ERROR]e[m GID 167, Update successors error: neighbor list is empty
2019/05/31 08:43:32.763175 e[0;33m[WARN ]e[m GID 183, Handle proposal error: Wait for proposal timeout
2019/05/31 08:43:33.012418 e[0;31m[ERROR]e[m GID 168, Update predecessor error: neighbor list is empty
2019/05/31 08:43:33.058374 e[0;31m[ERROR]e[m GID 167, Update successors error: neighbor list is empty
panic: Node has no neighbors and is too lonely to run

goroutine 178 [running]:
main.nknMain.func3(0xc000128b90, 0xc0002c7790, 0xc000496060)
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:247 +0x19c
created by main.nknMain
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:242 +0xd87

C:\Users\User-pc\NKN>

C:\Users\User-pc\NKN>

I saw this once before, it was because the router/firewall closed connections between my node and the rest of the world. I can’t really see any other reason that might cause it.

What can I do?

Tried 2 more times and it stopped again:

19c
created by main.nknMain
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:242 +0xd87

C:\Users\User-pc\NKN>.\nknd.exe -p
2019/06/01 07:04:21.428179 e[0;32m[INFO ]e[m GID 1, Node version: v0.8.2-alpha
2019/06/01 07:04:21 Discovering NAT gateway…
2019/06/01 07:04:23 Found UPNP (IG1-PPP1) gateway
2019/06/01 07:04:23 Error adding port mapping. If this problem persists, you can use --no-nat flag to bypass automatic port forwarding and set it up yourself.
2019/06/01 07:04:23.642640 e[0;31m[ERROR]e[m GID 1, goupnp: SOAP request got HTTP 500 Internal Server Error

C:\Users\User-pc\NKN>.\nknd.exe -p
2019/06/01 07:19:10.770823 e[0;32m[INFO ]e[m GID 1, Node version: v0.8.2-alpha
2019/06/01 07:19:10 Discovering NAT gateway…
2019/06/01 07:19:13 Found UPNP (IG1-PPP1) gateway
2019/06/01 07:19:13 Error adding port mapping. If this problem persists, you can use --no-nat flag to bypass automatic port forwarding and set it up yourself.
2019/06/01 07:19:13.104828 e[0;31m[ERROR]e[m GID 1, goupnp: SOAP request got HTTP 500 Internal Server Error

C:\Users\User-pc\NKN>

What does this mean “You can use -no-nat flag to bypass automatic port forwarding and set it up yourself”??

Like .\nknd.exe --no-nat -p xxx. But you would need to set up the port forwarding manually on your router.

PS: you are posting your wallet password here, please remove it for your safety

Thanks…I try to contact my ISP about this also since it’s their router

Ok I ran .\nknd.exe --no-net -p xxx and it ran for about 2 days straight then no neighbours again:

"t for proposal timeout
2019/06/07 16:23:41.185626 e[0;31m[ERROR]e[m GID 951095, Error sending sync messge to node: Wait for reply timeout
2019/06/07 16:23:41.185626 e[0;33m[WARN ]e[m GID 951095, Get latest block info from neighbor 111153e9e8a8273f8597f469b92dfe1f7de466b6a3ce1eec6600fc392c558cf0 error: Wait for reply timeout
2019/06/07 16:23:46.909566 e[0;33m[WARN ]e[m GID 173, Handle proposal error: Wait for proposal timeout
2019/06/07 16:23:56.974352 e[0;33m[WARN ]e[m GID 173, Handle proposal error: Wait for proposal timeout
2019/06/07 16:24:07.030404 e[0;33m[WARN ]e[m GID 173, Handle proposal error: Wait for proposal timeout
2019/06/07 16:24:17.081887 e[0;33m[WARN ]e[m GID 173, Handle proposal error: Wait for proposal timeout
panic: Node has no neighbors and is too lonely to run

goroutine 168 [running]:
main.nknMain.func3(0xc00012ab90, 0xc000240ea0, 0xc0001d71e0)
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:247 +0x19c
created by main.nknMain
/Users/momouxin/Dev/go_project/src/github.com/nknorg/nkn/nknd.go:242 +0xd87

c:\Users\User-pc\NKN>"

The logs shows that your node lost connections to all neighbors. This typically happens when your Internet is down (for 10s+), your IP changed, etc.

I tried installing the updated nk miner into my folder but after it all, it failed. Any ideas?

o connection could be made because the target machine actively refused it.
2019/06/14 20:04:17.682333 e[0;33m[WARN ]e[m GID 1, Ask my ID from http://127.0.0.1:30003 met error: Post http://127.0.0.1:30003: dial tcp 127.0.0.1:30003: connectex: No connection could be made because the target machine actively refused it.
2019/06/14 20:04:17.686323 e[0;31m[ERROR]e[m GID 1, Tried all seeds but can’t got my external IP and nknID

C:\Users\User-pc\NKN>.\nknd.exe -p
2019/06/14 20:05:40.724841 e[0;32m[INFO ]e[m GID 1, Node version: v0.8.3-alpha
2019/06/14 20:05:40 Config file not exists, use default parameters.
2019/06/14 20:05:40 Discovering NAT gateway…
2019/06/14 20:05:50 No NAT gateway detected, skip automatic port forwading. You need to set up port forwarding and firewall yourself.
2019/06/14 20:05:50.907239 e[0;32m[INFO ]e[m GID 1, Getting my IP address…
POST request: Post http://127.0.0.1:30003: dial tcp 127.0.0.1:30003: connectex: No connection could be made because the target machine actively refused it.
2019/06/14 20:05:51.932869 e[0;33m[WARN ]e[m GID 1, Ask my ID from http://127.0.0.1:30003 met error: Post http://127.0.0.1:30003: dial tcp 127.0.0.1:30003: connectex: No connection could be made because the target machine actively refused it.
2019/06/14 20:05:51.936873 e[0;31m[ERROR]e[m GID 1, Tried all seeds but can’t got my external IP and nknID

C:\Users\User-pc\NKN>

This time it seems that you don’t have config.json so nknd don’t know about seed node. Have you copied config.testnet.json to config.json?

PS: you are leaking your wallet password in your post :slight_smile:

Thanks again.

New message after renaming config.testnet.json to config.json:

image “This app cant run on your pc”

How to setup these settings in firewall. I got the same issue but don’t know how to add it in firewall.

It depends on your firewall, so it is difficult to pinpoint which menu to use. But in principle, to enable port forwarding on ports 30001, 30002, 30003 (both TCP and UDP) on your WiFi home router.

Hello Leader,

I’m getting the same error as Warning: Local node has no inbound neighbor, it’s possible that local node is unreachable from outside, e.g. behind firewall or NAT.
As per your instruction i open my router but in the port formwarding which option i should choose to give the port address. External port or Internal port. I’m still mining this is my first mining experience in my laptop but after mining for some hours no bonus credited to my wallet. My question is - How long i have to mine to get 1 NKN in laptop and can i trade the mined NKN coin in exchanges.

Thank you

Hi, in your router configuration, please configure “port forwarding” for TCP and UDP 30001, 30002, 30003.

On average, each node can mine 2 NKN per day. But the mining reward comes in blocks of 11.42 NKN, so average one node can get one block reward every 5-6 days. But this is average over long time and across all the 22K nodes. You node might be lucky or unlucky, since the average is statistical, not guaranteed.

I think if I’m unlucky then better to buy NKN in exchange rather then mining for 5 to 6 days and get nothing. Thanks leader for your response. Becuase i think mining is good for game PC’s not laptop’s.