My newly installed node stopped running - see copied code below

Looks that your node can’t syncBlock with anyone of neighbors.
Please restart nknd try again or check your neighbors what state about them.

I ran .\nknd.exe -p YOUR_WALLET_PASSWORD again and it stopped this time after much longer runtime with this code in the last page:

"c7ab6897c71e89daf297629031e42e5ac936187e4ba146356 at height 1001402
2019/05/30 02:12:49.405078 e[0;32m[INFO ]e[m GID 16, # current block height: 1001402, block hash: 1bc9275483d2bd7c7ab6897c71e89daf297629031e42e5ac936187e4ba146356
2019/05/30 02:12:59.704437 e[0;32m[INFO ]e[m GID 110, Change expected block height to 1001404
2019/05/30 02:13:02.939239 e[0;31m[ERROR]e[m GID 1833177, Error sending sync messge to node: Wait for reply timeout
2019/05/30 02:13:02.939239 e[0;33m[WARN ]e[m GID 1833177, Get latest block info from neighbor 51215c04e61060dcf3190258a9a8b44a866347712358dfef0cc2fabee3ace1ba error: Wait for reply timeout
2019/05/30 02:13:09.706046 e[0;32m[INFO ]e[m GID 110, Accept block b98522ec1b3a4686734007330857538d72780594bc5ae2e0eea733329ad660ef at height 1001403
2019/05/30 02:13:09.708035 e[0;32m[INFO ]e[m GID 16, # current block height: 1001403, block hash: b98522ec1b3a4686734007330857538d72780594bc5ae2e0eea733329ad660ef
2019/05/30 02:13:20.011407 e[0;33m[WARN ]e[m GID 110, Handle proposal error: Wait for proposal timeout
2019/05/30 02:13:30.064841 e[0;33m[WARN ]e[m GID 110, Handle proposal error: Wait for proposal timeout
2019/05/30 02:13:40.118394 e[0;33m[WARN ]e[m GID 110, Handle proposal error: Wait for proposal timeout
panic: Node has no neighbors and is too lonely to run

goroutine 105 [running]:
main.nknMain.func3(0xc000126b90, 0xc0001281a0, 0xc00019e230)
/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>

What can I do if there are “no neighbours”?

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.