織物サンプルのバランス転送とfabcarサンプルのテストとファブリックPTEテストで同じ問題が発生しました。
ドッカーの作成ファイルにCORE_PEER_CHAINCODELISTENADDRESS
をピアのcontainername:port
に設定して解決しました。
例えば、
CORE_PEER_CHAINCODELISTENADDRESS=peer0.org1.example.com:7052
問題:。docker logs CONTAINER-ID
で検査する場合、エラーの下にショーを記録(作成し、一定時間後に殺され)Chaincodeコンテナ。
UTC [shim] userChaincodeStreamGetter -> ERRO 001 x509: cannot validate certificate for 172.18.0.5 because it doesn't contain any IP SANs
error trying to connect to local peer
github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:109
github.com/hyperledger/fabric/core/chaincode/shim.Start
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:148
main.main
/chaincode/input/src/github.com/example_cc/go/example_cc.go:199
runtime.main
/opt/go/src/runtime/proc.go:185
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:2337
2017-12-26 09:59:52.823 UTC [example_cc0] Errorf -> ERRO 002 Error starting Simple chaincode: error trying to connect to local peer: x509: cannot validate certificate for 172.18.0.5 because it doesn't contain any IP SANs
終了したチェーンコードコンテナのログを取得できますか? 例: "docker logs 0d893fb03bc6"(添付した画像のコンテナID) –
@GariSinghはい、次のように表示されます:2017-11-30 14:25:51.519 UTC [shim] userChaincodeStreamGetter - > ERRO 001ローカルピアに接続する:コンテキストデッドラインを超えた シンプルチェインコードの開始中にエラーが発生しました:ローカルピアへの接続中にエラーが発生しました: – antoniovassell