hyperledger-fabric - ./byfn.sh -m up -s couchdb -a 失败
问题描述
我按照Hyperledger composer tutorial并未能执行第二步 ./byfn.sh -m up -s couchdb -a
的第五个命令
这是失败的结果:
...
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2018-07-03 09:43:09.912 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-07-03 09:43:09.912 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-07-03 09:43:09.936 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.18.0.9:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 <nil>}
2018-07-03 09:43:10.937 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.18.0.9:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 <nil>}
2018-07-03 09:43:12.642 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.18.0.9:7051: getsockopt: connection refused"; Reconnecting to {peer0.org1.example.com:7051 <nil>}
Error: Error getting endorser client channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
我使用谁的结果检查docker中 peer0 的图像状态docker ps -a | grep peer0
d7929f0332f4 hyperledger/fabric-peer "peer node start" About an hour ago Up About an hour 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com
ac09650d3e5b hyperledger/fabric-peer "peer node start" About an hour ago Up About an hour 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
4faf09d23b48 dev-peer0.org1.example.com-tutorial-network-0.0.3-ccfa7421a9e100115b8beac460d72ce0ce0e48cd38b00ab9b1ea6b7de230bc0a "/bin/sh -c 'cd /usr…" 4 hours ago Exited (0) 3 hours ago dev-peer0.org1.example.com-tutorial-network-0.0.3
bc0fc72c1c45 dev-peer0.org1.example.com-tutorial-network-0.0.2-406300108c533f71ddcfc602aa3bb51c3bd82126f6cb16cfca1ed2328bc080a1 "/bin/sh -c 'cd /usr…" 25 hours ago Exited (0) 7 hours ago dev-peer0.org1.example.com-tutorial-network-0.0.2
62585d29cfa6 dev-peer0.org1.example.com-tutorial-network-0.0.1-6695b9314667cc296171c0da511644e9011aa9a3ba0f6e759aca9e32e458803c "/bin/sh -c 'cd /usr…" 2 days ago Exited (0) 25 hours ago dev-peer0.org1.example.com-tutorial-network-0.0.1
我检查每个图像的日志,除了那些属于以前的网络版本0.0.1
& 0.0.2
。从 4faf09d23b48
使用命令的图像中docker logs 4faf09d23b48 | tail -1
,它显示了不同于其他的错误结果。
2018-07-03T07:06:15.973Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.hyperledger.composer.system.AssetRegistry' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.061Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.141Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.hyperledger.composer.system.TransactionRegistry' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.212Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Participant:org.hyperledger.composer.system.NetworkAdmin' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.278Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.hyperledger.composer.system.HistorianRecord' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.345Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.AddAsset' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.439Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.UpdateAsset' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.509Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.RemoveAsset' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.580Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.AddParticipant' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.639Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.UpdateParticipant' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.727Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.RemoveParticipant' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.796Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.hyperledger.composer.system.Identity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.873Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.IssueIdentity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:16.940Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.BindIdentity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.009Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.ActivateCurrentIdentity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.086Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.RevokeIdentity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.158Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.StartBusinessNetwork' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.232Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.ResetBusinessNetwork' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.297Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.hyperledger.composer.system.SetLogLevel' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.367Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Asset:org.example.mynetwork.Commodity' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.493Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Participant:org.example.mynetwork.Trader' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.591Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.example.mynetwork.Trade' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.695Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'Transaction:org.example.mynetwork.RemoveHighQuantityCommodities' in collection with ID '$sysregistries' does not exist
2018-07-03T07:06:17.848Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist
2018-07-03T07:06:17.851Z [18edf5bc] ERROR :Resolver :resolveRelationship() Failed to resolve relationship {"stack":["{Error}Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist Error: Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist"," at NodeDataCollection.get (/usr/local/src/node_modules/composer-runtime-hlfv1/lib/nodedatacollection.js:73:28)"," at <anonymous>"," at process._tickCallback (internal/process/next_tick.js:188:7)"]}
2018-07-03T07:06:18.050Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'admin' in collection with ID 'Participant:org.hyperledger.composer.system.NetworkAdmin' does not exist
2018-07-03T07:06:18.051Z [18edf5bc] ERROR :Resolver :resolveRelationship() Failed to resolve relationship {"stack":["{Error}Object with ID 'admin' in collection with ID 'Participant:org.hyperledger.composer.system.NetworkAdmin' does not exist Error: Object with ID 'admin' in collection with ID 'Participant:org.hyperledger.composer.system.NetworkAdmin' does not exist"," at NodeDataCollection.get (/usr/local/src/node_modules/composer-runtime-hlfv1/lib/nodedatacollection.js:73:28)"," at <anonymous>"," at process._tickCallback (internal/process/next_tick.js:188:7)"]}
2018-07-03T07:06:18.338Z [18edf5bc] ERROR :NodeDataCollection :get() Error: Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist
2018-07-03T07:06:18.338Z [18edf5bc] ERROR :Resolver :resolveRelationship() Failed to resolve relationship {"stack":["{Error}Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist Error: Object with ID 'org.hyperledger.composer.system.NetworkAdmin' in collection with ID 'Asset:org.hyperledger.composer.system.ParticipantRegistry' does not exist"," at NodeDataCollection.get (/usr/local/src/node_modules/composer-runtime-hlfv1/lib/nodedatacollection.js:73:28)"," at <anonymous>"," at process._tickCallback (internal/process/next_tick.js:188:7)"]}
2018-07-03T07:07:03.957Z [957698e1] ERROR :NodeDataCollection :get() Error: Object with ID 'e9b055f025400be5cb02556cead788819bef2bcee494cd8781c1b5df0d112b99' in collection with ID 'Asset:org.hyperledger.composer.system.Identity' does not exist
2018-07-03T07:07:03.980Z [957698e1] ERROR :IdentityManager :validateIdentity() Error: The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED)
2018-07-03T07:07:03.980Z [957698e1] ERROR :Engine :invoke() Caught error, rethrowing {"stack":["{Error}The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED) Error: The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED)"," at IdentityManager.validateIdentity (/usr/local/src/node_modules/composer-runtime/lib/identitymanager.js:136:27)"," at NodeContext.loadCurrentParticipant (/usr/local/src/node_modules/composer-runtime/lib/context.js:82:39)"," at <anonymous>"," at process._tickCallback (internal/process/next_tick.js:188:7)"]}
2018-07-03T07:07:03.987Z [957698e1] ERROR :Composer :Invoke() Error: The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED)
2018-07-03T07:07:03.990Z ERROR [lib/handler.js] [composerchannel-957698e1]Calling chaincode Invoke() returned error response [Error: The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED)]. Sending ERROR message back to peer
2018-07-03T07:07:04.072Z [9e142fed] ERROR :NodeDataCollection :get() Error: Object with ID 'e9b055f025400be5cb02556cead788819bef2bcee494cd8781c1b5df0d112b99' in collection with ID 'Asset:org.hyperledger.composer.system.Identity' does not exist
2018-07-03T07:07:04.085Z [9e142fed] ERROR :IdentityManager :validateIdentity() Error: The current identity, with the name 'admin' and the identifier '01899e04161a3a6d64670504fa122e55818295352929b6a616333a3739fde3f2', must be activated (ACTIVATION_REQUIRED)
2018-07-03T07:07:04.124Z [9e142fed] ERROR :NodeDataCollection :get() Error: Object with ID 'e9b055f025400be5cb02556cead788819bef2bcee494cd8781c1b5df0d112b99' in collection with ID 'Asset:org.hyperledger.composer.system.Identity' does not exist
2018-07-03T07:32:54.684Z ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: EOF\n at createStatusError (/usr/local/src/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:248:8)\n at /usr/local/src/node_modules/grpc/src/client.js:804:12"
2018-07-03T07:18:54.911Z [a3cb0193] DEBUG :Composer :@PERF Invoke() Total (ms) duration for txnID [a3cb019391ff4e789db3bbbffba3bf4fa4021d805978424023683d07b13d17c1]: 87.00
解决方案
在此线程上专门查看答案->错误:带有 curl -sSL [shortened-url-here] 的路径规范 | 重击-s 1.1.0
我认为错误是因为您的 CouchDB 容器不存在(在上述其他错误中)
如果您遵循本教程(使用答案中建议的 curl 命令(即额外参数)) - 您应该能够成功地继续本教程。
推荐阅读
- python - Beautiful Soup 的 XML 解析器无法处理布尔属性?
- qliksense - 在 Qlik sense mashup 中切换特定图表中的指标
- javascript - 如何发送诸如表单数据邮递员之类的值-反应js
- vba - 从 dotm 加载宏
- git-merge - 如何解决 gerrit 已批准审核中的合并冲突?
- c# - 转换 Ienumerable
数组并添加到列表 C# - python - Tkinter 在播放 mp3 文件时卡在 GUI 中
- python - 带有嵌套序列化程序的 Django 视图
- lisp - Lisp/列表的交集
- jenkins - 在 Jenkinsfile 中使用 @grab