http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Chaincode-setup/の指示に従っています。
Windows で Docker Toolbox を使用していますが、ピアと CA を正常に開始できました。ピアと CA を起動したときのログは次のとおりです。
[33mvp0_1 |[0m [36m13:18:52.349 [peer] chatWithSomePeers -> DEBU 04c[0m Starting up the first peer of a new network
[33mvp0_1 |[0m 13:18:52.352 [nodeCmd] serve -> INFO 04d[0m Starting peer with ID=name:"vp0" , network ID=dev, address=172.17.0.3:7051, rootnodes=, validator=true
[33mvp0_1 |[0m [36m13:18:52.358 [consensus/statetransfer] verifyAndRecoverBlockchain -> DEBU 04e[0m Validating existing blockchain, highest validated block is 0, valid through 0
[33mvp0_1 |[0m 13:18:52.359 [consensus/statetransfer] blockThread -> INFO 04f[0m Validated blockchain to the genesis block
[33mvp0_1 |[0m [36m13:18:52.360 [consensus/handler] 1 -> DEBU 050[0m Starting up message thread for consenter
[33mvp0_1 |[0m [36m13:18:52.363 [peer] ensureConnected -> DEBU 051[0m Starting Peer reconnect service (touch service), with period = 6s
[33mvp0_1 |[0m 13:18:52.365 [rest] StartOpenchainRESTServer -> INFO 052[0m Initializing the REST service on 0.0.0.0:7050, TLS is disabled.
しかし、以下のコマンドでチェーンコードを開始すると
CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example02
以下のエラーが発生します。
19:30:34.138 [shim] INFO : error with chaincode log level: logger: invalid log level level=
19:30:34.140 [shim] DEBU : Peer address: 0.0.0.0:7052
2016/10/01 19:30:35 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 0.0.0.0:7052: conne
ctex: The requested address is not valid in its context."; Reconnecting to {"0.0.0.0:7052" <nil>}
2016/10/01 19:30:36 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 0.0.0.0:7052: conne
ctex: The requested address is not valid in its context."; Reconnecting to {"0.0.0.0:7052" <nil>}
19:30:37.143 [shim] ERRO : Error trying to connect to local peer: grpc: timed out when dialing
Error starting Simple chaincode: Error trying to connect to local peer: grpc: timed out when dialing2016/10/01 19:30:37 grpc: addrConn.resetTransport
failed to create client transport: connection error: desc = "transport: dial tcp 0.0.0.0:7052: connectex: The requested address is not valid in its co
ntext."; Reconnecting to {"0.0.0.0:7052" <nil>}
なぜこのエラーが発生するのですか?