Coder Social home page Coder Social logo

hyperledger-fabric-basics's Issues

Segmentation fault....

Hey there,

thanks for this great tutorial.
Everything worked fine for me until I tried to deploy the chaincode.

It says Segmentation fault...
Until now I have no idea why this happens.
By the way: I am using a Windows OS, so maybe this occurs because of the paths?

Would be great, if you have some ideas how to solve this issue.

Many thanks!

Failed to deploy chaincode

I am facing timeout errors while deploying the chaincode.
All this is working fine
node crowd_fund_demo.js 192.168.99.100 four-peer
Docker Host IP: 192.168.99.100

Setting keyValStore location to: /tmp/keyValStore
Setting membersrvc address to: grpc://192.168.99.100:7054
Adding peer address: grpc://192.168.99.100:7051
Adding peer address: grpc://192.168.99.100:8051
Adding peer address: grpc://192.168.99.100:9051
Adding peer address: grpc://192.168.99.100:10051
Setting eventHubAddr address to: grpc://192.168.99.100:7053

Successfully got WebAppAdmin member.
Successfully enrolled WebAppAdmin member.
Setting WebAppAdmin as chain registrar.
Registering user WebAppUser_1.
Successfully registered and enrolled WebApp_user1.
Even blocks are added to the network but it failed to deploy chain code and gives me timeout error. I'm running this on windows 10 machine.
Any solution for this?

failed to deploy chaincode

When running node crowd_fund_demo.js 192.168.99.100 xxx-peer the following error happens:
ERROR: Failed to deploy chaincode: request={"chaincodePath":"crowd_fund_chaincode","fcn":"init","args":["account","0"]}, error={"error":{"code":2,"metadata":{"_internal_repr":{}}},"msg":"Error: sql: no rows in result set"}

After restarting the network as indicated, the problem is still happens.

Error while running tar command on vendor.zip

tar -xf $GOPATH/src/crowd_fund_chaincode/vendor.zip -C $GOPATH/src/crowd_fund_chaincode/ in README gives the following error

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

ERROR: error pulling image configuration

$ git clone https://github.com/IBM-Blockchain/fabric-images.git
$ cd fabric-images/docker-compose
$ . setenv.sh 
$ docker-compose -f single-peer-ca.yaml up
Pulling membersrvc (ibmblockchain/fabric-membersrvc:x86_64-0.6.1-preview)...
x86_64-0.6.1-preview: Pulling from ibmblockchain/fabric-membersrvc
862a3e9af0ae: Pulling fs layer
6498e51874bf: Download complete
159ebdd1959b: Download complete
0fdbedd3771a: Waiting
7a1f7116d1e3: Waiting
a3ed95caeb02: Waiting
6c17aabda8d5: Waiting
619b1ba840e1: Waiting
18dfa32b9b86: Waiting
9f4a5f266a0b: Waiting
fd0590aa11c6: Waiting
80983e976c3c: Waiting
7c93717480c9: Waiting
3814d60b7b34: Waiting
a0e45c369819: Waiting
8544aa71916f: Waiting
ERROR: error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/b3/b3654d32e4f9be01f42f08a2677ad953ed34d6d714133463e386d3156a6ff6f9/data?Expires=1511832781&Signature=K17KXYZSWW64Wxi5GEX4s~RZmL4ZlrjN3E7-mSU3Y8IumBonDZfuEN5dISJq1m2hwLrYfefTHXcFYvswcljPmDFXHn~Ngsgspl~1GhkBYmBOvQKojQXDtIJB9raMGU9T9Z4N2dlVyALyOkq8fyJB3wzHNrSr8CIClRwev3iSqo8_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: read tcp 10.0.2.15:42308->52.85.87.152:443: read: connection reset by peer

$ docker version
Client:
 Version:      17.11.0-ce
 API version:  1.24 (downgraded from 1.34)
 Go version:   go1.8.4
 Git commit:   1caf76c
 Built:        Mon Nov 20 18:30:18 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      1.12.3
 API version:  1.24 (minimum version )
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        Wed Oct 26 23:26:11 2016
 OS/Arch:      linux/amd64
 Experimental: false

Issue with line 79 of crowd_fund_demo.js

I recently found that there is a issue with line 79 of your code in the crowd_fund_demo.js file.
It mentions the following:
Docker Host IP: 192.168.99.100

Setting keyValStore location to: /temp/keyValStore
Setting membersrvc address to: grpc://192.168.99.100:7054
Adding peer address: grpc://192.168.99.100:7051
Adding peer address: grpc://192.168.99.100:8051
Adding peer address: grpc://192.168.99.100:9051
Adding peer address: grpc://192.168.99.100:10051
Setting eventHubAddr address to: grpc://192.168.99.100:7053

C:\Users\Sean\hyperledger-fabric-basics\crowd_fund_demo.js:79
chain.eventHubConnect(SDK_EVENTHUB_ADDRESS);
^

TypeError: chain.eventHubConnect is not a function
at Object. (C:\Users\Sean\hyperledger-fabric-basics\crowd_fund_demo.js:79:7)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3

I hope this is descriptive enough.

Thanks.

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.