fabricDeployment
fabricDeployment copied to clipboard
Getting error while running deploy.sh
i followed the prerequisites and the changed the config.sh post that wen i run the deploy.shi i get the below error
./deploy.sh
mkdir -p build/image/ccenv/payload
cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload
cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory
Makefile:263: recipe for target 'build/image/ccenv/payload' failed
make: *** [build/image/ccenv/payload] Error 1
Docker version 17.06.0-ce, build 02c1d87 docker-compose version 1.11.2, build dfed245 npm version: 3.10.10 go version go1.8.1 linux/amd64 OS : Ubuntu 16.04
Have you cloned the fabric repository beforehand and placed it in GOPATH? https://github.com/hyperledger/fabric/
tx for the reply ... Yups i am using two ubuntu VMs, in both i have cloned the repository in the path $GOPATH/src/github.com/hyperledger as given in the documentation currently i have executed this command in one of the VM's where i got this error
try to run bash -x deploy.sh and please put here the output
the o/p is below
+ [[ -z /root/work ]]
+ FABRIC=/root/work/src/github.com/hyperledger/fabric
+ [[ -d /root/work/src/github.com/hyperledger/fabric ]]
+ for file in configtxgen peer cryptogen
+ [[ -f configtxgen ]]
+ continue
+ for file in configtxgen peer cryptogen
+ [[ -f peer ]]
+ binary=/root/work/src/github.com/hyperledger/fabric/build/bin/peer
+ [[ ! -f /root/work/src/github.com/hyperledger/fabric/build/bin/peer ]]
+ cd /root/work/src/github.com/hyperledger/fabric
+ make peer
mkdir -p build/image/ccenv/payload
cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload
cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory
Makefile:263: recipe for target 'build/image/ccenv/payload' failed
make: *** [build/image/ccenv/payload] Error 1
+ cp /root/work/src/github.com/hyperledger/fabric/build/bin/peer peer
cp: cannot stat '/root/work/src/github.com/hyperledger/fabric/build/bin/peer': No such file or directory
+ for file in configtxgen peer cryptogen
+ [[ -f cryptogen ]]
+ binary=/root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen
+ [[ ! -f /root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen ]]
+ cd /root/work/src/github.com/hyperledger/fabric
+ make cryptogen
build/bin/cryptogen
CGO_CFLAGS=" " GOBIN=/root/work/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/cryptogen/metadata.Version=1.0.2-snapshot-ae4e37d" github.com/hyperledger/fabric/common/tools/cryptogen
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
Makefile:227: recipe for target 'build/bin/cryptogen' failed
make: *** [build/bin/cryptogen] Error 2
+ cp /root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen cryptogen
cp: cannot stat '/root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen': No such file or directory
+ for file in configtxgen peer cryptogen
+ [[ ! -f configtxgen ]]
+ for file in configtxgen peer cryptogen
+ [[ ! -f peer ]]
+ echo 'peer isn'\''t found, aborting!'
peer isn't found, aborting!
+ exit 1
sudo apt-get install libltdl-dev and try again?
Done still getting same error
bash -x deploy.sh
+ [[ -z /root/work ]]
+ FABRIC=/root/work/src/github.com/hyperledger/fabric
+ [[ -d /root/work/src/github.com/hyperledger/fabric ]]
+ for file in configtxgen peer cryptogen
+ [[ -f configtxgen ]]
+ continue
+ for file in configtxgen peer cryptogen
+ [[ -f peer ]]
+ binary=/root/work/src/github.com/hyperledger/fabric/build/bin/peer
+ [[ ! -f /root/work/src/github.com/hyperledger/fabric/build/bin/peer ]]
+ cd /root/work/src/github.com/hyperledger/fabric
+ make peer
mkdir -p build/image/ccenv/payload
cp build/docker/gotools/bin/protoc-gen-go build/bin/chaintool build/goshim.tar.bz2 build/image/ccenv/payload
cp: cannot stat 'build/docker/gotools/bin/protoc-gen-go': No such file or directory
Makefile:263: recipe for target 'build/image/ccenv/payload' failed
make: *** [build/image/ccenv/payload] Error 1
+ cp /root/work/src/github.com/hyperledger/fabric/build/bin/peer peer
cp: cannot stat '/root/work/src/github.com/hyperledger/fabric/build/bin/peer': No such file or directory
+ for file in configtxgen peer cryptogen
+ [[ -f cryptogen ]]
+ binary=/root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen
+ [[ ! -f /root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen ]]
+ cd /root/work/src/github.com/hyperledger/fabric
+ make cryptogen
build/bin/cryptogen
CGO_CFLAGS=" " GOBIN=/root/work/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/cryptogen/metadata.Version=1.0.2-snapshot-ae4e37d" github.com/hyperledger/fabric/common/tools/cryptogen
Binary available as build/bin/cryptogen
+ cp /root/work/src/github.com/hyperledger/fabric/build/bin/cryptogen cryptogen
+ continue
+ for file in configtxgen peer cryptogen
+ [[ ! -f configtxgen ]]
+ for file in configtxgen peer cryptogen
+ [[ ! -f peer ]]
+ echo 'peer isn'\''t found, aborting!'
peer isn't found, aborting!
+ exit 1
This isn't the same error. Can you try make clean and then run make ?
Currently getting below error while running make
Step 8/10 : RUN bash /tmp/install-softhsm2.sh && rm -f install-softhsm2.sh
---> Running in 8129bb9571e0
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [44.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [432 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.8 kB]
Err:7 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Hash Sum mismatch
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [193 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2935 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Err:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Hash Sum mismatch
Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [211 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [791 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.3 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [654 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [17.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4934 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6236 B]
Fetched 24.3 MB in 1min 21s (300 kB/s)
Reading package lists...
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-amd64/by-hash/SHA256/30bbf2da602b0a226c8ce4c2ac1ce95a5b4e52fb354f7e5229b09e04449da6c0 Hash Sum mismatch
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/binary-amd64/by-hash/SHA256/357b27e1af26b66ee091c25a1c56ec22d2bee24abde522e0a4202e5cdfa1b113 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c bash /tmp/install-softhsm2.sh && rm -f install-softhsm2.sh' returned a non-zero code: 100
Makefile:279: recipe for target 'build/image/testenv/.dummy-x86_64-1.0.2-snapshot-ae4e37d' failed
make: *** [build/image/testenv/.dummy-x86_64-1.0.2-snapshot-ae4e37d] Error 100
Can you let me know the steps. it will help me to deploy it manually
Hey is this still relevant?
Getting the following error on running the command make peer
~/gopath/src/github.com/hyperledger/fabric# make peer build/bin/peer CGO_CFLAGS=" " GOBIN=/root/gopath/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=1.0.2 -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.3.2 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger -X github.com/hyperledger/fabric/common/metadata.BaseDockerNamespace=hyperledger" github.com/hyperledger/fabric/peer go build github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11: invalid flag in #cgo LDFLAGS: -Wl,--no-as-needed Makefile:227: recipe for target 'build/bin/peer' failed make: *** [build/bin/peer] Error 1
I have set the variables also
mkdir $HOME/gopath $ export GOPATH=$HOME/gopath $ export GOROOT=$HOME/go $ export PATH=$PATH:$GOROOT/bin
Docker version 17.12.0-ce, build c97c6d6 docker-compose version 1.18.0, build 8dd22a9 go version go1.9.4 linux/amd64 OS : Ubuntu 16.04