GithubHelp home page GithubHelp logo

docker-hyperledger-fabric's People

Contributors

meiremans avatar yeasy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-hyperledger-fabric's Issues

Error failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/pkg/statebased

what should i do to avoid this error
while running up the network for interest_rate_swaps in hyper ledger fabric
===================== Creating chaincode package =====================
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/pkg/statebased
===================== Chaincode packaged =====================
Querying packageID...
===================== Org partya installing chaincode =====================
Error: failed to read chaincode package at 'irscc.tar.gz': open irscc.tar.gz: no such file or directory
===================== Org partya chaincode installed =====================
===================== Org partyb installing chaincode =====================
Error: failed to read chaincode package at 'irscc.tar.gz': open irscc.tar.gz: no such file or directory
===================== Org partyb chaincode installed =====================
===================== Org partyc installing chaincode =====================
Error: failed to read chaincode package at 'irscc.tar.gz': open irscc.tar.gz: no such file or directory
===================== Org partyc chaincode installed =====================
===================== Org auditor installing chaincode =====================
Error: failed to read chaincode package at 'irscc.tar.gz': open irscc.tar.gz: no such file or directory
===================== Org auditor chaincode installed =====================
===================== Org rrprovider installing chaincode =====================
Error: failed to read chaincode package at 'irscc.tar.gz': open irscc.tar.gz: no such file or directory

fabric-ca 1.1.0-alpha is broken

We get a panic when we're trying to init fabric-ca-server:

root@18e12151281e:/etc/hyperledger/fabric-ca# fabric-ca-server init -b admin:adminpw
2018/02/21 10:28:15 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml
panic: Version is not set for fabric-ca library

goroutine 1 [running]:
github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x41bbc7, 0xc42027b0e0)
	/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60
github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc42027b0e0, 0xc420277100, 0xc0a792, 0xc420137bf0)
	/go/src/github.com/hyperledger/fabric-ca/lib/server.go:102 +0x29
github.com/hyperledger/fabric-ca/lib.(*Server).Init(0xc42027b0e0, 0xc42027b000, 0x0, 0xc420137c50)
	/go/src/github.com/hyperledger/fabric-ca/lib/server.go:92 +0x38
main.(*ServerCmd).init.func2(0xc42007cd80, 0xc4200d5fa0, 0x0, 0x2, 0x0, 0x0)
	/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:102 +0xfc
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc42007cd80, 0xc4200d5e00, 0x2, 0x2, 0xc42007cd80, 0xc4200d5e00)
	/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3e8
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42007cb40, 0xa10e96, 0xc420074c30, 0xc420074c30)
	/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2fe
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42007cb40, 0xc4200f43c0, 0xc420074c30)
	/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b
main.(*ServerCmd).Execute(0xc420074c30, 0x4, 0x1)
	/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f
main.RunMain(0xc4200100c0, 0x4, 0x4, 0xc420137f70, 0xa1265b)
	/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb0
main.main()
	/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45

It looks like version isn't provided in ldflags?

fabric 2.0.0 image failed to install chaincode

when install fabric following the book https://yeasy.gitbook.io/blockchain_guide/09_fabric_deploy/start_docker
get errors for fabric 2.0.0,
I am running on mac Sierra 10.12.6
please advise how could I fixed it, thank you so much!

make update_anchors
Update anchors on the fabric network
=== Updating anchor peers to peer0 for org1... ===
=== Update config on channel businesschannel ===
=== Channel businesschannel is updated. ===
=== Updating anchor peers to peer0 for org2... ===
=== Update config on channel businesschannel ===
=== Channel businesschannel is updated. ===
=== Updated anchor peers ===

