hurley icon indicating copy to clipboard operation
hurley copied to clipboard

Chaincode installations fails | Ubuntu 16.04 | Hurley 1.1.2

Open satyamyesj opened this issue 5 years ago • 1 comments

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?

satyamyesj avatar Jan 31 '20 13:01 satyamyesj

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.

diestrin avatar Jan 31 '20 20:01 diestrin