Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaincode installations fails | Ubuntu 16.04 | Hurley 1.1.2 #151

Open
satyamyesj opened this issue Jan 31, 2020 · 1 comment
Open

Chaincode installations fails | Ubuntu 16.04 | Hurley 1.1.2 #151

satyamyesj opened this issue Jan 31, 2020 · 1 comment

Comments

@satyamyesj
Copy link

Screenshot (193)
I am creating new project and new network topology with following commands

conv new commarcial -c agreement
cd commercial
npm i
npm run env:restart
npm cc:start -- agreement

But it many time take more than 10 minitues to install chaincode at ch1, many time fails giving above message(kindly ignore newlines on terminal generated by hitting enter key)

Are there any ceratin reasons that it takes so much time? What is meanign of this message?

@diestrin
Copy link
Member

So on the instantiation of the contract, Fabric is going to build a new docker image where it's going to place your code and run npm i. It might timeout for multiple reasons, here are some examples:

  • The docker daemon doesn't have enough memory or cpu to build the images faster
  • The internet speed is not that good
  • You have a lot of dependencies and npm it's taking too much to download everything

So the timeout is a Fabric timeout just saying that the instantiation took too much time and it won't wait anymore. Make sure the doocker daemon has enough resources and that your internet speed is the best you can get. During installation time, I've seen it consume more that 1gb of ram depending on the contract.

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

No branches or pull requests

2 participants