yacovm / fabricdeployment Goto Github PK
View Code? Open in Web Editor NEWA simple tool that deploys Hyperledger Fabric to remote servers
License: MIT License
A simple tool that deploys Hyperledger Fabric to remote servers
License: MIT License
Step 14/15 : RUN core/chaincode/shim/java/javabuild.sh
---> Running in 971b4a6dfe71
/bin/sh: 1: core/chaincode/shim/java/javabuild.sh: not found
The command '/bin/sh -c core/chaincode/shim/java/javabuild.sh' returned a non-zero code: 127
Makefile:279: recipe for target 'build/image/javaenv/.dummy-x86_64-1.0.6-snapshot-' failed
make: *** [build/image/javaenv/.dummy-x86_64-1.0.6-snapshot-] Error 127
./peer chaincode query -c '{"Args":["query","a"]}' -C yacov -n exampleCC -v 1.0 --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabricDeployment-master/crypto-config/ordererOrganizations/hrl.ibm.il/orderers/orderer.hrl.ibm.il/tls/ca.crt
[chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
[chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error:: Error endorsing query: rpc error: code = Unknown desc = could not find chaincode with name 'exampleCC' - make sure the chaincode exampleCC has been successfully instantiated and try again
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
After running deploy.sh we are getting following error:
Joining peers to channel
Error: Error getting endorser client channel: PER:404 - Error trying to connect to local peer
/usr/local/go/src/github.com/hyperledger/fabric/peer/common/common.go:116 github.com/hyperledger/fabric/peer/common.GetEndorserClient
/usr/local/go/src/github.com/hyperledger/fabric/peer/channel/channel.go:149 github.com/hyperledger/fabric/peer/channel.InitCmdFactory
/usr/local/go/src/github.com/hyperledger/fabric/peer/channel/join.go:138 github.com/hyperledger/fabric/peer/channel.join
/usr/local/go/src/github.com/hyperledger/fabric/peer/channel/join.go:42 github.com/hyperledger/fabric/peer/channel.joinCmd.func1
/usr/local/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute
/usr/local/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/usr/local/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute
/home/ubuntu/go/src/github.com/hyperledger/fabric/peer/main.go:118 main.main
/usr/local/go/src/runtime/proc.go:194 runtime.main
/usr/local/go/src/runtime/asm_amd64.s:2198 runtime.goexit
Caused by: context deadline exceeded
Usage:
peer channel join [flags]
Flags:
-b, --blockpath string Path to file containing genesis block
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
Please let me know if anything is missing. I think issue is related to certificates.
For your reference, here is the Error in log file peer1.out =>
[main] main -> ERRO 001^[[0m Cannot run peer because error when setting up MSP from directory /opt/gopath/src/github.com/hyperledger/fabric/sampleconfig/crypto: err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.hrl.ibm.il")
I am getting the following error while running the deploy.sh Script
build/bin/peer
CGO_CFLAGS=" " GOBIN=/home/akash/Documents/Apps/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=1.0.5-snapshot-ad68580 -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
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/peer' failed
make: *** [build/bin/peer] Error 2
cp: cannot stat '/home/akash/Documents/Apps/go/src/github.com/hyperledger/fabric/build/bin/peer': No such file or directory
build/bin/cryptogen
CGO_CFLAGS=" " GOBIN=/home/akash/Documents/Apps/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/cryptogen/metadata.Version=1.0.5-snapshot-ad68580" github.com/hyperledger/fabric/common/tools/cryptogen
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: cannot stat '/home/akash/Documents/Apps/go/src/github.com/hyperledger/fabric/build/bin/cryptogen': No such file or directory
peer isn't found, aborting!
yacovm,
Saw your commit to
"github.com/hyperledger/fabric/core/chaincode/lib/cid"
The question is: i get following Error if i import it to fabcar example.
and i am using hyperledger latest version: v1.1.0-alpha.
Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining dependencies for github.com/hyperledger/fabric/core/chaincode/lib/cid: <go, [list -f {{ join .Deps "\n"}} github.com/hyperledger/fabric/core/chaincode/lib/cid]>: failed with error: "exit status 1"
can't load package: package github.com/hyperledger/fabric/core/chaincode/lib/cid: cannot find package "github.com/hyperledger/fabric/core/chaincode/lib/cid" in any of:
/opt/go/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOROOT)
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/lib/cid (from $GOPATH)
Do you have any sample which i can refer to implement attribute-based access control
I already referred following:
https://docs.google.com/document/d/1GP5tcN0oK9Zewed9h5pLiM2BowWPhtgFUGXEDKjeGGo
Hi, everything is working fine but when i execute deploy.sh , and it reaches to "starting orderer" it gives this error.
waiting for orderer and peers to be online
nc: getaddrinfo failed: Temporary failure in name resolution
I have completed all the prerequisites. e.g. password less ssh, sudo, local repo etc.
Is it related to dns ?
2018-05-23 13:25:39.719 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: Error getting broadcast client: Error connecting to orderer.sudesh.com:7050 due to rpc error: code = Internal desc = transport: write tcp 172.19.0.5:54752->172.19.0.4:7050: write: connection reset by peer
"i was trying to create one private channel using hyperledger fabric v1.1 so created one orderer and two peer with one organization ie. org1 network , i created all the ca's for all the peers and channel has been created and when is launched cli and tried to join the peer1 its given that issue. So tell me if am missing some setting or configuration in there for "bring up block chain for single member block chain"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.