Docker compose 错误:签署链码时出错:rpc错误:代码=未知描述=启动链码fabcar时超时过期

Docker compose 错误:签署链码时出错:rpc错误:代码=未知描述=启动链码fabcar时超时过期,docker-compose,hyperledger-fabric,Docker Compose,Hyperledger Fabric,我将按照这里给出的教程进行操作- 我正在开发MacOS:High Sierra 我得到的错误如下: 错误:错误背书链码:rpc错误:代码=未知描述= 启动链码时超时已过期 fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:c51ca82792bd8823a60edf9c31a550836fc8932a90a2a4cec8b9c37ba24c46ea) 谢谢你的帮助 命令:/startFabric.sh节点 完整日志: # don'

我将按照这里给出的教程进行操作-

我正在开发MacOS:High Sierra

我得到的错误如下:

错误:错误背书链码:rpc错误:代码=未知描述= 启动链码时超时已过期 fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:c51ca82792bd8823a60edf9c31a550836fc8932a90a2a4cec8b9c37ba24c46ea)

谢谢你的帮助

命令:
/startFabric.sh节点

完整日志:

# don't rewrite paths for Windows Git Bash users
   export MSYS_NO_PATHCONV=1

   docker-compose -f docker-compose.yml down
   Stopping peer0.org1.example.com ... done
   Stopping orderer.example.com    ... done
   Stopping ca.example.com         ... done
   Stopping couchdb                ... done
   Removing peer0.org1.example.com ... done
   Removing orderer.example.com    ... done
   Removing ca.example.com         ... done
   Removing couchdb                ... done
   Removing network net_basic

   docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com 
   peer0.org1.example.com couchdb
   Creating network "net_basic" with the default driver
   Creating orderer.example.com ... done
   Creating ca.example.com      ... done
   Creating couchdb             ... done
   Creating peer0.org1.example.com ... done

   # wait for Hyperledger Fabric to start
   # incase of errors when running later commands, issue export 
   FABRIC_START_TIMEOUT=<larger number>
   export FABRIC_START_TIMEOUT=10
   #echo ${FABRIC_START_TIMEOUT}
   sleep ${FABRIC_START_TIMEOUT}

   # Create the channel
   docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e 
   "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" 
   peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c 
   mychannel -f /etc/hyperledger/configtx/channel.tx
   2018-05-03 17:56:04.275 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser 
   and orderer connections initialized
   2018-05-03 17:56:04.392 UTC [channelCmd] InitCmdFactory -> INFO 002 Endorser 
   and orderer connections initialized
   2018-05-03 17:56:04.621 UTC [main] main -> INFO 003 Exiting.....
   # Join peer0.org1.example.com to the channel.
   docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e 
   "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" 
   peer0.org1.example.com peer channel join -b mychannel.block
   2018-05-03 17:56:04.861 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser 
   and orderer connections initialized
   2018-05-03 17:56:05.018 UTC [channelCmd] executeJoin -> INFO 002 Successfully 
   submitted proposal to join channel
   2018-05-03 17:56:05.018 UTC [main] main -> INFO 003 Exiting.....
   Creating cli ... done
   2018-05-03 17:56:06.745 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing 
   local MSP
   2018-05-03 17:56:06.745 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 
   Obtaining default signing identity
   2018-05-03 17:56:06.746 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 
   Using default escc
   2018-05-03 17:56:06.746 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 
   Using default vscc
   2018-05-03 17:56:06.746 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java 
   chaincode disabled
   2018-05-03 17:56:06.749 UTC [node-platform] GetDeploymentPayload -> DEBU 006 
   Packaging node.js project from path /opt/gopath/src/github.com/fabcar/node
   2018-05-03 17:56:06.749 UTC [container] WriteFolderToTarPackage -> INFO 007 
   rootDirectory = /opt/gopath/src/github.com/fabcar/node
   2018-05-03 17:56:06.752 UTC [container] WriteFileToPackage -> DEBU 008 Writing 
   file to tarball: src/fabcar.js
   2018-05-03 17:56:06.762 UTC [container] WriteFileToPackage -> DEBU 009 Writing 
   file to tarball: src/package.json
   2018-05-03 17:56:06.765 UTC [msp/identity] Sign -> DEBU 00a Sign: plaintext: 
   0A9C070A5C08031A0C08B69AADD70510...C1F84F000000FFFF22CB6E3A001E0000 
   2018-05-03 17:56:06.765 UTC [msp/identity] Sign -> DEBU 00b Sign: digest: 
   CAD5821E4354EA410ED3567BE82D12813B469783B96FB8EEE2A1B4416A323B76 
   2018-05-03 17:56:06.816 UTC [chaincodeCmd] install -> DEBU 00c Installed 
   remotely response:<status:200 payload:"OK" > 
   2018-05-03 17:56:06.816 UTC [main] main -> INFO 00d Exiting.....
   2018-05-03 17:56:07.116 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing 
   local MSP
   2018-05-03 17:56:07.116 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 
   Obtaining default signing identity
   2018-05-03 17:56:07.121 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 
   Using default escc
   2018-05-03 17:56:07.121 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 
   Using default vscc
   2018-05-03 17:56:07.123 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java 
   chaincode disabled
   2018-05-03 17:56:07.125 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 
   0AA6070A6608031A0B08B79AADD70510...324D53500A04657363630A0476736363 
   2018-05-03 17:56:07.126 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 
   7574A79A053907A7CD90E656B612CE20AA80E95067403F097B3F6185EC25D329 
   Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout 
   expired while starting chaincode fabcar:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:c51ca82792bd8823a60edf9c31a550836fc8932a90a2a4cec8b9c37ba24c46ea)
   Usage:
     peer chaincode instantiate [flags]

     Flags:
      -C, --channelID string            The channel on which this command should be executed
      --collections-config string   The file containing the configuration for the chaincode's collection
      -c, --ctor string                 Constructor message for the chaincode in JSON format (default "{}")
      -E, --escc string                 The name of the endorsement system chaincode to be used for this chaincode
      -l, --lang string                 Language the chaincode is written in (default "golang")
      -n, --name string                 Name of the chaincode
      -P, --policy string               The endorsement policy associated to this chaincode
      -v, --version string              Version of the chaincode specified in install/instantiate/upgrade commands
      -V, --vscc string                 The name of the verification system chaincode to be used for this chaincode

   Global Flags:
      --cafile string                       Path to file containing PEM-encoded 
   trusted certificate(s) for the ordering endpoint
      --certfile string                     Path to file containing PEM-encoded 
   X509 public key to use for mutual TLS communication with the orderer endpoint
      --clientauth                          Use mutual TLS when communicating with 
   the orderer endpoint
      --keyfile string                      Path to file containing PEM-encoded 
   private key to use for mutual TLS communication with the orderer endpoint
      --logging-level string                Default logging level and overrides, 
   see core.yaml for full syntax
      -o, --orderer string                      Ordering service endpoint
          --ordererTLSHostnameOverride string   The hostname override to use when 
   validating the TLS connection to the orderer.
      --tls                                 Use TLS when communicating with the 
   orderer endpoint
      --transient string                    Transient map of arguments in JSON 
   encoding
