【问题标题】:error in step Starting business network步骤错误启动业务网络
【发布时间】: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


【解决方案1】:

我猜您正在运行 Composer v0.19(最新版本),但该错误看起来像您使用的是 Fabric 1.0。但是 Composer v0.19 只支持 Fabric 1.1 GA。

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

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

【讨论】:

  • 非常感谢!现在它的工作,你总是救我:D
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-11-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-23
  • 1970-01-01
相关资源
最近更新 更多