hyperledger-fabric - 链码注册失败
问题描述
我试图在多个主机环境中实例化 nodejs 链码并导致链码注册错误。Golang 智能合约在多个主机环境中完美运行。
错误: could not assemble transaction. err propseal response was not succesful, error code 500, msg chaincode registration failed: container exiter with 127
对等日志:
2019-11-05 06:03:09.941 UTC [endorser] SimulateProposal -> ERRO 04c [mychannel][6e8f647c] failed to invoke chaincode name:"lscc" , error: container exited with 127
github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
chaincode registration failed
环境变量有什么需要改的吗?
解决方案
您需要设置 CC_SRC_PATH github/chaincode/。
推荐阅读
- powershell - 命令间歇性地作为作业的作业打印状态运行
- python - r 子集按组对数据帧进行分层;子集每组的最大观察量,只要真假布尔值是平衡的
- angular - 未能在“历史”上执行“replaceState”
- css - 在 Vuetify 框架中覆盖渲染的 CSS 类
- android - 如何获得初始视图以加载到 android 应用程序中?
- asp.net-core - 在 ConfigureServices 中按环境获取连接字符串
- python - ElementNotVisibleException:Python + Selenium,Web 上的登录凭据
- android - Android - 使用 FragmentPagerAdapter 和旋转设备时的 NPE
- python-3.x - QPushButton 聚焦行为
- c++ - 如何在 C++ 中为数组分配不同的索引值