Hyperledger fabric 将链码部署到Hyperledger Fabric 2测试网络时出错(带有javascript标记)

Hyperledger fabric 将链码部署到Hyperledger Fabric 2测试网络时出错(带有javascript标记),hyperledger-fabric,hyperledger,hyperledger-chaincode,chaincode,Hyperledger Fabric,Hyperledger,Hyperledger Chaincode,Chaincode,我只是在玩Hyperledger Fabric 2测试网络示例的演示: 我在使用Javascrip标记将链码部署到测试网络时遇到问题,执行以下命令: /network.sh deployCC-ccl javascript 我得到的错误如下: Chaincode definition approved on peer0.org1 on channel 'mychannel' failed Deploying chaincode failed 日志结果如下所示: alex@alex:~/hl-

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

我在使用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

执行
/network.sh up createChannel
命令是否正确?网络构建命令可以告诉你使用什么吗?我只是第一次尝试,效果很好…@myeongkilkim我已经执行了。/network.sh up createChannel命令,然后才尝试安装链码。我工作得很好。你能给我一些日志吗?在命令下面,
docker ps-a
docker日志
执行
/network.sh up createChannel
命令是否正确?网络构建命令可以告诉你使用什么吗?我只是第一次尝试,效果很好…@myeongkilkim我已经执行了。/network.sh up createChannel命令,然后才尝试安装链码。我工作得很好。你能给我一些日志吗?以下命令,
docker ps-a
docker日志