nelson.cli icon indicating copy to clipboard operation
nelson.cli copied to clipboard

Nelson drops all peers: Unhandled Rejection at: Promise Promise { <rejected> undefined } reason: undefined

Open marijnv2000 opened this issue 7 years ago • 1 comments

Expected behaviour

Nelson connected with peers continuously

Actual behaviour

Nelson drops all my peers after hours, doesn't reconnect with any of them

Steps to reproduce

Start nelson with screen -S nelson nelson --config ~/config.ini

Basic Info

  • Operating System: Ubuntu Server 16.04
  • Node (npm) Version:
$ node -v
v8.11.1
$ npm -v
5.6.0
atverm@iota:~$

  • IRI Version: 1.4.2.2
  • Nelson version: 0.4.0

Nelson Info

  • Epoch: Unknown
  • Cycle: Unknown
  • Connected peers: 0

Nelson works fine, until after a few hours (around 6? hours) it drops all peers, displaying: Unhandled Rejection at: Promise Promise { <rejected> undefined } reason: undefined in the left top corner of the gui. All the gui shows while in this state is that it's dropping connections, and Nelson doesn't connect to any peers until restarted.

Nelson config:

[nelson]
name = *****
cycleInterval = 60
epochInterval = 300
apiPort = 18600
apiHostname = 127.0.0.1
port = 16600
IRIHostname = localhost
IRIProtocol = any
IRIPort = 14265
TCPPort = 15600
UDPPort = 14600
dataPath = data/neighbors.db
; maximal incoming connections. Please do not set below this limit:
incomingMax = 10
; maximal outgoing connections. Only set below this limit, if you have trusted, manual neighbors:
outgoingMax = 10
isMaster = false
silent = false
gui = true
getNeighbors = https://raw.githubusercontent.com/SemkoDev/nelson.cli/master/ENTRYNODES
; add as many initial Nelson neighbors, as you like
neighbors[] = mainnet.deviota.com/16600
neighbors[] = mainnet2.deviota.com/16600
neighbors[] = mainnet3.deviota.com/16600
neighbors[] = iotairi.tt-tec.net/16600

; Protect API with basic auth
[nelson.apiAuth]
username=******
password=*******

marijnv2000 avatar Apr 29 '18 09:04 marijnv2000

I have the same problem. It's the only reason my full node setup is not stable at the moment.

I run nelson in Terminal (latest Java 10.0.1, nodejs 10.0) with Ubuntu Desktop 17.10. It runs mostly fine for a few days, but then there's always a moment that it randomly crashes (it shows "Unhandled Rejection at: Promise Promise { undefined } reason: undefined" on top, mostly twice).

Then Nelson doesn't connect to neighbors anymore, resulting in 0 neighbors and an unsynced node.

I really hope this problem will be resolved. Regards.

ghost avatar May 03 '18 11:05 ghost