Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Getting error while running deploy.sh #1

Open
Katiyman opened this issue Aug 21, 2017 · 11 comments
Open

Getting error while running deploy.sh #1

Katiyman opened this issue Aug 21, 2017 · 11 comments

Comments

@Katiyman
Copy link

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

@yacovm
Copy link
Owner

yacovm commented Aug 21, 2017

Have you cloned the fabric repository beforehand and placed it in GOPATH?
https://github.com/hyperledger/fabric/

@Katiyman
Copy link
Author

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

@yacovm
Copy link
Owner

yacovm commented Aug 21, 2017

try to run bash -x deploy.sh and please put here the output

@Katiyman
Copy link
Author

Katiyman commented Aug 21, 2017

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

@yacovm
Copy link
Owner

yacovm commented Aug 21, 2017

sudo apt-get install libltdl-dev
and try again?

@Katiyman
Copy link
Author

Katiyman commented Aug 22, 2017

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

@yacovm
Copy link
Owner

yacovm commented Aug 22, 2017

This isn't the same error.
Can you try make clean and then run make ?

@Katiyman
Copy link
Author

Katiyman commented Aug 22, 2017

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


@Katiyman
Copy link
Author

Can you let me know the steps. it will help me to deploy it manually

@yacovm
Copy link
Owner

yacovm commented Sep 28, 2017

Hey is this still relevant?

@pranoygn
Copy link

pranoygn commented Feb 14, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants