我有这样的问题。我是超级分类帐结构的新手。我在Visual Studio代码中将外壳连接到正在运行的对等容器,并在该终端中命中对等节点启动命令,这给我一个错误,
2018-09-13 09:08:04.621 UTC [nodeCmd] status -> INFO 040 Error trying to get status from local peer: rpc error: code = Unknown desc
= access denied
status:UNKNOWN
Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied
有人可以帮助我解决此问题吗?我进行了很多搜索,但是找不到解决问题的方法。谢谢吗?
答案 0 :(得分:0)
编辑:问题是您使用的旧卡具有新设置。创建应用程序然后重新启动环境时,将导致证书的重新生成。
我想问题是FABRIC_VERSION。将其设置为hlfv1并将bash放入对等容器(docker exec -it peer0.org1.example.com bash
)时,对等命令正常运行,但将其设置为hlfv12时,某些对等命令不起作用。我猜启动脚本有问题。顺便说一句,在hlfv12 / composer下没有像hlfv1 / composer这样的“ cred”文件夹。
答案 1 :(得分:0)
您需要在正确配置的客户端上运行peer
命令(通过正确的身份验证材料)。就我而言,这是CLI节点。
对等节点日志:
root@bba2c96e744e:/# peer node status
2019-04-04 13:26:18.407 UTC [nodeCmd] status -> INFO 001 Error trying to get status from local peer: rpc error: code = Unknown desc = access denied
status:UNKNOWN
Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied
root@bba2c96e744e:/# peer chaincode list --installed
Error: Bad response: 500 - access denied for [getinstalledchaincodes]: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]
root@bba2c96e744e:/# peer logging getlevel system
Error: rpc error: code = Unknown desc = access denied
CLI 节点日志:
root@4079f33980f3:/# peer node status
status:STARTED
root@4079f33980f3:/# peer chaincode list --installed
Get installed chaincodes on peer:
Name: ccc, Version: 1.0, Path: chaincode/ccc, Id: e75e5770a29401d840b46a775854a1bb8576c6d83cf2832dce650d2a984ab29a
root@4079f33980f3:/# peer logging getlevel system
2019-04-04 13:26:02.287 UTC [cli/logging] getLevel -> INFO 001 Current log level for peer module 'system': INFO