问题:
我创建了一个Hyperledger架构网络,该网络包含六个组织,每个组织有2个对等方,还为组织提供了6个独立的ca。它包含一个订购者。我建立了网络并成功安装了链码。但是,当我尝试使用此命令实例化
peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -n fabcar -l node -v 1.0 -c '{"Args":["init"]}' -C mychannel -P "AND ('Org2MSP.peer','Org3MSP.peer')"
失败,并在终端上留下此错误。
2019-04-24 07:37:38.385 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-04-24 07:37:38.386 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: error endorsing chaincode: rpc error: code = Unavailable desc = transport is closing
Instantiate chaincode Failed....
这是订购者的日志。
2019-04-29 09:53:06.146 UTC [comm.grpc.server] 1 -> INFO 024 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.9:52658 grpc.peer_subject="CN=peer0.org1.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=44.122382s
2019-04-29 09:53:18.915 UTC [comm.grpc.server] 1 -> INFO 025 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.16:41582 grpc.peer_subject="CN=peer0.org4.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=43.0664988s
2019-04-29 09:53:22.614 UTC [comm.grpc.server] 1 -> INFO 026 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.8:45086 grpc.peer_subject="CN=peer1.org6.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=32.7623066s
2019-04-29 09:53:26.625 UTC [comm.grpc.server] 1 -> INFO 027 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.12:51754 grpc.peer_subject="CN=peer0.org5.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=44.9992331s
2019-04-29 09:54:34.939 UTC [comm.grpc.server] 1 -> INFO 028 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.5:53352 grpc.peer_subject="CN=peer1.org3.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=2m1.9971354s
2019-04-29 09:56:51.205 UTC [core.comm] ServerHandshake -> ERRO 029 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.9:32878
2019-04-29 09:56:51.359 UTC [core.comm] ServerHandshake -> ERRO 02a TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.5:33586
2019-04-29 09:56:51.865 UTC [core.comm] ServerHandshake -> ERRO 02b TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.8:53384
2019-04-29 09:56:51.712 UTC [core.comm] ServerHandshake -> ERRO 02c TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.9:32812: i/o timeout server=Orderer remoteaddress=172.18.0.9:32812
2019-04-29 09:56:51.372 UTC [core.comm] ServerHandshake -> ERRO 02d TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.8:53304: i/o timeout server=Orderer remoteaddress=172.18.0.8:53304
2019-04-29 10:01:35.755 UTC [core.comm] ServerHandshake -> ERRO 02e TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.9:40288: i/o timeout server=Orderer remoteaddress=172.18.0.9:40288
2019-04-29 10:01:39.167 UTC [core.comm] ServerHandshake -> ERRO 030 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.9:40376: i/o timeout server=Orderer remoteaddress=172.18.0.9:40376
2019-04-29 10:01:39.411 UTC [comm.grpc.server] 1 -> INFO 031 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.18:50786 grpc.peer_subject="CN=peer0.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=9m25.7650582s
2019-04-29 10:01:40.914 UTC [core.comm] ServerHandshake -> ERRO 032 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:41164
2019-04-29 10:01:39.167 UTC [comm.grpc.server] 1 -> INFO 02f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.15:34396 grpc.peer_subject="CN=peer1.org4.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=9m0.2938332s
2019-04-29 10:01:41.548 UTC [core.comm] ServerHandshake -> ERRO 033 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.18:40902: i/o timeout server=Orderer remoteaddress=172.18.0.18:40902
2019-04-29 10:01:41.696 UTC [orderer.common.broadcast] Handle -> WARN 034 Error reading from 172.18.0.21:52002: rpc error: code = Canceled desc = context canceled
2019-04-29 10:01:41.696 UTC [comm.grpc.server] 1 -> INFO 035 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.18.0.21:52002 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=7m31.7608952s
2019-04-29 10:01:40.914 UTC [core.comm] ServerHandshake -> ERRO 036 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.9:42114: i/o timeout server=Orderer remoteaddress=172.18.0.9:42114
2019-04-29 10:01:41.168 UTC [core.comm] ServerHandshake -> ERRO 037 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.9:40842: i/o timeout server=Orderer remoteaddress=172.18.0.9:40842
2019-04-29 10:01:43.005 UTC [comm.grpc.server] 1 -> INFO 038 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.9:32942 grpc.peer_subject="CN=peer0.org1.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m49.156365s
2019-04-29 10:01:49.736 UTC [core.comm] ServerHandshake -> ERRO 039 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.21:39106: i/o timeout server=Orderer remoteaddress=172.18.0.21:39106
2019-04-29 10:01:55.321 UTC [core.comm] ServerHandshake -> ERRO 03a TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.12:43194
2019-04-29 10:02:26.574 UTC [comm.grpc.server] 1 -> INFO 03b streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.10:51958 grpc.peer_subject="CN=peer1.org5.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=9m44.20611s
2019-04-29 10:02:41.074 UTC [core.comm] ServerHandshake -> ERRO 03c TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.12:45900
2019-04-29 10:02:50.555 UTC [comm.grpc.server] 1 -> INFO 03d streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.8:53460 grpc.peer_subject="CN=peer1.org6.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=5m56.6333492s
2019-04-29 10:03:35.057 UTC [core.comm] ServerHandshake -> ERRO 03e TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.12:47740: i/o timeout server=Orderer remoteaddress=172.18.0.12:47740
2019-04-29 10:04:27.772 UTC [core.comm] ServerHandshake -> ERRO 03f TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:41734
2019-04-29 10:04:48.830 UTC [core.comm] ServerHandshake -> ERRO 040 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:43084
2019-04-29 10:04:50.666 UTC [core.comm] ServerHandshake -> ERRO 041 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.12:53160: i/o timeout server=Orderer remoteaddress=172.18.0.12:53160
2019-04-29 10:05:01.505 UTC [comm.grpc.server] 1 -> INFO 042 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.6:58990 grpc.peer_subject="CN=peer0.org6.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=12m13.9399713s
2019-04-29 10:06:01.851 UTC [core.comm] ServerHandshake -> ERRO 043 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.12:56774: i/o timeout server=Orderer remoteaddress=172.18.0.12:56774
2019-04-29 10:06:01.255 UTC [core.comm] ServerHandshake -> ERRO 044 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.16:46448: i/o timeout server=Orderer remoteaddress=172.18.0.16:46448
2019-04-29 10:06:15.950 UTC [core.comm] ServerHandshake -> ERRO 045 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.15:40150: i/o timeout server=Orderer remoteaddress=172.18.0.15:40150
2019-04-29 10:06:35.280 UTC [core.comm] ServerHandshake -> ERRO 046 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.10:58730: i/o timeout server=Orderer remoteaddress=172.18.0.10:58730
2019-04-29 10:07:01.826 UTC [core.comm] ServerHandshake -> ERRO 047 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.15:42306: i/o timeout server=Orderer remoteaddress=172.18.0.15:42306
2019-04-29 10:07:28.959 UTC [core.comm] ServerHandshake -> ERRO 048 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.15:43188: i/o timeout server=Orderer remoteaddress=172.18.0.15:43188
2019-04-29 10:07:41.584 UTC [core.comm] ServerHandshake -> ERRO 049 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.16:50732: i/o timeout server=Orderer remoteaddress=172.18.0.16:50732
2019-04-29 10:07:41.588 UTC [core.comm] ServerHandshake -> ERRO 04a TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.10:60944: i/o timeout server=Orderer remoteaddress=172.18.0.10:60944
2019-04-29 10:09:28.011 UTC [core.comm] ServerHandshake -> ERRO 04b TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.12:34104: i/o timeout server=Orderer remoteaddress=172.18.0.12:34104
2019-04-29 10:09:35.539 UTC [core.comm] ServerHandshake -> ERRO 04c TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.15:46992
2019-04-29 10:09:37.273 UTC [core.comm] ServerHandshake -> ERRO 04d TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.21:60784: i/o timeout server=Orderer remoteaddress=172.18.0.21:60784
2019-04-29 10:09:51.675 UTC [comm.grpc.server] 1 -> INFO 04e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.5:34230 grpc.peer_subject="CN=peer1.org3.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=12m36.9833739s
2019-04-29 10:10:19.391 UTC [core.comm] ServerHandshake -> ERRO 04f TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.10:37742: i/o timeout server=Orderer remoteaddress=172.18.0.10:37742
2019-04-29 10:11:03.820 UTC [core.comm] ServerHandshake -> ERRO 050 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.15:49282: i/o timeout server=Orderer remoteaddress=172.18.0.15:49282
2019-04-29 10:11:50.225 UTC [core.comm] ServerHandshake -> ERRO 051 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:39828
2019-04-29 10:12:00.370 UTC [comm.grpc.server] 1 -> INFO 052 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.16:54714 grpc.peer_subject="CN=peer0.org4.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=2m7.7656338s
2019-04-29 10:12:33.248 UTC [core.comm] ServerHandshake -> ERRO 053 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.12:40616: i/o timeout server=Orderer remoteaddress=172.18.0.12:40616
2019-04-29 10:13:26.462 UTC [core.comm] ServerHandshake -> ERRO 054 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.15:52192: i/o timeout server=Orderer remoteaddress=172.18.0.15:52192
2019-04-29 10:17:17.682 UTC [comm.grpc.server] 1 -> INFO 056 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.18:42402 grpc.peer_subject="CN=peer0.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=15m28.4743647s
2019-04-29 10:17:17.029 UTC [comm.grpc.server] 1 -> INFO 055 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.10:42422 grpc.peer_subject="CN=peer1.org5.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=3m30.3176409s
2019-04-29 10:17:18.203 UTC [comm.grpc.server] 1 -> INFO 057 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.2:34188 grpc.peer_subject="CN=peer1.org1.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=24m57.9669675s
2019-04-29 10:17:33.039 UTC [comm.grpc.server] 1 -> INFO 058 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.13:33370 grpc.peer_subject="CN=peer0.org3.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=25m27.3147765s
2019-04-29 10:21:44.012 UTC [core.comm] ServerHandshake -> ERRO 059 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.16:34476: i/o timeout server=Orderer remoteaddress=172.18.0.16:34476
2019-04-29 10:21:44.274 UTC [core.comm] ServerHandshake -> ERRO 05a TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.10:44728: i/o timeout server=Orderer remoteaddress=172.18.0.10:44728
2019-04-29 10:21:44.368 UTC [core.comm] ServerHandshake -> ERRO 05b TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.10:44880: i/o timeout server=Orderer remoteaddress=172.18.0.10:44880
2019-04-29 10:21:42.931 UTC [core.comm] ServerHandshake -> ERRO 05c TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.16:34258: i/o timeout server=Orderer remoteaddress=172.18.0.16:34258
2019-04-29 10:21:44.473 UTC [core.comm] ServerHandshake -> ERRO 05d TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:45512
2019-04-29 10:21:44.475 UTC [core.comm] ServerHandshake -> ERRO 05e TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.16:34916: i/o timeout server=Orderer remoteaddress=172.18.0.16:34916
2019-04-29 10:21:44.476 UTC [comm.grpc.server] 1 -> INFO 05f streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.17:48106 grpc.peer_subject="CN=peer1.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=29m27.2417856s
2019-04-29 10:21:45.475 UTC [comm.grpc.server] 1 -> INFO 060 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.9:45620 grpc.peer_subject="CN=peer0.org1.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=19m21.88722s
2019-04-29 10:21:46.154 UTC [core.comm] ServerHandshake -> ERRO 061 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:44768
2019-04-29 10:21:46.154 UTC [core.comm] ServerHandshake -> ERRO 062 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:35304
2019-04-29 10:21:46.155 UTC [core.comm] ServerHandshake -> ERRO 063 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:35572
2019-04-29 10:21:46.155 UTC [core.comm] ServerHandshake -> ERRO 064 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:56844
2019-04-29 10:21:46.155 UTC [core.comm] ServerHandshake -> ERRO 065 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:56324
2019-04-29 10:21:46.156 UTC [core.comm] ServerHandshake -> ERRO 066 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.17:44560
2019-04-29 10:21:46.156 UTC [core.comm] ServerHandshake -> ERRO 067 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.17:45632
2019-04-29 10:21:46.156 UTC [core.comm] ServerHandshake -> ERRO 068 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:55768
2019-04-29 10:21:46.157 UTC [core.comm] ServerHandshake -> ERRO 069 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:45094
2019-04-29 10:21:46.157 UTC [core.comm] ServerHandshake -> ERRO 06a TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.15:56970
2019-04-29 10:21:46.157 UTC [core.comm] ServerHandshake -> ERRO 06b TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:55958
2019-04-29 10:21:46.158 UTC [core.comm] ServerHandshake -> ERRO 06c TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:46386
2019-04-29 10:21:46.158 UTC [core.comm] ServerHandshake -> ERRO 06d TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:55686
2019-04-29 10:21:46.158 UTC [core.comm] ServerHandshake -> ERRO 06e TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:39090
2019-04-29 10:21:46.159 UTC [core.comm] ServerHandshake -> ERRO 06f TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:44914
2019-04-29 10:21:46.159 UTC [core.comm] ServerHandshake -> ERRO 070 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:45502
2019-04-29 10:22:54.975 UTC [core.comm] ServerHandshake -> ERRO 071 TLS handshake failed with error read tcp 172.18.0.4:7050->172.18.0.12:50832: i/o timeout server=Orderer remoteaddress=172.18.0.12:50832
2019-04-29 10:24:41.907 UTC [core.comm] ServerHandshake -> ERRO 072 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.12:52800
2019-04-29 10:24:40.408 UTC [core.comm] ServerHandshake -> ERRO 073 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.9:52108: i/o timeout server=Orderer remoteaddress=172.18.0.9:52108
2019-04-29 10:25:46.809 UTC [core.comm] ServerHandshake -> ERRO 074 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.16:42928: i/o timeout server=Orderer remoteaddress=172.18.0.16:42928
2019-04-29 10:26:57.614 UTC [comm.grpc.server] 1 -> INFO 076 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.17:47104 grpc.peer_subject="CN=peer1.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m14.3823991s
2019-04-29 10:26:57.614 UTC [comm.grpc.server] 1 -> INFO 077 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.13:60228 grpc.peer_subject="CN=peer0.org3.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m22.7790836s
2019-04-29 10:26:58.508 UTC [comm.grpc.server] 1 -> INFO 078 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.10:50802 grpc.peer_subject="CN=peer1.org5.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m20.5293458s
2019-04-29 10:26:56.949 UTC [comm.grpc.server] 1 -> INFO 075 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.18.0.18:49420 grpc.peer_subject="CN=peer0.org2.example.com,L=San Francisco,ST=California,C=US" error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m21.859575s
2019-04-29 10:27:01.671 UTC [core.comm] ServerHandshake -> ERRO 079 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:36976
2019-04-29 10:27:01.672 UTC [core.comm] ServerHandshake -> ERRO 07a TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:54622
2019-04-29 10:27:01.673 UTC [core.comm] ServerHandshake -> ERRO 07b TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.17:52116
2019-04-29 10:27:01.673 UTC [core.comm] ServerHandshake -> ERRO 07c TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:55420
2019-04-29 10:27:01.674 UTC [core.comm] ServerHandshake -> ERRO 07d TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:37372
2019-04-29 10:27:01.713 UTC [core.comm] ServerHandshake -> ERRO 07e TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:54796
2019-04-29 10:27:01.714 UTC [core.comm] ServerHandshake -> ERRO 07f TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.17:52318: i/o timeout server=Orderer remoteaddress=172.18.0.17:52318
2019-04-29 10:27:01.714 UTC [core.comm] ServerHandshake -> ERRO 080 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.16:45102
2019-04-29 10:27:01.715 UTC [core.comm] ServerHandshake -> ERRO 081 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:37594
2019-04-29 10:27:01.715 UTC [core.comm] ServerHandshake -> ERRO 082 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:55758
2019-04-29 10:27:01.715 UTC [core.comm] ServerHandshake -> ERRO 083 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.15:37494
2019-04-29 10:27:01.719 UTC [core.comm] ServerHandshake -> ERRO 084 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.18:54992
2019-04-29 10:27:01.726 UTC [core.comm] ServerHandshake -> ERRO 085 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.13:36702
2019-04-29 10:27:01.774 UTC [core.comm] ServerHandshake -> ERRO 086 TLS handshake failed with error EOF server=Orderer remoteaddress=172.18.0.10:55970
2019-04-29 10:27:06.824 UTC [core.comm] ServerHandshake -> ERRO 087 TLS handshake failed with error write tcp 172.18.0.4:7050->172.18.0.10:56316: i/o timeout server=Orderer remoteaddress=172.18.0.10:56316
这是对等日志。
有人可以帮我解决这个问题吗?我做了很多尝试以找到解决该问题的方法。但是我无法找到解决这个问题的方法。谢谢。
答案 0 :(得分:1)
首先,对等日志和订购者日志中存在很多TLS错误。我建议对docker-compose.yaml文件中的所有服务进行不带TLS测试。这可能会解决问题,但是肯定会使日志更易于阅读。如果问题得以解决,您将确切地知道问题所在。
如果您仍然无法使用Orderer进行连接,请尝试以下docker命令,以查看您拥有哪些docker网络桥,以及哪些容器正在使用这些网络:
docker network list
和docker inspect <bridge-name>
对于测试和开发,最简单的方法是让所有容器都在同一docker网络桥上运行。
其他信息(答案已编辑)
“ instantiate”命令生成一个临时容器(具有随机名称),该临时容器用于构建“ Chaincode容器”。因此,“ determined_archimedes”可能是该临时容器,也可能只是您过去创建的测试容器-您可以通过查看docker ps -a
或查看日志来检查该容器基于的图像,能够查看它是Fabric容器还是其他“测试”容器。
Chaincode容器(我认为是临时容器)使用的网桥是由环境变量CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE
决定的-您应检查docker-compose.yaml文件中的所有对等节点是否将此设置为与其他结构组件的网桥具有相同的价值。
答案 1 :(得分:0)
如果您查看对等方日志,则对等方将看不到订购者,错误623。检查您的网络连接方式以及是否可以相互连接。您在使用作曲家吗?如果是这样,它们是否在同一个网络中?