hyperledger / caliper-benchmarks

Sample benchmark files for Hyperledger Caliper https://wiki.hyperledger.org/display/caliper
https://hyperledger.github.io/caliper-benchmarks/
Apache License 2.0
109 stars 118 forks source link

Failed to pull Hyperledger Fabric binaries #40

Closed SaaShah closed 4 years ago

SaaShah commented 4 years ago

Running generate.sh in networks/fabric/config_solo results in following error;

mrx@devbox:~/code/caliper-benchmarks/networks/fabric/config_solo$ ./generate.sh 

Pull Hyperledger Fabric binaries

===> Downloading version x86_64-1.0.0 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v1.0.0/hyperledger-fabric-linux-amd64-1.0.0.tar.gz
--2020-01-08 17:31:58--  https://github.com/hyperledger/fabric/releases/download/v1.0.0/hyperledger-fabric-linux-amd64-1.0.0.tar.gz
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-01-08 17:31:58 ERROR 404: Not Found.

tar (child): hyperledger-fabric-linux-amd64-1.0.0.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'hyperledger-fabric-linux-amd64-1.0.0.tar.gz': No such file or directory
==> There was an error downloading the binary file.

------> x86_64-1.0.0 platform specific fabric binary is not available to download <----

./generate.sh: line 13: ./bin/cryptogen: No such file or directory
./generate.sh: line 14: ./bin/configtxgen: No such file or directory
./generate.sh: line 15: ./bin/configtxgen: No such file or directory
find: ‘crypto-config’: No such file or directory
SaaShah commented 4 years ago

Changing the fabric-version from:

  curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.0.0 1.0.0 0.4.14 -ds

to

curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.1 1.4.1 0.4.14 -ds

results in new error:

mrx@devbox:~/code/caliper-benchmarks/networks/fabric/config_solo$ ./generate.sh 

Pull Hyperledger Fabric binaries

===> Downloading version 1.4.1 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v1.4.1/hyperledger-fabric-linux-amd64-1.4.1.tar.gz
--2020-01-08 17:41:55--  https://github.com/hyperledger/fabric/releases/download/v1.4.1/hyperledger-fabric-linux-amd64-1.4.1.tar.gz
Resolving github.com (github.com)... 140.82.118.3
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/66573241/43b22200-07a4-11ea-9fbd-580eec018a23?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200108T174203Z&X-Amz-Expires=300&X-Amz-Signature=32cb1f9c4e734c5b1adbdcfe38d2f7a4a79d5cd2c9dc599a434c12becb2c11e8&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhyperledger-fabric-linux-amd64-1.4.1.tar.gz&response-content-type=application%2Foctet-stream [following]
--2020-01-08 17:41:55--  https://github-production-release-asset-2e65be.s3.amazonaws.com/66573241/43b22200-07a4-11ea-9fbd-580eec018a23?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200108T174203Z&X-Amz-Expires=300&X-Amz-Signature=32cb1f9c4e734c5b1adbdcfe38d2f7a4a79d5cd2c9dc599a434c12becb2c11e8&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhyperledger-fabric-linux-amd64-1.4.1.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.168.155
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.168.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54434345 (52M) [application/octet-stream]
Saving to: ‘hyperledger-fabric-linux-amd64-1.4.1.tar.gz’

hyperledger-fabric-linux-amd64-1.4.1.ta 100%[==============================================================================>]  51.91M  18.4MB/s    in 2.8s    

2020-01-08 17:41:58 (18.4 MB/s) - ‘hyperledger-fabric-linux-amd64-1.4.1.tar.gz’ saved [54434345/54434345]

