我在GitHub上使用Hyperledger Fabric代碼。當我手動以下從生成證書要通過CLI容器啓動網絡中的所有步驟,我得到了下面的錯誤,當我執行Hyperledger Fabric Peer 2通道啓動中的對等錯誤
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem
我甚至 export FABRIC_CFG_PATH=$PWD
但但我仍然得到以下錯誤:
2017-06-15 19:35:37.332 UTC [msp] getMspConfig -> INFO 001 intermediate certs folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]om/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/A[email protected]m/msp/intermediatecerts: no such file or directory]
2017-06-15 19:35:37.332 UTC [msp] getMspConfig -> INFO 002 crls folder not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]om/msp/intermediatecerts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/A[email protected]m/msp/crls: no such file or directory]
2017-06-15 19:35:37.333 UTC [msp] getMspConfig -> INFO 003 MSP configuration file not found at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]om/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/A[email protected]m/msp/config.yaml: no such file or directory]
,當我嘗試通過./network.sh了,我碰到下面的錯誤中提供的自動腳本來運行它:
2017-06-15 20:18:45.664 UTC [grpc] Printf -> DEBU 006 Failed to dial orderer.example.com:7050: connection error: desc = "transport: authentication handshake failed: x509: certificate has expired or is not yet valid"; please retry.Error: Error connecting due to rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate has expired or is not yet valid"
我指 http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html?cm_mc_uid=64108713483714975446507&cm_mc_sid_50200000=1497559454&cm_mc_sid_52640000=1497559454 創建並啓動網絡,這樣我可以查詢或調用交易。 –