1

我只是在玩 Hyperledger Fabric 2 测试网络示例的演示:

Github 回购链接

超级账本文档

我在使用 Javascrip 标记将链代码部署到测试网络时遇到问题,执行以下命令:

./network.sh deployCC -ccl javascript

我得到的错误如下:

Chaincode definition approved on peer0.org1 on channel 'mychannel' failed
Deploying chaincode failed

日志结果如下:

alex@alex:~/hl-fabric/fabric-samples/test-network$ ./network.sh deployCC -ccl javascript
deploying chaincode on channel 'mychannel'
executing with the following
- CHANNEL_NAME: mychannel
- CC_NAME: basic
- CC_SRC_PATH: NA
- CC_SRC_LANGUAGE: javascript
- CC_VERSION: 1.0
- CC_SEQUENCE: 1
- CC_END_POLICY: NA
- CC_COLL_CONFIG: NA
- CC_INIT_FCN: NA
- DELAY: 3
- MAX_RETRY: 5
- VERBOSE: false
Determining the path to the chaincode
asset-transfer-basic
+ peer lifecycle chaincode package basic.tar.gz --path ../asset-transfer-basic/chaincode-javascript/ --lang node --label basic_1.0
+ res=0
Chaincode is packaged
Installing chaincode on peer0.org1...
Using organization 1
+ peer lifecycle chaincode install basic.tar.gz
+ res=0
Chaincode is installed on peer0.org1
Install chaincode on peer0.org2...
Using organization 2
+ peer lifecycle chaincode install basic.tar.gz
+ res=0
Chaincode is installed on peer0.org2
Using organization 1
+ peer lifecycle chaincode queryinstalled
+ res=0
Query installed successful on peer0.org1 on channel
Using organization 1
+ peer lifecycle chaincode approveformyorg -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile /home/alex/hl-fabric/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --channelID mychannel --name basic --version 1.0 --package-id --sequence 1
+ res=1
Chaincode definition approved on peer0.org1 on channel 'mychannel' failed
Deploying chaincode failed
4

0 回答 0