颁发身份超级账本编写器时授权失败 [英] Authorization failure while issuing identity hyperledger composer
问题描述
我阅读了有关建议检查docker.yaml的答案的答案.
I read the answer suggesting to check the docker.yaml for ca.
文件路径位于下面,我确认用户名是admin,密码是adminpw.不幸的是,我仍然收到authorizatin失败错误.
The file path is below where I confirm that the username is admin and password is adminpw. Unfortunately I still get authorizatin failure error.
我用来发布身份的命令
composer identity issue -n 'trade-network' -p hlfv1 -i admin -s adminpw -u trader1 -a "org.acme.trading.Trader#TRADER1"
错误:fabric-ca请求注册失败,并显示错误[[{{code:400," message:" Authorization failure}]] 命令失败.
Error: fabric-ca request register failed with errors [[{"code":400,"message":"Authorization failure"}]] Command failed.
/home/composer/fabric-tools/fabric-scripts/hlfv1/composer/docker-compose.yml 来自docker.yaml的行
/home/composer/fabric-tools/fabric-scripts/hlfv1/composer/docker-compose.yml line from docker.yaml
command: sh -c 'fabric-ca-server start --ca.certfile /etc/hyperledger/fabric-ca-server-config/org1.example.com-cert.pem --ca.keyfile /etc/hyperledger/fabric-ca-server-config/a22daf356b2aab5792ea53e35f66fccef1d7f1aa2b3a2b92dbfbf96a448ea26a_sk -b admin:adminpw -d'
推荐答案
我遇到了类似的错误,我可以使用Playground添加参与者,但是在发布身份时却遇到了授权错误.
I faced similar error where I was able to add participants using playground however while issuing identity I face this error of Authorisation.
解决方法:
删除管理卡:
composer card delete --card admin@your-network-name
导入卡:
composer card import -f admin@your-network-name
再次使用以下命令安装并启动网络.
again install and start the network using below command.
安装:
composer network install -a your-network-name@0.0.1.bna -c PeerAdmin@hlfv1
开始:
composer network start -c PeerAdmin@hlfv1 -V 0.0.1 -n your-network-name -A admin -S adminpw
然后导入卡并尝试颁发身份,您将不会看到此错误.
then Import the card and try issuing identity you will not see the error.
这篇关于颁发身份超级账本编写器时授权失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!