当我使用“./runnodes --log-to-console --logging-level = DEBUG”在本地运行节点时,所有节点和Web服务器都成功启动。但是没有一个操作工作 - 例如,我需要提交一份文件以供审查 - 但是当我这样做时不提交。在进一步调查它说
“Party命名为C = GB,L = London,O = AuthorisedAuthority无法找到”
当我们从Intellij IDE运行时,这非常有效。仅当我们通过生成构建在本地运行节点时,才会出现此问题。知道为什么会这样吗?
这是AuthorisedAuthority conf
extraAdvertisedServiceIds=[]
myLegalName="C=GB,L=London,O=AuthorisedAuthority"
networkMapService {
address="localhost:10002"
legalName="O=NetworkMapAndNotary,L=London,C=GB"
}
p2pAddress="localhost:10005"
rpcAddress="localhost:10006"
rpcUsers=[
{
password=test
permissions=[]
user=user1
}
]
webAddress="localhost:10007"
这是派对之一
extraAdvertisedServiceIds=[]
myLegalName="O=PartyA,L=London,C=GB"
networkMapService {
address="localhost:10002"
legalName="O=NetworkMapAndNotary,L=London,C=GB"
}
p2pAddress="localhost:10008"
rpcAddress="localhost:10009"
rpcUsers=[
{
password=test
permissions=[]
user=user1
}
]
webAddress="localhost:10010"
我是否必须将AuthorisedAuthority添加到party conf文件的映射服务上?
答案 0 :(得分:0)
Karthik& Param发送给我他们的日志文件,在两个节点上我都注意到Artemis AMQP错误消息,因为我相信这一切都在Karthik的笔记本电脑上运行,我猜他有网络配置问题(可能是端口争用或环回问题) ?)。以下是我发现的消息的一些摘录:
来自logs_AuthorisedAuthority节点的
[WARN ] 2018-03-21T18:43:46,473Z [Thread-152 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@6ab6ec33)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64753 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
…
[WARN ] 2018-03-21T18:43:46,724Z [Thread-152 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@6ab6ec33)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64776 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
…
[WARN ] 2018-03-21T18:59:40,412Z [Thread-34 (ActiveMQ-client-global-threads)] messaging.RPCServer.bindingRemovalArtemisMessageHandler - Detected RPC client disconnect on address rpc.client.SystemUsers/Node.5531407695173593983, scheduling for reaping
[DEBUG] 2018-03-21T18:59:40,443Z [Thread-156 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@6ab6ec33)] messaging.ArtemisMessagingServer.callback - Queue deleted: rpc.client.SystemUsers/Node.5531407695173593983 for rpc.client.SystemUsers/Node.5531407695173593983
[WARN ] 2018-03-21T18:59:40,453Z [Thread-156 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@6ab6ec33)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64850 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[WARN ] 2018-03-21T18:59:40,473Z [Thread-156 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@6ab6ec33)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64809 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[DEBUG] 2018-03-21T18:59:40,413Z [Thread-17 (ActiveMQ-client-netty-threads)] ssl.SslHandler.debug - [id: 0x1604b916, L:/127.0.0.1:64847 - R:localhost/127.0.0.1:10002] Swallowing a harmless 'connection reset by peer / broken pipe' error that occurred while writing close_notify in response to the peer's close_notify
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.8.0_162]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[?:1.8.0_162] …
(来自logs_PartyA节点) - 提供更多输出以显示效果
[WARN ] 2018-03-21T18:43:45,890Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64755 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
…
[WARN ] 2018-03-21T18:43:46,498Z [Thread-33 (ActiveMQ-client-global-threads)] messaging.RPCServer.bindingRemovalArtemisMessageHandler - Detected RPC client disconnect on address rpc.client.SystemUsers/Node.2482054006928585751, scheduling for reaping
[DEBUG] 2018-03-21T18:43:46,513Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] messaging.ArtemisMessagingServer.callback - Queue deleted: rpc.client.SystemUsers/Node.2482054006928585751 for rpc.client.SystemUsers/Node.2482054006928585751
[WARN ] 2018-03-21T18:43:46,557Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64782 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
…
[WARN ] 2018-03-21T18:59:39,752Z [Thread-153 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64805 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[DEBUG] 2018-03-21T18:59:39,711Z [activemq-failure-check-thread] impl.RemotingServiceImpl.removeConnection - RemotingServiceImpl::removing connection ID 6109884
[DEBUG] 2018-03-21T18:59:39,826Z [activemq-failure-check-thread] impl.RemotingServiceImpl.removeConnection - RemotingServiceImpl::removing connection ID 2112730322
[DEBUG] 2018-03-21T18:59:39,826Z [activemq-failure-check-thread] impl.RemotingServiceImpl.removeConnection - RemotingServiceImpl::removing connection ID -1877387306
[DEBUG] 2018-03-21T18:59:39,860Z [Thread-14 (ActiveMQ-client-netty-threads)] impl.ChannelImpl.invokeInterceptors - Invocation of interceptor org.apache.activemq.artemis.core.server.cluster.ClusterManager$IncomingInterceptorLookingForExceptionMessage on PACKET(Ping)[type=10, channelID=0, packetObject=Ping, connectionTTL=60000] returned true
[DEBUG] 2018-03-21T18:59:40,185Z [Thread-153 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] impl.PostOfficeImpl.route - Message CoreMessage[messageID=2147490245,durable=true,userID=null,priority=0, timestamp=0,expiration=0, durable=true, address=internal.activemq.notifications,properties=TypedProperties[_AMQ_RoutingName=rpc.client.SystemUsers/Node.2482054006928585751,_AMQ_Distance=0,_AMQ_ConsumerCount=0,_AMQ_User=SystemUsers/Node,_AMQ_SessionName=c9ebe05c-2d37-11e8-a4ed-a45e60dbc6b5,_AMQ_Address=rpc.client.SystemUsers/Node.2482054006928585751,_AMQ_RemoteAddress=/127.0.0.1:64805,_AMQ_NotifType=CONSUMER_CLOSED,_AMQ_FilterString=NULL-value,_AMQ_NotifTimestamp=1521658780083,_AMQ_ClusterName=rpc.client.SystemUsers/Node.24820540069285857515643c665-2796-11e8-87f6-a45e60dbc6b5]]@75549228 is not going anywhere as it didn't have a binding on address:internal.activemq.notifications
[WARN ] 2018-03-21T18:59:40,414Z [Thread-32 (ActiveMQ-client-global-threads)] messaging.RPCServer.bindingRemovalArtemisMessageHandler - Detected RPC client disconnect on address rpc.client.SystemUsers/Node.2482054006928585751, scheduling for reaping
[DEBUG] 2018-03-21T18:59:40,445Z [Thread-153 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] messaging.ArtemisMessagingServer.callback - Queue deleted: rpc.client.SystemUsers/Node.2482054006928585751 for rpc.client.SystemUsers/Node.2482054006928585751
[WARN ] 2018-03-21T18:59:40,451Z [Thread-153 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64806 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[WARN ] 2018-03-21T18:59:40,480Z [Thread-153 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64846 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
…
[WARN ] 2018-03-21T19:12:26,631Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64999 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[WARN ] 2018-03-21T19:12:27,025Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64970 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[WARN ] 2018-03-21T19:12:27,108Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] core.client.fail - AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:64963 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
[DEBUG] 2018-03-21T19:12:27,178Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] impl.PostOfficeImpl.route - Message CoreMessage[messageID=2147490272,durable=true,userID=null,priority=0, timestamp=0,expiration=0, durable=true, address=internal.activemq.notifications,properties=TypedProperties[_AMQ_RoutingName=rpc.client.SystemUsers/Node.2482054006928585751,_AMQ_Distance=0,_AMQ_ConsumerCount=0,_AMQ_User=SystemUsers/Node,_AMQ_SessionName=026eaa11-2d3a-11e8-a4ed-a45e60dbc6b5,_AMQ_Address=rpc.client.SystemUsers/Node.2482054006928585751,_AMQ_RemoteAddress=/127.0.0.1:64963,_AMQ_NotifType=CONSUMER_CLOSED,_AMQ_FilterString=NULL-value,_AMQ_NotifTimestamp=1521659547171,_AMQ_ClusterName=rpc.client.SystemUsers/Node.24820540069285857515643c665-2796-11e8-87f6-a45e60dbc6b5]]@1667224141 is not going anywhere as it didn't have a binding on address:internal.activemq.notifications
[WARN ] 2018-03-21T19:12:27,485Z [Thread-33 (ActiveMQ-client-global-threads)] messaging.RPCServer.bindingRemovalArtemisMessageHandler - Detected RPC client disconnect on address rpc.client.SystemUsers/Node.2482054006928585751, scheduling for reaping
[DEBUG] 2018-03-21T19:12:27,503Z [Thread-159 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@321558f8)] messaging.ArtemisMessagingServer.callback - Queue deleted: rpc.client.SystemUsers/Node.2482054006928585751 for rpc.client.SystemUsers/Node.2482054006928585751
[DEBUG] 2018-03-21T19:12:27,499Z [Thread-15 (ActiveMQ-client-netty-threads)] ssl.SslHandler.debug - [id: 0x9433fcde, L:/127.0.0.1:65037 - R:localhost/127.0.0.1:10002] Swallowing a harmless 'connection reset by peer / broken pipe' error that occurred while writing close_notify in response to the peer's close_notify
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.8.0_162]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[?:1.8.0_162]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_162] …