tronprotocol / tron-deployment

tron main net conf
169 stars 363 forks source link

full node connection failed #50

Closed samanyousefi closed 2 years ago

samanyousefi commented 2 years ago

hi, I start to work with the full node and event node of Tron but the full node not working correctly and I can see the above logs in the tron.log file:


01:37:14.885 INFO  [nioEventLoopGroup-6-44] [net](HandshakeHandler.java:92) Handshake receive from /51.15.160.224:49550, type: P2P_HELLO
from {
  address: "51.15.160.224"
  port: 18888
  nodeId: "\342\nc_7r\254\251A\t<J\356Y}\311\n\244\210\\[\206/\0027\306jT\330\323\355S\034\030\202\r\367\303\237\'\374\3143\321\037t\200\301\270\001\242\344[\236w-rE\260\2313/Ok"
}
version: 11111
timestamp: 1641605834875
genesisBlockId {
  hash: "\000\000\000\000\000\000\000\000\036\277\210P\212\003\206\\q\324R\342_MQ\031A\226\241\322+fS\334"
}
solidBlockId {
  hash: "\000\000\000\000\000\344\227\330\352\246o\276u\263\224CC\330=\346\032\343B\376\332\207\242U\005\255n&"
  number: 14981080
}
headBlockId {
  hash: "\000\000\000\000\000\344\227\352\360\024#\212\350\030\356b,+\0346\372g\230\00093\230\334\036h\246V"
  number: 14981098
}

01:37:14.885 ERROR [nioEventLoopGroup-6-44] [net](Channel.java:156) Close peer /51.15.160.224:49550, exception caught
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at org.tron.common.overlay.server.WireTrafficStats$TrafficStatHandler.channelRead(WireTrafficStats.java:80)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:546)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException: null
    at org.tron.core.ChainBaseManager.getGenesisBlockId(ChainBaseManager.java:375)
    at org.tron.common.overlay.server.HandshakeHandler.handleHelloMsg(HandshakeHandler.java:160)
    at org.tron.common.overlay.server.HandshakeHandler.decode(HandshakeHandler.java:96)
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    ... 30 common frames omitted
01:37:14.885 INFO  [nioEventLoopGroup-6-44] [net](TronChannelInitializer.java:48) Close channel:/51.15.160.224:49550 | e20a635f3772aca941093c4aee597dc90aa4885c5b862f0237c66a54d8d3ed531c18820df7c39f27fccc33d11f7480c1b801a2e45b9e772d7245b099332f4f6b
01:37:15.485 INFO  [pool-2-thread-1] [net](SyncPool.java:137) 

============ Peer stats: all 0, active 0, passive 0

01:37:15.940 INFO  [nioEventLoopGroup-6-45] [net](HandshakeHandler.java:77) channel active, /78.83.124.135:19294
01:37:15.940 INFO  [nioEventLoopGroup-6-45] [net](HandshakeHandler.java:92) Handshake receive from /78.83.124.135:19294, type: P2P_HELLO
from {
  address: "78.83.124.135"
  port: 18888
  nodeId: "U\233#\336\264\350p\004\360\"Ue\fS\235\275\"\233\035\360:\355c\374\364)\024i\347\'\243B^\350j]\3655\035\021\"\210\252\323-\326\272\200\232\226\317T\372u\f\031\244Xs\325\300,9\325"
}
version: 11111
timestamp: 1641605835913
genesisBlockId {
  hash: "\000\000\000\000\000\000\000\000\036\277\210P\212\003\206\\q\324R\342_MQ\031A\226\241\322+fS\334"
}
solidBlockId {
  hash: "\000\000\000\000\000/\223\241\351\360\3205B3\310\227]\316\344n}\373\300d\236\316\253YS\275\2727"
  number: 3117985
}
headBlockId {
  hash: "\000\000\000\000\000/\223\263\202\330G\2257\307\341j\267b\034\314W\361\000\216\2603\031\230s+\210\232"
  number: 3118003
}

01:37:15.941 ERROR [nioEventLoopGroup-6-45] [net](Channel.java:156) Close peer /78.83.124.135:19294, exception caught
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
    at org.tron.common.overlay.server.WireTrafficStats$TrafficStatHandler.channelRead(WireTrafficStats.java:80)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:546)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException: null
    at org.tron.core.ChainBaseManager.getGenesisBlockId(ChainBaseManager.java:375)
    at org.tron.common.overlay.server.HandshakeHandler.handleHelloMsg(HandshakeHandler.java:160)
    at org.tron.common.overlay.server.HandshakeHandler.decode(HandshakeHandler.java:96)
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
    ... 30 common frames omitted
01:37:15.941 INFO  [nioEventLoopGroup-6-45] [net](TronChannelInitializer.java:48) Close channel:/78.83.124.135:19294 | 559b23deb4e87004f02255650c539dbd229b1df03aed63fcf4291469e727a3425ee86a5df5351d112288aad32dd6ba809a96cf54fa750c19a45873d5c02c39d5
01:37:16.413 WARN  [TronJClientWorker-38] [net](PeerClient.java:58) connect to 54.250.57.33:18888 fail,cause:connection timed out: /54.250.57.33:18888
01:37:16.413 WARN  [TronJClientWorker-42] [net](PeerClient.java:58) connect to 47.243.225.145:18888 fail,cause:connection timed out: /47.243.225.145:18888
01:37:16.414 INFO  [TronJClientWorker-38] [net](TronChannelInitializer.java:48) Close channel:null | <null>
01:37:16.414 INFO  [TronJClientWorker-42] [net](TronChannelInitializer.java:48) Close channel:null | <null>
01:37:16.414 WARN  [TronJClientWorker-37] [net](PeerClient.java:58) connect to 47.52.204.244:18888 fail,cause:connection timed out: /47.52.204.244:18888
01:37:16.414 INFO  [TronJClientWorker-37] [net](TronChannelInitializer.java:48) Close channel:null | <null>