刚才我在build.gradle文件中做了一些更改,将版本从1.0转换为3.1。我有8个节点包括公证并成功构建。片刻我给runnodes.bat,所有都开始执行。但最后,只有四个节点开始完成其他投掷错误,如下面
[INFO ] 2018-06-05T11:18:13,500Z [main] BasicInfo.printBasicNodeInfo -
Advertised P2P messaging addresses : localhost:10013 {}
[INFO ] 2018-06-05T11:18:13,509Z [main] BasicInfo.printBasicNodeInfo - RPC
connection address : 0.0.0.0:10014 {}
[INFO ] 2018-06-05T11:18:13,510Z [main] BasicInfo.printBasicNodeInfo - RPC
admin connection address : 0.0.0.0:10054 {}
[INFO ] 2018-06-05T11:18:25,142Z [main]
messaging.ArtemisMessagingServer.configureAndStartServer - P2P messaging
server listening on port 10013 {}
[ERROR] 2018-06-05T11:18:35,955Z [main] core.server.run - AMQ224000: Failure
in initialisation {}
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_152]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_152]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_152]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:1.8.0_152]
atio.netty.channel.socket.nio.NioServerSocketChannel.
doBind(NioServerSocketChannel.java:128) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.AbstractChannel$AbstractUnsafe.
bind(AbstractChannel.java:554)
~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.DefaultChannelPipeline$HeadContext.
bind(DefaultChannelPipeline.java:1258) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.AbstractChannelHandlerContext.
invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.AbstractChannelHandlerContext.
bind(AbstractChannelHandlerContext.java:486) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.DefaultChannelPipeline.
bind(DefaultChannelPipeline.java:980) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[netty-
all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~
[netty-all-4.1.9.Final.jar:4.1.9.Final]
at
io.netty.util.concurrent.AbstractEventExecutor.
safeExecute(AbstractEventExecutor.java:163) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.util.concurrent.SingleThreadEventExecutor.
runAllTasks(SingleThreadEventExecutor.java:403) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.
run(SingleThreadEventExecutor.java:858) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_152]
[WARN ] 2018-06-05T11:18:38,237Z [main]
utilities.AppendOnlyPersistentMapBase.set - Double insert in
net.corda.node.utilities.AppendOnlyPersistentMap for entity class class
net.corda.node.services.identity.PersistentIdentityService$Persistent
Identity key
244940BA312445680AE417765E703E2E4F551242FFE5F53256DFA58CCFE2EAA9, not
inserting the second time {}
[ERROR] 2018-06-05T11:18:38,244Z [main] internal.Node.run - Exception during
node startup {}
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_152]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_152]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_152]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:1.8.0_152]
at io.netty.channel.socket.nio.NioServerSocketChannel.
doBind(NioServerSocketChannel.java:128) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.
bind(AbstractChannel.java:554) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.DefaultChannelPipeline$HeadContext.
bind(DefaultChannelPipeline.java:1258) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at
io.netty.channel.AbstractChannelHandlerContext.
invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-all-
4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_152]
我已更新错误。请检查
答案 0 :(得分:0)
这是与节点的RPC设置相关的问题。
尝试将节点的RPC设置的address
和adminAddress
更改为0.0.0.0
,保持端口不变。例如:
rpcSettings {
address="0.0.0.0:10010"
adminAddress="0.0.0.0:10011"
}
这些地址不需要可以从其他节点访问,因为它们在启动期间仅由节点本身使用。