具体报错内容如下:OCI runtime create failed: container_linux.go:349: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\": unknown"
Hyperledger Fabric2.0初始化链码时遇到如上错误
尝试了很多办法都未得到解决,最后猜想可能跟智能合约的依赖包有关,之前为了提速使用的是
go env -w GOPROXY=https://goproxy.cn
国内代理来配置依赖,后来改回了原来的代理,删除原来的依赖包并重新下载,问题就得到了解决
go env -w GOPROXY=https://goproxy.io,direct
配置好代理后就开始根据自动生成的go.mod下载依赖包至vendor中

在初始化Hyperledger Fabric2.0链码时遇到'exec: "chaincode": executable file not found in $PATH: unknown'错误。问题源于智能合约的依赖包,通过切换代理,删除原有依赖并重新下载解决。配置完成后,启动自动化脚本,成功执行并生成go.mod、go.sum和vendor文件夹。

1691

被折叠的 条评论
为什么被折叠?



