Closed CoreyLin closed 5 years ago
Just now, I tried to replace the nodejs version simple to go version simple: The instantiation of simple chaincode still failed. But the error log was a little different. The error log was below:
The instantiation was successful on some peers, so either there were some remnant containers (remove every container and the dev* chaincode images), or it's some resource problem (4 peers -> 4 chaincode containers, takes time)
Try it with a smaller network also.
@aklenik I did the whole test operation very carefully. Before running testing, I docker rm -f dev* chaincode containers, and remove them in the peer container by rm /var/hyperledger/production/chaincodes/
Everytime, I can instantiate "marbles" successfully, but "simple" instantiation failed. I don't think it is resource problem.
Because when I got started with Caliper. I run it on a single machine, and the network is the default network provided by caliper team, it is very simple. But "simple" chaincode still instantiated in failure. After I removed "simple" and only keep "marbles", it is successful.
Can you look at the peer logs and chaincode container logs (retrieve them before they're removed by the peer)?
@aklenik I set the maximum size of my docker container. Now it has already been rotated and overrided. I can't provide it. I also don't have time to keep trying "simple" chaincode... I have to bypass it and try other chaincodes or develop chaincode by myself. So it is up to you whether to close this issue or not. Thanks.
Context
Env: 2 orgs, each org has 2 peers
Steps: 1.In network configuration file, use simple chaincode. Note: previously, I used marbles chaincode. 2.Execute command "node benchmark/simple/main.js -c /home/yzapps/hyperledger/yingzi/caliper/network/fabric-v1.4-yingzi/2org2peercouchdb/config-linear-rate.yaml -n /home/yzapps/hyperledger/yingzi/caliper/network/fabric-v1.4-yingzi/2org2peercouchdb/fabric-node.json"
Expected Behavior
The simple chaincode should be instantiated successfully.
Actual Behavior
The simple chaincode instantiation failed. The log is not very complete. I only captured the beginning and ending log. Note: when I used marbles chaincode, the instantiation was successful. I only replaced chaincode from marbles to simple in the network configuration file.
Could you help check this? Thanks.