2017-10-13 120 views
0

更新到0.14之后,我没有更多的可以从CLI连接到链作曲家0.14 - 错误:当前标识尚未注册:管理员

composer network ping -p hlfv1 -n basic-sample-network -i admin -s adminpw 

composer-rest-server -p hlfv1 -n basic-sample-network -i admin -s adminpw -N never 

我有以下错误

Error: Error trying to ping. Error: Error trying to query business network. 
Error: chaincode error (status: 500, message: Error: The current identity has not been registered: admin) 

所有作曲家组件进行了更新到0.14,而试验是按照基本-SA发mple网络。有关此信息,npm test这个例子是完美的。

操作系统:Ubuntu的

回答

1

请确认您已经阅读0.14.0版本说明,特别是“如何应对这一变化”部分: https://github.com/hyperledger/composer/releases/tag/v0.14.0

你需要更新你的ACL和重新部署您的网络,绑定网络管理员参与者。

There are two ways for specifying the business network administrators on the command line: Note: This option is the one most users will want! When running composer network deploy and composer network start, in addition to the normal parameters you would use, you should also include -A admin -S to bind the admin identity as a network admin participant. If you don't do this, the identity you use to deploy the business network, usually PeerAdmin, will be bound into the business network as a business network administrator, and this is probably not what you want.

+0

我确认我已阅读发行说明,因为我不能让它与我如何开发,我用这是更新的0.14.0进行测试 – PPCM

+0

基本采样网络回购请包括您用于“作曲家网络部署”和“作曲家网络开始”的命令。您是否包含发行说明中所述的'-A admin -S'?命令的输出是什么? –

+0

要部署,我使用: 'composer network deploy -a dist/basic-sample-network.bna -p hlfv1 -i PeerAdmin -s randomString' – PPCM