尝试在Hyperledger Fabric 1.0 Beta上部署业务网络无法安装Chaincode [英] Trying to deploy a business network onto hyperledger fabric 1.0 beta fails to install chaincode

查看:86
本文介绍了尝试在Hyperledger Fabric 1.0 Beta上部署业务网络无法安装Chaincode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Hyperledger Composer v0.8.0,当我尝试使用以下命令部署业务网络时,出现安装链码错误

I have v0.8.0 of hyperledger composer installed and when I try to deploy the business network using the following command I get an install chaincode error

作曲者网络部署-a test.bna -p hlfv1 -i admin -s adminpw

composer network deploy -a test.bna -p hlfv1 -i admin -s adminpw

答案是

错误:尝试部署时出错.错误:尝试安装chaincode时出错.错误

Error: error trying to deploy. Error: error trying install chaincode. Error

出什么问题了?

推荐答案

在Hyperledger v1.0.0-alpha1之后,安全模型已更改.现在,同龄人有了Admin用户的概念.用户ID"admin"是由证书颁发机构服务器控制和拥有的用户ID,它是作为Fabric Composer开发超级分类帐Fabric的一部分提供的,在Peer上没有权限.

The security model changed after hyperledger v1.0.0-alpha1. Now peers have the concept of Admin users. The userid 'admin' is a userid controlled and owned by the certificate authority server that is provided as part of the fabric composer development hyperledger fabric and has no authority on the Peer.

Development结构将对等方的Admin ID预加载到由配置文件"hlfv1"定义的KeyValStore中,并将其称为PeerAdmin.这是您必须指定的用户ID,以便将业务网络部署到对等方. 由于该用户已经预加载,因此没有机密,但是超级账本编辑器当前需要指定机密.只要指定内容,您为秘密指定什么都没有关系.所以deploy命令看起来像

The Development fabric pre-loads the peer's Admin id into the KeyValStore defined by the profile 'hlfv1' and calls it PeerAdmin. This is the userid you must specify in order to deploy a business network onto the peer. As this user has already preloaded it doesn't have a secret but hyperledger composer currently requires a secret to be specified. It doesn't matter what you specify for the secret so long as you specify something. So the deploy command looks like

作曲者网络部署-a test.bna -p hlfv1 -i PeerAdmin -s任何东西

composer network deploy -a test.bna -p hlfv1 -i PeerAdmin -s anything

这篇关于尝试在Hyperledger Fabric 1.0 Beta上部署业务网络无法安装Chaincode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