启动链码报rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport start error(示例代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动链码报rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport start error(示例代码相关的知识,希望对你有一定的参考价值。

参考链接:https://stackoverflow.com/questions/48007519/unimplemented-desc-unknown-service-protos-chaincodesupport

 

启动链码时报错如下:

[email protected]:/opt/gopath/src/chaincode/chaincode002# CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode002

2018-05-28 01:15:24.369 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO

2018-05-28 01:15:24.369 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...

2018-05-28 01:15:24.374 UTC [shim] func1 -> ERRO 003 Received error from server, ending chaincode stream: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport

start error

主要原因是版本问题v1.1.0,7051端口应该使用在v1.0.0

所以在v1.1.0正确的启动chaincode命令为:

CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode002

以上是关于启动链码报rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport start error(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

Error response from daemon: rpc error: code = Unknown desc = name conflicts with

解决Docker Swarm集群Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in

error: RPC failed; result=22, HTTP code = 413 MiB错误解决

Error response from daemon: rpc error: code = AlreadyExists desc = name conflicts with an existing o

解决报错Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFa

git push报错:error: RPC failed; result=22, HTTP code = 413