docker - 对等节点状态命令在超级账本结构网络中无法正常工作
问题描述
我有这样的问题。我对超级账本结构非常陌生。我在visual studio代码中将一个shell附加到一个正在运行的对等容器并在该终端中点击对等节点启动命令它给了我一个错误说,
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
有人可以帮我解决这个问题吗?我搜索了很多,但我无法找到解决问题的方法。谢谢你?
解决方案
edit: the problem is you are using an old card with a new setup. when you create the app and then restarted the environment, it leads to the regeneration of the certificates.
I guess the problem is the FABRIC_VERSION. When you set it to hlfv1 and get bash into peer container (docker exec -it peer0.org1.example.com bash
), the peer commands are working properly but when you set it to hlfv12 there are some peer commands are not working. I guess there is something wrong with the startup scripts. There is no "creds" folder exists under hlfv12/composer like hlfv1/composer by the way..
推荐阅读
- vue.js - 我如何将 Newrelic 与 Nuxt.js 一起使用
- java - JSON 解析错误:无法反序列化 START_ARRAY 令牌中的实例
- java - JUnit:如何通过构造函数创建具有依赖注入的测试类
- c# - 如果未经授权,如何本地化错误消息
- r - R 中的 dplyr 包:subset() 函数按月对数据帧进行子集化;错误 -<0 行>(或 0 长度行名称)
- c++ - 对字符串的真实条件检查
- vba - 将数据从 Word 书签传递到 Access 表单中的字段
- opencv - 带有线程构建块的opencv静态库?
- scala - Gatling 更新文件用于在调用前在 feed() 中提供模拟
- javascript - 如何在 Laravel 中不重新加载页面的情况下计算列和实时表编辑和金额更改的总金额