Hyperledger Fabric 链码在安装时抛出错误

时间:2021-01-03 05:34:53

标签: hyperledger-fabric hyperledger hyperledger-chaincode

我正在尝试安装用 golang 编写的链码。当我执行安装命令 - peer chaincode install -n chaincode -v $CC_VERSION -p chaincode 时,它在几秒钟后返回以下错误:

Error: error getting chaincode code chaincode: error getting chaincode package bytes: Error obtaining imports: command <go list -f {{ join .Imports "\n"}} chaincode>: failed with error: "timed out after 1m0s"

最后几行日志:

2021-01-03 04:49:24.666 UTC [msp] setupSigningIdentity -> DEBU 035 Signing identity expires at 2029-11-11 17:12:00 +0000 UTC
2021-01-03 04:49:24.666 UTC [msp] Validate -> DEBU 036 MSP Org1MSP validating identity
2021-01-03 04:49:24.756 UTC [grpc] DialContext -> DEBU 037 parsed scheme: ""
2021-01-03 04:49:24.756 UTC [grpc] DialContext -> DEBU 038 scheme "" not registered, fallback to default scheme
2021-01-03 04:49:24.756 UTC [grpc] watcher -> DEBU 039 ccResolverWrapper: sending new addresses to cc: [{peer0-org1:7051 0  <nil>}]
2021-01-03 04:49:24.756 UTC [grpc] switchBalancer -> DEBU 03a ClientConn switching balancer to "pick_first"
2021-01-03 04:49:24.756 UTC [grpc] HandleSubConnStateChange -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc0001f6b00, CONNECTING
2021-01-03 04:49:24.774 UTC [grpc] HandleSubConnStateChange -> DEBU 03c pickfirstBalancer: HandleSubConnStateChange: 0xc0001f6b00, READY
2021-01-03 04:49:24.825 UTC [grpc] DialContext -> DEBU 03d parsed scheme: ""
2021-01-03 04:49:24.825 UTC [grpc] DialContext -> DEBU 03e scheme "" not registered, fallback to default scheme
2021-01-03 04:49:24.825 UTC [grpc] watcher -> DEBU 03f ccResolverWrapper: sending new addresses to cc: [{peer0-org1:7051 0  <nil>}]
2021-01-03 04:49:24.825 UTC [grpc] switchBalancer -> DEBU 040 ClientConn switching balancer to "pick_first"
2021-01-03 04:49:24.825 UTC [grpc] HandleSubConnStateChange -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc000272e90, CONNECTING
2021-01-03 04:49:24.828 UTC [grpc] HandleSubConnStateChange -> DEBU 042 pickfirstBalancer: HandleSubConnStateChange: 0xc000272e90, READY
2021-01-03 04:49:24.889 UTC [msp] GetDefaultSigningIdentity -> DEBU 043 Obtaining default signing identity
2021-01-03 04:49:24.889 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 044 Using default escc
2021-01-03 04:49:24.889 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 045 Using default vscc
2021-01-03 04:49:25.312 UTC [chaincode.platform.golang] getCodeFromFS -> DEBU 046 getCodeFromFS chaincode
Error: error getting chaincode code chaincode: error getting chaincode package bytes: Error obtaining imports: command <go list -f {{ join .Imports "\n"}} chaincode>: failed with error: "timed out after 1m0s"

我还尝试通过执行 go build 命令来编译和构建链码,它成功地生成了二进制文件而没有抛出任何错误。

0 个答案:

没有答案