worldsibu / hurley

The development environment toolset for blockchain projects
https://worldsibu.io/convector/hurley
Apache License 2.0
80 stars 19 forks source link

Chaincode installations fails | Ubuntu 16.04 | Hurley 1.1.2 #151

Open satyamyesj opened 4 years ago

satyamyesj commented 4 years ago

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 commented 4 years ago

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:

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.