Hyperledger Fabric安装问题备忘(二)
生活随笔
收集整理的這篇文章主要介紹了
Hyperledger Fabric安装问题备忘(二)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
報錯信息:Channel name : mychannelCreating channel...CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crtCORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.keyCORE_PEER_LOCALMSPID=Org1MSPCORE_VM_ENDPOINT=unix:///host/var/run/docker.sockCORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crtCORE_PEER_TLS_ENABLED=trueCORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/mspCORE_PEER_ID=cliCORE_LOGGING_LEVEL=DEBUGCORE_PEER_ADDRESS=peer0.org1.example.com:70512017-11-15 05:35:20.107 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP2017-11-15 05:35:20.107 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity2017-11-15 05:35:20.109 UTC [grpc] Printf -> DEBU 003 Failed to dial orderer.example.com:7050: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.example.com\")"; please retry.Error: Error connecting due to? rpc error: code = Internal desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \"x509: ECDSA verification failure\" while trying to verify candidate authority certificate \"tlsca.example.com\")"Usage:peer channel create [flags]Flags:-c, --channelID string? ?In case of a newChain command, the channel ID to create.-f, --file string? ? ? ? Configuration transaction file generated by a tool such as configtxgen for submitting to orderer-t, --timeout int? ? ? ? Channel creation timeout (default 5)Global Flags:--cafile string? ? ? ? ? ? ? Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint--logging-level string? ? ? ?Default logging level and overrides, see core.yaml for full syntax-o, --orderer string? ? ? ? ? ? ?Ordering service endpoint--test.coverprofile string? ?Done (default "coverage.cov")--tls? ? ? ? ? ? ? ? ? ? ? ? Use TLS when communicating with the orderer endpoint-v, --version? ? ? ? ? ? ? ? ? ? Display current version of fabric peer server!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!================== ERROR !!! FAILED to execute End-2-End Scenario ==================解決方法:make clean,再嘗試安裝,但是clean會刪除我們下載好的docker鏡像,這不是我們想要的,所以需要修改hyperledger/fabric/MakeFile 將第403行`-docker images -q $(DOCKER_NS)/fabric-$(TARGET) | xargs -I '{}' docker rmi -f '{}'`注釋掉。然后使用下面的命令清理掉這臺server上的所有容器:
?
docker ps -a|awk '{print $1}'|xargs -i docker stop {}docker ps -a|awk '{print $1}'|xargs -i docker rm {}轉(zhuǎn)載于:https://www.cnblogs.com/szqmvp/p/7838626.html
總結(jié)
以上是生活随笔為你收集整理的Hyperledger Fabric安装问题备忘(二)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 标准C程序设计七---12
- 下一篇: 结对-贪吃蛇-项目进度