#不重写Windows Git Bash用户的路径
导出MSYS_NO_PATHCONV=1
docker compose-f docker-compose.yml向下
正在停止peer0.org1.example.com。。。完成
正在停止order.example.com。。。完成
正在停止ca.example.com。。。完成
停止couchdb。。。完成
正在删除peer0.org1.example.com。。。完成
正在删除order.example.com。。。完成
正在删除ca.example.com。。。完成
正在删除couchdb。。。完成
删除网络基础
docker compose-f docker-compose.yml up-d ca.example.com order.example.com
peer0.org1.example.com couchdb
使用默认驱动程序创建网络“net_basic”
正在创建order.example.com。。。完成
正在创建ca.example.com。。。完成
正在创建couchdb。。。完成
正在创建peer0.org1.example.com。。。完成
#等待Hyperledger结构启动
#如果在运行以后的命令时出错,请发出导出命令
结构\u开始\u超时=
导出结构\u开始\u超时=10
#echo${FABRIC\u START\u TIMEOUT}
睡眠${FABRIC\u START\u TIMEOUT}
#创建频道
docker exec-e“核心\对等\本地MSPID=Org1MSP”-e
“核心\u对等\u MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp“
peer0.org1.example.com对等通道创建-o order.example.com:7050-c
mychannel-f/etc/hyperledger/configtx/channel.tx
2018-05-03 17:56:04.275 UTC[channelCmd]InitCmdFactory->INFO 001背书人
和订购方连接已初始化
2018-05-03 17:56:04.392 UTC[channelCmd]InitCmdFactory->INFO 002背书人
和订购方连接已初始化
2018-05-03 17:56:04.621 UTC[主]主->信息003正在退出。。。。。
#将peer0.org1.example.com加入频道。
docker exec-e“核心\对等\本地MSPID=Org1MSP”-e
“核心\u对等\u MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp“
peer0.org1.example.com对等通道连接-b mychannel.block
2018-05-03 17:56:04.861 UTC[channelCmd]InitCmdFactory->INFO 001背书人
和订购方连接已初始化
2018-05-03 17:56:05.018 UTC[channelCmd]executeJoin->INFO 002成功
已提交加入频道的建议
2018-05-03 17:56:05.018 UTC[主要]主要->信息003正在退出。。。。。
正在创建客户端。。。完成
2018-05-03 17:56:06.745 UTC[msp]GetLocalMSP->DEBU 001返回现有数据
本地MSP
2018-05-03 17:56:06.745 UTC[msp]GetDefaultSigningIdentity->DEBU 002
获取默认签名标识
2018-05-03 17:56:06.746 UTC[chaincodeCmd]检查ChainCodecMDParams->INFO 003
使用默认escc
2018-05-03 17:56:06.746 UTC[chaincodeCmd]检查ChainCodecMDParams->INFO 004
使用默认vscc
2018-05-03 17:56:06.746 UTC[chaincodeCmd]getChaincodeSpec->DEBU 005 java
链码已禁用
2018-05-03 17:56:06.749 UTC[节点平台]GetDeploymentPayload->DEBU 006
从path/opt/gopath/src/github.com/fabcar/node打包node.js项目
2018-05-03 17:56:06.749 UTC[集装箱]WriteFolderToArpackage->INFO 007
rootDirectory=/opt/gopath/src/github.com/fabcar/node
2018-05-03 17:56:06.752 UTC[容器]WriteFileToPackage->DEBU 008写入
文件到tarball:src/fabcar.js
2018-05-03 17:56:06.762 UTC[集装箱]WriteFileToPackage->DEBU 009写入
tarball文件:src/package.json
2018-05-03 17:56:06.765 UTC[msp/identity]标志->德布00a标志:纯文本:
0A9C070A5C08031A0C08B69AADD70510…C1F84F000000FFFF22CB6E3A001E0000
2018-05-03 17:56:06.765 UTC[msp/identity]标志->德布00b标志:摘要:
CAD5821E4354EA410ED3567BE82D12813B46973B96FB8EEE2A1B4416A323B76
2018-05-03 17:56:06.816 UTC[chaincodeCmd]安装->DEB 00c已安装
远程响应:
2018-05-03 17:56:06.816 UTC[主]主->信息00d退出。。。。。
2018-05-03 17:56:07.116 UTC[msp]GetLocalMSP->DEBU 001返回现有数据
本地MSP
2018-05-03 17:56:07.116 UTC[msp]GetDefaultSigningIdentity->DEBU 002
获取默认签名标识
2018-05-03 17:56:07.121 UTC[chaincodeCmd]checkChaincodeCmdParams->INFO 003
使用默认escc
2018-05-03 17:56:07.121 UTC[chaincodeCmd]checkChaincodeCmdParams->INFO 004
使用默认vscc
2018-05-03 17:56:07.123 UTC[chaincodeCmd]getChaincodeSpec->DEBU 005 java
链码已禁用
2018-05-03 17:56:07.125 UTC[msp/identity]标志->德布006标志:纯文本:
0AA6070A6608031A0B08B79AADD70510…324D53500A046573630A04767363
2018-05-03 17:56:07.126 UTC[msp/identity]标志->德布007标志:摘要:
7574A79A053907A7CD90E656B612CE20AA80E95067403F097B3F6185EC25D329
错误:错误背书链码:rpc错误:代码=未知描述=超时
启动链码fabcar:1.0时过期(网络ID:dev,peerid:peer0.org1.example.com,tx:c51ca82792bd8823a60edf9c31a550836fc8932a90a2a4cec8b9c37ba24c46ea)
用法:
对等链码实例化[标志]
旗帜:
-C、 --channelID字符串应在其上执行此命令的通道
--collections config string包含链码集合配置的文件
-c、 --JSON格式的链码的ctor字符串构造函数消息(默认值“{}”)
-E、 --escc字符串用于此链码的背书系统链码的名称
-l、 --lang字符串语言链码由i编写
peer chaincode instantiate 
[chaincodeCmd] install -> DEBU 00c Installed remotely response:<status:200 payload:"OK" >
docker ps
docker logs -f <container-name-here>
peer chaincode instantiate [flags]