【发布时间】:2018-04-18 18:53:09
【问题描述】:
我用Setting up a Blockchain Business Network With Hyperledger Fabric & Composer Running in Multiple Physical Machine 开发了hyperledger composer tutorial(docker ps:第 1 台机器 6 服务和第 2 台机器 2 服务正在运行)并且所有步骤都在工作中查找。
composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna
✔ Installing business network. This may take a minute…
Successfully installed business network tutorial-network, version 0.0.1
但我在启动业务网络的步骤中有错误:
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
Starting business network tutorial-network at version 0.0.1
Processing these Network Admins:
userName: admin
✖ Starting business network definition. This may take a minute…
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: Unknown chaincodeType: NODE)
Command failed
我的连接配置文件:
{
"name": "hlfv1",
"x-type": "hlfv1",
"x-commitTimeout": 300,
"version": "1.0.0",
"client": {
"organization": "Org1",
"connection": {
"timeout": {
"peer": {
"endorser": "300",
"eventHub": "300",
"eventReg": "300"
},
"orderer": "300"
}
}
},
"channels": {
"composerchannel": {
"orderers": [
"orderer.example.com"
],
"peers": {
"peer0.org1.example.com": {}
}
}
},
"organizations": {
"Org1": {
"mspid": "Org1MSP",
"peers": [
"peer0.org1.example.com"
],
"certificateAuthorities": [
"ca.org1.example.com"
]
}
},
"orderers": {
"orderer.example.com": {
"url": "grpc://localhost:7050"
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpc://localhost:7051",
"eventUrl": "grpc://localhost:7053"
},
"peer1.org1.example.com": {
"url": "grpc://localhost:8051",
"eventUrl": "grpc://localhost:8053"
},
"peer2.org1.example.com": {
"url": "grpc://localhost:9051",
"eventUrl": "grpc://localhost:9053"
}
},
"certificateAuthorities": {
"ca.org1.example.com": {
"url": "http://localhost:7054",
"caName": "ca.org1.example.com"
}
}
}
提前谢谢你!
【问题讨论】:
-
在安装网络的第一行编写教程,在启动网络的第二行编写教程
-
对不起,我复制错了,现在我编辑我的问题。我在这个错误中的问题是什么?
标签: hyperledger-fabric hyperledger hyperledger-composer