2017-06-19 192 views
1

我在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/p‌​eerOrganizations/org‌​1.example.com/users/‌​[email protected]‌​om/msp/intermediatec‌​erts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​erOrganizations/org1‌​.example.com/users/A‌​[email protected]‌​m/msp/intermediatece‌​rts: 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/p‌​eerOrganizations/org‌​1.example.com/users/‌​[email protected]‌​om/msp/intermediatec‌​erts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​erOrganizations/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/p‌​eerOrganizations/org‌​1.example.com/users/‌​[email protected]‌​om/msp/config.yaml]: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​erOrganizations/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"

回答

1

嗯,首先注意到的,那你的消息正在到達這裏

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/p‌​eerOrganizations/org‌​1.example.com/users/‌​[email protected]‌​om/msp/intermediatec‌​erts]. Skipping.: [stat /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/pe‌​erOrganizations/org1‌​.example.com/users/A‌​[email protected]‌​m/msp/crls: no such file or directory]

他們不是錯誤消息,這很好。

接下來,注意

export FABRIC_CFG_PATH=$PWD

是在configtxgen工具方面有關,並在執行對CLI命令是沒有意義的。

不確定你想要怎麼處理network.sh腳本,因爲它的主要目標僅僅是運行端到端測試,兩個組織每個都有兩個對等體,安裝並實例化chaicode,發出事務和查詢結果主張預期的結果。

+0

我指 http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html?cm_mc_uid=64108713483714975446507&cm_mc_sid_50200000=1497559454&cm_mc_sid_52640000=1497559454 創建並啓動網絡,這樣我可以查詢或調用交易。 –

0

我不知道爲什麼會發生這種錯誤。 network.sh腳本的執行應該創建一個沒有任何問題的網絡。你會嘗試手動「運行工具」嗎?

相關問題