啓動鏈碼報rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport start error

參考連接:https://stackoverflow.com/questions/48007519/unimplemented-desc-unknown-service-protos-chaincodesupportide

 

啓動鏈碼時報錯以下:ui

root@95a911a49341:/opt/gopath/src/chaincode/chaincode002# CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode002spa

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

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

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.ChaincodeSupportrpc

start errorget

主要緣由是版本問題v1.1.0,7051端口應該使用在v1.0.0io

因此在v1.1.0正確的啓動chaincode命令爲:class

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

相關文章
相關標籤/搜索