bin/
bin/orderer
bin/peer
bin/configtxlator
bin/discover
bin/idemixgen
bin/cryptogen
bin/configtxgen
config/
config/orderer.yaml
config/core.yaml
config/configtx.yaml
==> Done.
===> Downloading version 1.4.1 platform specific fabric-ca-client binary
===> Downloading:  https://github.com/hyperledger/fabric-ca/releases/download/v1.4.1/hyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz
--2020-01-08 17:42:01--  https://github.com/hyperledger/fabric-ca/releases/download/v1.4.1/hyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz
Resolving github.com (github.com)... 140.82.118.3
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/79410323/da7ede80-07a4-11ea-8741-698d7b8886f6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200108T174209Z&X-Amz-Expires=300&X-Amz-Signature=0606884b6f7731edeaf54e10ae6cfcbdff3e444b0c88c2ed5b1cd4441285cdef&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz&response-content-type=application%2Foctet-stream [following]
--2020-01-08 17:42:01--  https://github-production-release-asset-2e65be.s3.amazonaws.com/79410323/da7ede80-07a4-11ea-8741-698d7b8886f6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200108T174209Z&X-Amz-Expires=300&X-Amz-Signature=0606884b6f7731edeaf54e10ae6cfcbdff3e444b0c88c2ed5b1cd4441285cdef&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.143.196
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.143.196|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6475055 (6.2M) [application/octet-stream]
Saving to: ‘hyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz’

hyperledger-fabric-ca-linux-amd64-1.4.1 100%[==============================================================================>]   6.17M  7.89MB/s    in 0.8s    

2020-01-08 17:42:02 (7.89 MB/s) - ‘hyperledger-fabric-ca-linux-amd64-1.4.1.tar.gz’ saved [6475055/6475055]

bin/
bin/fabric-ca-client
==> Done.
org1.example.com
org2.example.com
org3.example.com
2020-01-08 17:42:03.115 GMT [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-01-08 17:42:03.116 GMT [common.tools.configtxgen.localconfig] Load -> PANI 002 Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced
2020-01-08 17:42:03.116 GMT [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced
panic: Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced [recovered]
        panic: Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000fdad0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0005440f8, 0xc000017804, 0xc000080460, 0x65, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0005440f8, 0xc000080460, 0x65, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc000544100, 0xc000017908, 0x1, 0x1)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
main.main.func1()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:260 +0x1a9
panic(0xd61540, 0xc0002e28a0)
        /opt/go/go1.11.5.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000fdad0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0005440d8, 0xc000017c04, 0xc000080310, 0x65, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0005440d8, 0xc000080310, 0x65, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0005440e0, 0xc000017d88, 0x2, 0x2)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffc6aecf2af, 0x12, 0x0, 0x0, 0x0, 0xc000452a78)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:275 +0x41f
main.main()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:271 +0xce0
2020-01-08 17:42:03.158 GMT [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-01-08 17:42:03.159 GMT [common.tools.configtxgen.localconfig] Load -> PANI 002 Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced
2020-01-08 17:42:03.159 GMT [common.tools.configtxgen] func1 -> PANI 003 Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced
panic: Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced [recovered]
        panic: Error reading configuration:  While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00010bb80, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e248, 0xc0003b9804, 0xc000080460, 0x65, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e248, 0xc000080460, 0x65, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e250, 0xc0003b9908, 0x1, 0x1)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
main.main.func1()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:260 +0x1a9
panic(0xd61540, 0xc0003a3440)
        /opt/go/go1.11.5.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00010bb80, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc00000e228, 0xc0003b9c04, 0xc000080310, 0x65, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc00000e228, 0xc000080310, 0x65, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc00000e230, 0xc0003b9d88, 0x2, 0x2)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffedc8b92b3, 0xb, 0x0, 0x0, 0x0, 0xc00045a360)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:275 +0x41f
main.main()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:271 +0xce0
mrx@devbox:~/code/caliper-benchmarks/networks/fabric/config_solo$ 
chinmay241 commented 4 years ago

This worked for me: From curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.0.0 1.0.0 0.4.14 -ds To curl -sSL http://bit.ly/2ysbOFE | bash -s -- 2.1.0 1.4.6 0.4.18 -ds

curl -sSL https://bit.ly/2ysbOFE | bash -s --

xyl00755 commented 3 years ago

I tried this way: 1.Download fabric project from github,check out with tags 2.cd fabric 3.make files genated to .build/bin