make cc_test # test_cc_install test_cc_approveformyorg test_cc_checkcommitreadiness test_cc_commit test_cc_querycommitted test_cc_invoke_query
Install chaincode to all peers
=== Installing chaincode exp02 on all 4 peers... ===
=== Install Chaincode on org 1/peer 0 ===
name=exp02, version=1.0, path=examples/chaincode/go/chaincode_example02
packaging chaincode into tar.gz package
packaging chaincode exp02 with path examples/chaincode/go/chaincode_example02 and label exp02
installing chaincode to peer0/org1
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "go: github.com/hyperledger/[email protected]: Get https://proxy.golang.org/github.com/hyperledger/fabric-chaincode-go/@v/v0.0.0-20190823162523-04390e015b85.mod: dial tcp 216.58.200.241:443: i/o timeout
"
=== Chaincode is installed on org 1/peer 0 ===
=== Install Chaincode on org 1/peer 1 ===
name=exp02, version=1.0, path=examples/chaincode/go/chaincode_example02
packaging chaincode into tar.gz package
packaging chaincode exp02 with path examples/chaincode/go/chaincode_example02 and label exp02
installing chaincode to peer1/org1
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "go: github.com/hyperledger/[email protected]: Get https://proxy.golang.org/github.com/hyperledger/fabric-chaincode-go/@v/v0.0.0-20190823162523-04390e015b85.mod: dial tcp 172.217.160.81:443: i/o timeout
"
=== Chaincode is installed on org 1/peer 1 ===
=== Install Chaincode on org 2/peer 0 ===
name=exp02, version=1.0, path=examples/chaincode/go/chaincode_example02
packaging chaincode into tar.gz package
packaging chaincode exp02 with path examples/chaincode/go/chaincode_example02 and label exp02
installing chaincode to peer0/org2
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "go: github.com/hyperledger/[email protected]: Get https://proxy.golang.org/github.com/hyperledger/fabric-chaincode-go/@v/v0.0.0-20190823162523-04390e015b85.mod: dial tcp 172.217.160.81:443: i/o timeout
"
=== Chaincode is installed on org 2/peer 0 ===
=== Install Chaincode on org 2/peer 1 ===
name=exp02, version=1.0, path=examples/chaincode/go/chaincode_example02
packaging chaincode into tar.gz package
packaging chaincode exp02 with path examples/chaincode/go/chaincode_example02 and label exp02
installing chaincode to peer1/org2
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "go: github.com/hyperledger/[email protected]: Get https://proxy.golang.org/github.com/hyperledger/fabric-chaincode-go/@v/v0.0.0-20190823162523-04390e015b85.mod: dial tcp 172.217.160.81:443: i/o timeout
"
=== Chaincode is installed on org 2/peer 1 ===

Text editor in image

Hi, thanks for the images. They saved my week.
Is there any editor installed there? I'm trying nano, pico, vi, edit, but nothing works.
Thanks

import "github.com/hyperledger/fabric/core/chaincode/lib/cid" dows not work

import "github.com/hyperledger/fabric/core/chaincode/lib/cid"
dows not work

it gives me the following error.
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)

If i remove the import for cid, it works.

panic: Version is not set for fabric-ca library

when I fellow the guide to start the fabric-ca-server, get the next error:

=================================================
root@bogon:/home/fabrica# fabric-ca-server init -b admin:adminpw
2018/04/01 20:15:00 [INFO] Configuration file location: /home/fabrica/fabric-ca-server-config.yaml
panic: Version is not set for fabric-ca library

goroutine 1 [running]:
github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x7791a7, 0xc4202b9200)
/var/go/applications/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60
github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202b9200, 0xc4202de600, 0xf6c4f2, 0xc420141bf0)
/var/go/applications/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x29
github.com/hyperledger/fabric-ca/lib.(*Server).Init(0xc4202b9200, 0xc4202b9200, 0x0, 0xc420141c50)
/var/go/applications/src/github.com/hyperledger/fabric-ca/lib/server.go:88 +0x38
main.(*ServerCmd).init.func2(0xc42018a240, 0xc420174660, 0x0, 0x2, 0x0, 0x0)
/var/go/applications/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:102 +0xfc
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc42018a240, 0xc4201744c0, 0x2, 0x2, 0xc42018a240, 0xc4201744c0)
/var/go/applications/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3e8
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42018a000, 0xd6e956, 0xc4201700f0, 0xc4201700f0)
/var/go/applications/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2fe
github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42018a000, 0xc420188000, 0xc4201700f0)
/var/go/applications/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b
main.(*ServerCmd).Execute(0xc4201700f0, 0x4, 0x1)
/var/go/applications/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 +0x2f
main.RunMain(0xc4200100c0, 0x4, 0x4, 0xc420141f70, 0xd7011b)
/var/go/applications/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb0
main.main()
/var/go/applications/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45
root@bogon:/home/fabrica# fabric-ca-server version
fabric-ca-server:
Version: development build
Go version: go1.9.2
OS/Arch: linux/amd64

======================================================

so, what's the problem, could you give me some advice. thx.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.