Hyperlegder fabri c не удалось установить цепной код учебника по коммерческой бумаге - PullRequest
0 голосов
/ 08 мая 2020

Я следую инструкциям здесь по образцу коммерческой бумаги. Проблема в том, что когда я хочу запустить команду peer lifecycle chaincode install cp.tar.gz в качестве администратора магнитокорпорации, через некоторое время я получаю эту ошибку:

Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction 5f63152ef342b667b70eb9920ea66c4efbf67fbd206e2f03edcc32c67c508325: error sending: timeout expired while executing transaction

вот результат dockermonitor.sh тем временем:

peer0.org2.example.com|2020-05-08 08:31:45.017 UTC [endorser] callChaincode -> INFO 04b finished chaincode: _lifecycle duration: 300000ms channel= txID=5f63152e
peer0.org2.example.com|2020-05-08 08:31:45.017 UTC [endorser] SimulateProposal -> ERRO 04c failed to invoke chaincode _lifecycle, error: timeout expired while executing transaction
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1215
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:272
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:202
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:155
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:119
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:187
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:397
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:340
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107
peer0.org2.example.com|github.com/hyperledger/fabric/internal/peer/node.unaryGrpcLimiter.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/internal/peer/node/grpc_limiters.go:51
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1082
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1405
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:746
peer0.org2.example.com|runtime.goexit
peer0.org2.example.com| /usr/local/go/src/runtime/asm_amd64.s:1373
peer0.org2.example.com|error sending
peer0.org2.example.com|failed to execute transaction 5f63152ef342b667b70eb9920ea66c4efbf67fbd206e2f03edcc32c67c508325
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:161
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:156
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:119
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:187
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:397
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:340
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107
peer0.org2.example.com|github.com/hyperledger/fabric/internal/peer/node.unaryGrpcLimiter.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/internal/peer/node/grpc_limiters.go:51
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1082
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1405
peer0.org2.example.com|github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:746
peer0.org2.example.com|runtime.goexit
peer0.org2.example.com| /usr/local/go/src/runtime/asm_amd64.s:1373 channel= txID=5f63152e
peer0.org2.example.com|2020-05-08 08:31:45.017 UTC [comm.grpc.server] 1 -> INFO 04d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.23.0.1:58568 grpc.code=OK grpc.call_duration=5m0.000735439s

А вот содержимое команды docker ps:

CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                                        NAMES
98a91ac8abfe        hyperledger/fabric-nodeenv:2.1      "docker-entrypoint.s…"   11 minutes ago      Up 11 minutes                                                    vigorous_mendel
368455c1d9d6        gliderlabs/logspout                 "/bin/logspout"          28 minutes ago      Up 28 minutes       127.0.0.1:8000->80/tcp                       logspout
960fe221927d        hyperledger/fabric-peer:latest      "peer node start"        40 minutes ago      Up 40 minutes       0.0.0.0:7051->7051/tcp                       peer0.org1.example.com
a2d0abb06ef5        hyperledger/fabric-peer:latest      "peer node start"        40 minutes ago      Up 40 minutes       7051/tcp, 0.0.0.0:9051->9051/tcp             peer0.org2.example.com
20f181c8d3cc        hyperledger/fabric-couchdb          "tini -- /docker-ent…"   40 minutes ago      Up 40 minutes       4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp   couchdb0
884d57dbc134        hyperledger/fabric-couchdb          "tini -- /docker-ent…"   40 minutes ago      Up 40 minutes       4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp   couchdb1
19d78b3a6217        hyperledger/fabric-orderer:latest   "orderer"                40 minutes ago      Up 40 minutes       0.0.0.0:7050->7050/tcp                       orderer.example.com
f8e14316918d        hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   40 minutes ago      Up 40 minutes       7054/tcp, 0.0.0.0:8054->8054/tcp             ca_org2
986791a3a0bd        hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   40 minutes ago      Up 40 minutes       0.0.0.0:7054->7054/tcp                       ca_org1
948ca209f3bc        hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   40 minutes ago      Up 40 minutes       7054/tcp, 0.0.0.0:9054->9054/tcp             ca_orderer

Я использую версию 2.1

...