Can t install remote HTTP chaincode

0 votes

I am using Hyperledger Fabric 1.0 from official docker hub. It 
runs local chain code successful, but I want to install remote HTTP chain code, for example from github.com

The command I am using is as follows

peer chaincode install -n devincc -v 1.0 -p https://raw.githubusercontent.com/studyzy/ChainCode/master/chaincode_demo/chaincode_demo.go

and also

peer chaincode install -n devincc -v 1.0 -p https://github.com/studyzy/ChainCode

With both the commands, I get the same error: 

Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error getting code code does not exist Could not open file open /opt/gopath/src/https:/github.com/studyzy/ChainCode/demo: no such file or directory

How to solve this?

Jun 27, 2018 in Blockchain by slayer
• 29,370 points
876 views

1 answer to this question.

+1 vote
Best answer


Fabric 1.0 does not support remote paths with -p options. To install remote chain code you can use 

go get https://github.com/studyzy/ChainCode

followed by

peer chaincode install -n devincc -v 1.0 -p github.com/studyzy/ChainCode

Note: You need to have chaincode on your GOPATH. You can go through the following link to know how to do it.
https://www.skcript.com/svr/setting-up-your-development-environment-for-hyperledger-fabric/

answered Jun 27, 2018 by Omkar
• 69,220 points

selected Jun 27, 2018 by slayer

Related Questions In Blockchain

0 votes
1 answer

Cant install quorum blockchain.

You are facing this issue because you ...READ MORE

answered Aug 1, 2018 in Blockchain by slayer
• 29,370 points
857 views
0 votes
1 answer

Cant install python module for python3.6 to use Jsonrpc for altcoin

Try this  VERSION=0.1 python3 setup.py install and there's also ...READ MORE

answered Sep 7, 2018 in Blockchain by digger
• 26,740 points
910 views
0 votes
1 answer

Can't install pyethereum module

The module's name is ethereum, not pyethereum. Using the ...READ MORE

answered Sep 27, 2018 in Blockchain by slayer
• 29,370 points
1,001 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+16 votes
4 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP