Hyperledger fabric 1.0環境構築エラーレコード

6742 ワード

cp:cannot stat'build/docker/gotools/bin/protoc-gen-go:No such file or directory(protoc-gen-goファイルが見つからない)コンパイル生成protoc-gen-goコンパイル生成protoc-gen-go cd$GOPATHgopm get-g-d github.com/golang/protobuf/protoc-gen-gogo install github.com/golang/protobuf/protoc-gen-go$GOPATH/binでprotoc-gen-go実行ファイルファイルファイルファイルファイルが発生した場合、またはコマンドが見つからなかったエラーが発生した場合、go関連ファイルをfabricコンパイル環境cp$GOPATH/bin/protoc-gen-go$GOPATH/src/githubにコピーすることを確認します.com/hyperledger/fabric/build/docker/gotools/bin/ cp $GOPATH/bin/gocov $GOPATH/src/github.com/hyperledger/fabric/build/docker/gotools/bin/ 
エラー:make dockerの実行中に発生しました:core/chaincode/shim/java/javabuild.sh:line 51:gradle:command not found解決方法:openjdkインストールを削除するoracle jdk 1.8
手動gradle、core/chaincode/shim/java/javabuildを注記します.sh内のgradleコマンド
開始./network_setup.sh up
エラー:2017-09-12 14:17:49.952 UTC[grpc]Printf->DEBU 003 grpc:addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 211.139.178.49:7050: i/o timeout"; Reconnecting to {orderer.example.com:7050 }
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!================== ERROR !!! FAILED to execute End-2-End Scenario ==================
解決策:
ホストホストhosts/etc/hostsを変更します.実際の環境では、/etc/hostsファイルを変更するのではなくDNSを構成することをお勧めします.
127.0.0.1  orderer.example.com
ベース/peer-baseを変更します.yaml、volumesを追加:
volumes:
-/etc/hosts:/etc/hosts
エラー:創世ブロックを生成できません
解決策:
root@ubuntu:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli/channel-artifacts# lschannel.tx  genesis.block  Org1MSPanchors.tx  Org2MSPanchors.tx
root@ubuntu:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli/channel-artifacts# rm -rf genesis.block/
エラー:
[root@localhost e2e_cli]# ../../build/bin/configtxgen -profile TwoOrgsOrdererGenesis 2017-09-17 05:54:50.525 PDT [common/configtx/tool] main -> INFO 001 Loading configuration2017-09-17 05:54:50.525 PDT [common/configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration:  Unsupported Config Type ""2017-09-17 05:54:50.525 PDT [common/configtx/tool] func1 -> ERRO 003 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH is set to a path which contains configtx.yaml
解決策:
[root@localhost e2e_cli]# export FABRIC_CFG_PATH=$PWD[root@localhost e2e_cli]# ../../build/bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
エラー:
cli                       | 2017-09-19 14:58:59.485 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0AC3060A1508021A0608B3E184CE0522...EBE756E2B3F85609A68E923C9B9499B3 cli                       | 2017-09-19 14:58:59.485 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: 57743FC2DDB7C9C207351F728119716FF214994F050D89C3D19805B9923A5DA4 cli                       | Error: Got unexpected status: BAD_REQUESTcli                       | Usage:cli                       |   peer channel create [flags]cli                       | cli                       | Flags:cli                       |   -c, --channelID string   In case of a newChain command, the channel ID to create.cli                       |   -f, --file string        Configuration transaction file generated by a tool such as configtxgen for submitting to orderercli                       |   -t, --timeout int        Channel creation timeout (default 5)cli                       | cli                       | Global Flags:cli                       |       --cafile string              Path to file containing PEM-encoded trusted certificate(s) for the ordering endpointcli                       |       --logging-level string       Default logging level and overrides, see core.yaml for full syntaxcli                       |   -o, --orderer string             Ordering service endpointcli                       |       --test.coverprofile string   Done (default "coverage.cov")cli                       |       --tls                        Use TLS when communicating with the orderer endpointcli                       |   -v, --version                    Display current version of fabric peer servercli                       | cli                       | !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!cli                       | ================== ERROR !!! FAILED to execute End-2-End Scenario ==================cli                       | cli                       | sleep: missing operandcli                       | Try 'sleep --help' for more information.
解決策:
このようなエラーは、channelが確立され、名前が競合しているためです.
    <EXACT_TIMESTAMP> UTC [msp] Sign -> DEBU 064 Sign: digest: 5ABA6805B3CDBAF16C6D0DCD6DC439F92793D55C82DB130206E35791BCF18E5F
    Error: Got unexpected status: BAD_REQUEST
    Usage:
        peer channel create [flags]

1
2
3
4
解決策:dockerを削除し、再起動します.最後のコマンドを実行すると1)1つのコンテナdocker rm 2を削除)1つのコンテナdocker rm-f 3を強制的に削除)すべてのコンテナdocker rm-f$(docker ps-aq)を強制的に削除
$GOPATH
cp:cannot stat'build/docker/gotools/bin/protoc-gen-go:No such file or directory(protoc-gen-goファイルが見つからない)
コンパイル生成protoc-gen-go
#コンパイル生成protoc-gen-go
cd $GOPATH
gopm get -g -d github.com/golang/protobuf/protoc-gen-go
go install github.com/golang/protobuf/protoc-gen-go
#$GOPATH/binにprotoc-gen-go実行ファイルが表示されていることを確認
ファイルまたはコマンドが見つからないエラーが発生した場合は、go関連ファイルをfabricコンパイル環境にコピーします.
cp $GOPATH/bin/protoc-gen-go $GOPATH/src/github.com/hyperledger/fabric/build/docker/gotools/bin/
cp $GOPATH/bin/gocov $GOPATH/src/github.com/hyperledger/fabric/build/docker/gotools/bin/
エラー:
make dockerの実行:core/chaincode/shim/java/javabuild.sh: line 51: gradle: command not found
インストール:oracle jdk 1.8