步骤中的错误启动业务网络

时间:2018-04-18 06:06:11

标签: hyperledger-fabric hyperledger hyperledger-composer

我用hyperledger composer tutorial开发了Setting up a Blockchain Business Network With Hyperledger Fabric & Composer Running in Multiple Physical Machine(docker ps:第一台机器6服务和第二台机器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"
        }
    }
}

提前谢谢!

1 个答案:

答案 0 :(得分:1)

我猜你正在运行Composer v0.19(最新版本),但是这个错误看起来像你有Fabric 1.0。但Composer v0.19仅支持Fabric 1.1 GA。

Composer v0.19利用了Fabric-1.1中引入了对节点链代码的支持这一事实。

我认为您需要删除容器和图像并下载1.1GA版本的Fabric,并从那里继续。