-
Notifications
You must be signed in to change notification settings - Fork 11
cannt install node cc package #6
Comments
Hi @mtiger2k Node should be supported as Can you provide more information, what failed? (peer logs and some information about the enviroment/deployment) @mirioeggmann did you use it with node? |
thanks for your reply. I used public marbles02 javascript cc. firstly, I run your fabcar.tar.gz and it succeed. run kubectl describe pod xxx to see And I checked docker hub, there is no 2.0.1 nodeenv. So maybe you need to change nodeenv to latest 2.1.0, and rebuild it. |
Yes, you are right, this is definitely an issue. I will update the image versions on master soon |
Is it possible for you to try the new/latest version from master of
|
@djboris9 Hm no I actually haven't tried it with node or java yet, because we currently just run go-chaincode in our network. But I will add a sample for both node- and java-chaincode to the example/demo folder so we can make sure that it works for all supported languages. |
I tried hlfabric-k8scc:latest, but failed at init step. the following is the error message:
And the following is the pod describe message:
Edited by @djboris9: Code block formatting |
and the following is pod logs:
Edited by @djboris9: Code block formatting |
I think the code line #L265 could be the problem because it always tries to run chaincode the following way: But in node it would probably be something like this:
|
It depends on the platform as seen in dockercontroller.DockerVM.GetArgs. We will have to use a similar mechanism as with the build step, where we use the functions of hyperledger fabric to get the build string. The easiest way should be to create a @mtiger2k The bug is confirmed :) |
Great! Thanks for your effort. |
I've already started some fixing and we will release a fixed version in the next few days |
Thanks, this really helps. |
The bugs should be fixed now and are tested on our lab with the marble example. Can you please try out the master version ( |
I tested and it succeed, thanks. The following is my test commands after commit. `# init and invoke chaincode invoke chaincode initMarblepeer chaincode invoke -o orderer-example-com:7050 --tls true --cafile /etc/hyperledger/organizations/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem -C mychannel -n marbles02_1 --peerAddresses peer0-org2-example-com:7051 --tlsRootCertFiles /etc/hyperledger/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt --peerAddresses peer0-org1-example-com:7051 --tlsRootCertFiles /etc/hyperledger/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt -c '{"function":"initMarble","Args":["marble1","blue","35","tom"]}' query chaincode readMarblepeer chaincode query -C mychannel -n marbles02_1 -c '{"function":"readMarble","Args":["marble1"]}'` |
By the way, fabric 2.1.1 has be released, it would be better if you upgrade fabric. :) |
Fabric is now also updated and a new tag including the nodejs fixes is pushed: |
I tried demo, but failed to install node cc package.
Does it support node cc?
The text was updated successfully, but these errors were encountered: