2017-06-19 187 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脚本的执行应该创建一个没有任何问题的网络。你会尝试手动“运行工具”吗?

相关问题