Hyperledger Composer - 启动网络时出错

问题描述 投票:0回答:2

我正在使用Composer的“将Hyperledger Composer区块链业务网络部署到Hyperledger Fabric”教程尝试设置我自己的网络。

唯一的区别是我从一开始就集成了第三个组织,当我调用以下命令时./byfn.sh -m up -s couchdb -a我不会让链代码安装到同行。因为我之后会用作曲家安装我自己的bna。 (我不太确定这一步,也许我弄错了。)

继续本教程,当我进入composer start network命令时,我收到一个奇怪的错误,我无法在任何地方找到任何引用。

composer network start -c PeerAdmin@testManager -n test-network -V 0.0.10 -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A andreim -C andreim/admin-pub.pem -A andreis -C andreis/admin-pub.pem -A andreii -C andreii/admin-pub.pem

Error: Error trying to start business network. Error: Parameter must be a ProposalResponse Object

任何想法都会很棒。问候。

更新资料

面料1.2

作曲家v0.19.12

创建通道,同时成功加入和更新锚点对等点。

这是签注政策:

{
    "identities": [
        {
            "role": {
                "name": "member",
                "mspId": "ManagerMSP"
            }
        },
        {
            "role": {
                "name": "member",
                "mspId": "SponsorMSP"
            }
        },
        {
            "role": {
                "name": "member",
                "mspId": "InsurerMSP"
            }
        }
    ],
    "policy": {
        "3-of": [
            {
                "signed-by": 0
            },
            {
                "signed-by": 1
            },
            {
                "signed-by": 2
            }
        ]
    }
}

这是连接配置文件:

{
    "name": "test-network",
    "x-type": "hlfv1",
    "version": "1.0.0",
    "channels": {
        "mychannel": {
            "orderers": [
                "orderer.test.com"
            ],
            "peers": {
                "peer0.manager.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                },
                "peer1.manager.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                },
                "peer0.sponsor.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                },
                "peer1.sponsor.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                },
                "peer0.insurer.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                },
                "peer1.insurer.test.com": {
                    "endorsingPeer": true,
                    "chaincodeQuery": true,
                    "ledgerQuery": true,
                    "eventSource": true
                }
            }
        }
    },
    "organizations": {
        "Manager": {
            "mspid": "ManagerMSP",
            "peers": [
                "peer0.manager.test.com",
                "peer1.manager.test.com"
            ],
            "certificateAuthorities": [
                "ca.manager.test.com"
            ]
        },
        "Sponsor": {
            "mspid": "SponsorMSP",
            "peers": [
                "peer0.sponsor.test.com",
                "peer1.sponsor.test.com"
            ],
            "certificateAuthorities": [
                "ca.sponsor.test.com"
            ]
        },
        "Insurer": {
            "mspid": "InsurerMSP",
            "peers": [
                "peer0.insurer.test.com",
                "peer1.insurer.test.com"
            ],
            "certificateAuthorities": [
                "ca.insurer.test.com"
            ]
        }
    },
    "orderers": {
        "orderer.test.com": {
            "url": "grpcs://localhost:7050",
            "grpcOptions": {
                "ssl-target-name-override": "orderer.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_ORDERER_CA_CERT"
            }
        }
    },
    "peers": {
        "peer0.manager.test.com": {
            "url": "grpcs://localhost:7051",
            "eventUrl": "grpcs://localhost:7053",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.manager.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_MANAGER_CA_CERT"
            }
        },
        "peer1.manager.test.com": {
            "url": "grpcs://localhost:8051",
            "eventUrl": "grpcs://localhost:8053",
            "grpcOptions": {
                "ssl-target-name-override": "peer1.manager.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_MANAGER_CA_CERT"
            }
        },
        "peer0.sponsor.test.com": {
            "url": "grpcs://localhost:9051",
            "eventUrl": "grpcs://localhost:9053",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.sponsor.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_SPONSOR_CA_CERT"
            }
        },
        "peer1.sponsor.test.com": {
            "url": "grpcs://localhost:10051",
            "eventUrl": "grpcs://localhost:10053",
            "grpcOptions": {
                "ssl-target-name-override": "peer1.sponsor.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_SPONSOR_CA_CERT"
            }
        },
        "peer0.insurer.test.com": {
            "url": "grpcs://localhost:11051",
            "eventUrl": "grpcs://localhost:11053",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.insurer.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_INSURER_CA_CERT"
            }
        },
        "peer1.insurer.test.com": {
            "url": "grpcs://localhost:12051",
            "eventUrl": "grpcs://localhost:12053",
            "grpcOptions": {
                "ssl-target-name-override": "peer1.insurer.test.com"
            },
            "tlsCACerts": {
                "pem": "INSERT_INSURER_CA_CERT"
            }
        }
    },
    "certificateAuthorities": {
        "ca.manager.test.com": {
            "url": "https://localhost:7054",
            "caName": "ca-manager",
            "httpOptions": {
                "verify": false
            }
        },
        "ca.sponsor.test.com": {
            "url": "https://localhost:8054",
            "caName": "ca-sponsor",
            "httpOptions": {
                "verify": false
            }
        },
        "ca.insurer.test.com": {
            "url": "https://localhost:9054",
            "caName": "ca-insurer",
            "httpOptions": {
                "verify": false
            }
        }
    }
}
docker hyperledger-fabric hyperledger hyperledger-composer
2个回答
1
投票

这里的问题是尝试将Composer 0.19与Fabric 1.2一起使用,对Composer 0.20的升级就是解决方案。


0
投票

✖启动业务网络定义。这可能需要一分钟......错误:尝试启动业务网络时出错。错误:没有来自任何同行的有效回复。来自尝试的对等通信的响应是错误的:错误:无效的链代码名称'student-business-network.bna'。名称只能包含字母数字,'_'和' - '命令失败

请任何人为此错误提供解决方案

© www.soinside.com 2019 - 2024. All rights reserved.