2017-12-29 27 views
0

버전 v1.1.0 이전의 패브릭 코드는 ok이지만, 패브릭 릴리스 버전 v1.1.0-preview을 다운로드합니다. 도버 모드가 아닌 dev 모드로 프로그램을 부팅합니다. 주문자, 피어, example01의 기기 구성은 다음입니다 :왜 dev 모드의 chaincode가 throw되는 동안 피어에 연결할 수 없습니까? 구현되지 않은 desc = 알 수없는 서비스 protos.ChaincodeSupport

orderer configuration

peer configuration

example01 cofiguration 다음, 주문자, 피어가 정상적으로 시작할 수 있지만, example01를 시작할 수 없습니다,

, grpc 성공을 연결할 수 없습니다 보인다

error message for example01

GOROOT=/opt/go1.9.2 #gosetup 
GOPATH=/home/test/gopath #gosetup 
/opt/go1.9.2/bin/go build -i -gcflags "-N -l" -tags nopkcs11 "-ldflags=-linkmode internal" -o /tmp/___example01 github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example01 #gosetup 
/tmp/___example01 -peer.address 127.0.0.1:7051 #gosetup 
2017-12-29 15:14:01.381 CST [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 
2017-12-29 15:14:01.381 CST [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level:) starting up ... 
2017-12-29 15:14:01.383 CST [shim] func1 -> ERRO 003 Received error from server, ending chaincode stream: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport 
Error starting Simple chaincode: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport 
Process finished with exit code 0 

나는 chaincode.go의 키 코드를 고려해 보았습니다. chatWithPeer 메소드가 실패했습니다. grcode 서비스에 chaincode_shim.proto를 사용하면 실패했습니다.

// Interface that provides support to chaincode execution. ChaincodeContext 
// provides the context necessary for the server to respond appropriately. 
service ChaincodeSupport { 

    rpc Register(stream ChaincodeMessage) returns (stream ChaincodeMessage) {} 


} 

그럼, 왜 당신은 잘못된 포트를 사용하고 Unimplemented desc = unknown service protos.ChaincodeSupport

답변

0

을 던져. v1.1에서는 포트 7052를 사용했습니다. v1.0에서는 7051입니다.