Hyperledger Composer setting up connection.json










2














Hi thank you for all guys watching this article.



Cuz I want to use Hyperledger composer, I deployed orderer, peer, ca and other things. And I got success until creating channel and joining channel
(I believe that this is true cuz I finished making channels, joining peers to join that channel, installing and instantiating chaincode.)



So after that I did



"composer network install" command and I got error that there is no response from peers.
(And "Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF")
So I started to think that there is a problem on the file named "connection.json". But I don't know specifically how to edit that file.



I got response like below commanding "docker service ls" and "docker network inspect fabric"



enter image description here



and my connection.json file looks like this



enter image description here



And I referred to this page to do Hyperledger Fabric on multiple hosts.



https://medium.com/@malliksarvepalli/hyperledger-fabric-on-multiple-hosts-using-docker-swarm-and-compose-f4b70c64fa7d



And this is the screenshot after installing business network



enter image description here










share|improve this question























  • TLS set to true or false ? and can you paste the peer logs also
    – jaswanth
    Nov 15 '18 at 9:25
















2














Hi thank you for all guys watching this article.



Cuz I want to use Hyperledger composer, I deployed orderer, peer, ca and other things. And I got success until creating channel and joining channel
(I believe that this is true cuz I finished making channels, joining peers to join that channel, installing and instantiating chaincode.)



So after that I did



"composer network install" command and I got error that there is no response from peers.
(And "Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF")
So I started to think that there is a problem on the file named "connection.json". But I don't know specifically how to edit that file.



I got response like below commanding "docker service ls" and "docker network inspect fabric"



enter image description here



and my connection.json file looks like this



enter image description here



And I referred to this page to do Hyperledger Fabric on multiple hosts.



https://medium.com/@malliksarvepalli/hyperledger-fabric-on-multiple-hosts-using-docker-swarm-and-compose-f4b70c64fa7d



And this is the screenshot after installing business network



enter image description here










share|improve this question























  • TLS set to true or false ? and can you paste the peer logs also
    – jaswanth
    Nov 15 '18 at 9:25














2












2








2







Hi thank you for all guys watching this article.



Cuz I want to use Hyperledger composer, I deployed orderer, peer, ca and other things. And I got success until creating channel and joining channel
(I believe that this is true cuz I finished making channels, joining peers to join that channel, installing and instantiating chaincode.)



So after that I did



"composer network install" command and I got error that there is no response from peers.
(And "Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF")
So I started to think that there is a problem on the file named "connection.json". But I don't know specifically how to edit that file.



I got response like below commanding "docker service ls" and "docker network inspect fabric"



enter image description here



and my connection.json file looks like this



enter image description here



And I referred to this page to do Hyperledger Fabric on multiple hosts.



https://medium.com/@malliksarvepalli/hyperledger-fabric-on-multiple-hosts-using-docker-swarm-and-compose-f4b70c64fa7d



And this is the screenshot after installing business network



enter image description here










share|improve this question















Hi thank you for all guys watching this article.



Cuz I want to use Hyperledger composer, I deployed orderer, peer, ca and other things. And I got success until creating channel and joining channel
(I believe that this is true cuz I finished making channels, joining peers to join that channel, installing and instantiating chaincode.)



So after that I did



"composer network install" command and I got error that there is no response from peers.
(And "Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: EOF")
So I started to think that there is a problem on the file named "connection.json". But I don't know specifically how to edit that file.



I got response like below commanding "docker service ls" and "docker network inspect fabric"



enter image description here



and my connection.json file looks like this



enter image description here



And I referred to this page to do Hyperledger Fabric on multiple hosts.



https://medium.com/@malliksarvepalli/hyperledger-fabric-on-multiple-hosts-using-docker-swarm-and-compose-f4b70c64fa7d



And this is the screenshot after installing business network



enter image description here







docker hyperledger-fabric hyperledger hyperledger-composer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 7:24

























asked Nov 13 '18 at 4:38









Jeong

92




92











  • TLS set to true or false ? and can you paste the peer logs also
    – jaswanth
    Nov 15 '18 at 9:25

















  • TLS set to true or false ? and can you paste the peer logs also
    – jaswanth
    Nov 15 '18 at 9:25
















TLS set to true or false ? and can you paste the peer logs also
– jaswanth
Nov 15 '18 at 9:25





TLS set to true or false ? and can you paste the peer logs also
– jaswanth
Nov 15 '18 at 9:25













2 Answers
2






active

oldest

votes


















2














I think your fabric network is not running!



open a terminal and go to your fabric-dev-servers directory and ./startFabric.sh



if you facing any error there, like some container already exists do ./teardownFabric.sh first and then run above start command again.



once a network is running successfully then you need to create admin card by running ./createPeerAdminCard.sh






share|improve this answer




















  • I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
    – Jeong
    Nov 13 '18 at 5:34











  • okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
    – Mahesh Rajput
    Nov 13 '18 at 5:54










  • I added the screenshot on the bottom of the article. Thx
    – Jeong
    Nov 13 '18 at 7:24


















2














Could you confirm that all orderer, peers and CAs are successfully launched on each machine? 'docker ps' command shows which services are running. If you use 'docker ps -a', you can find which service is stopped.




From the all of docker-compose files, following container name should be listed by 'docker ps'



orderer

: orderer



org1

: ca1

: org1peer0

: org1peer1

: org1cli



org2

: ca2

: org2peer0

: org2peer1

: org2cli



Could you check this is correct?



Are you running this project on 3 machines or 3 cloud instances?






share|improve this answer






















  • Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
    – Jeong
    Nov 14 '18 at 4:57







  • 2




    Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
    – harry
    Nov 14 '18 at 7:32











  • I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
    – harry
    Nov 14 '18 at 7:45










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273913%2fhyperledger-composer-setting-up-connection-json%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














I think your fabric network is not running!



open a terminal and go to your fabric-dev-servers directory and ./startFabric.sh



if you facing any error there, like some container already exists do ./teardownFabric.sh first and then run above start command again.



once a network is running successfully then you need to create admin card by running ./createPeerAdminCard.sh






share|improve this answer




















  • I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
    – Jeong
    Nov 13 '18 at 5:34











  • okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
    – Mahesh Rajput
    Nov 13 '18 at 5:54










  • I added the screenshot on the bottom of the article. Thx
    – Jeong
    Nov 13 '18 at 7:24















2














I think your fabric network is not running!



open a terminal and go to your fabric-dev-servers directory and ./startFabric.sh



if you facing any error there, like some container already exists do ./teardownFabric.sh first and then run above start command again.



once a network is running successfully then you need to create admin card by running ./createPeerAdminCard.sh






share|improve this answer




















  • I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
    – Jeong
    Nov 13 '18 at 5:34











  • okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
    – Mahesh Rajput
    Nov 13 '18 at 5:54










  • I added the screenshot on the bottom of the article. Thx
    – Jeong
    Nov 13 '18 at 7:24













2












2








2






I think your fabric network is not running!



open a terminal and go to your fabric-dev-servers directory and ./startFabric.sh



if you facing any error there, like some container already exists do ./teardownFabric.sh first and then run above start command again.



once a network is running successfully then you need to create admin card by running ./createPeerAdminCard.sh






share|improve this answer












I think your fabric network is not running!



open a terminal and go to your fabric-dev-servers directory and ./startFabric.sh



if you facing any error there, like some container already exists do ./teardownFabric.sh first and then run above start command again.



once a network is running successfully then you need to create admin card by running ./createPeerAdminCard.sh







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 5:24









Mahesh Rajput

2959




2959











  • I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
    – Jeong
    Nov 13 '18 at 5:34











  • okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
    – Mahesh Rajput
    Nov 13 '18 at 5:54










  • I added the screenshot on the bottom of the article. Thx
    – Jeong
    Nov 13 '18 at 7:24
















  • I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
    – Jeong
    Nov 13 '18 at 5:34











  • okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
    – Mahesh Rajput
    Nov 13 '18 at 5:54










  • I added the screenshot on the bottom of the article. Thx
    – Jeong
    Nov 13 '18 at 7:24















I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
– Jeong
Nov 13 '18 at 5:34





I successfully deployed Hyperledger Composer locally.(As you said, doing tutorial from Hyperledger Composer.) And I have no problem about that. I have problem when I do those on multiple hosts
– Jeong
Nov 13 '18 at 5:34













okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
– Mahesh Rajput
Nov 13 '18 at 5:54




okay, I got it. Sorry for the misunderstanding. So, can you provide a screenshot of composer network install error log ??
– Mahesh Rajput
Nov 13 '18 at 5:54












I added the screenshot on the bottom of the article. Thx
– Jeong
Nov 13 '18 at 7:24




I added the screenshot on the bottom of the article. Thx
– Jeong
Nov 13 '18 at 7:24













2














Could you confirm that all orderer, peers and CAs are successfully launched on each machine? 'docker ps' command shows which services are running. If you use 'docker ps -a', you can find which service is stopped.




From the all of docker-compose files, following container name should be listed by 'docker ps'



orderer

: orderer



org1

: ca1

: org1peer0

: org1peer1

: org1cli



org2

: ca2

: org2peer0

: org2peer1

: org2cli



Could you check this is correct?



Are you running this project on 3 machines or 3 cloud instances?






share|improve this answer






















  • Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
    – Jeong
    Nov 14 '18 at 4:57







  • 2




    Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
    – harry
    Nov 14 '18 at 7:32











  • I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
    – harry
    Nov 14 '18 at 7:45















2














Could you confirm that all orderer, peers and CAs are successfully launched on each machine? 'docker ps' command shows which services are running. If you use 'docker ps -a', you can find which service is stopped.




From the all of docker-compose files, following container name should be listed by 'docker ps'



orderer

: orderer



org1

: ca1

: org1peer0

: org1peer1

: org1cli



org2

: ca2

: org2peer0

: org2peer1

: org2cli



Could you check this is correct?



Are you running this project on 3 machines or 3 cloud instances?






share|improve this answer






















  • Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
    – Jeong
    Nov 14 '18 at 4:57







  • 2




    Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
    – harry
    Nov 14 '18 at 7:32











  • I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
    – harry
    Nov 14 '18 at 7:45













2












2








2






Could you confirm that all orderer, peers and CAs are successfully launched on each machine? 'docker ps' command shows which services are running. If you use 'docker ps -a', you can find which service is stopped.




From the all of docker-compose files, following container name should be listed by 'docker ps'



orderer

: orderer



org1

: ca1

: org1peer0

: org1peer1

: org1cli



org2

: ca2

: org2peer0

: org2peer1

: org2cli



Could you check this is correct?



Are you running this project on 3 machines or 3 cloud instances?






share|improve this answer














Could you confirm that all orderer, peers and CAs are successfully launched on each machine? 'docker ps' command shows which services are running. If you use 'docker ps -a', you can find which service is stopped.




From the all of docker-compose files, following container name should be listed by 'docker ps'



orderer

: orderer



org1

: ca1

: org1peer0

: org1peer1

: org1cli



org2

: ca2

: org2peer0

: org2peer1

: org2cli



Could you check this is correct?



Are you running this project on 3 machines or 3 cloud instances?







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 14 '18 at 7:50

























answered Nov 13 '18 at 20:08









harry

1857




1857











  • Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
    – Jeong
    Nov 14 '18 at 4:57







  • 2




    Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
    – harry
    Nov 14 '18 at 7:32











  • I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
    – harry
    Nov 14 '18 at 7:45
















  • Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
    – Jeong
    Nov 14 '18 at 4:57







  • 2




    Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
    – harry
    Nov 14 '18 at 7:32











  • I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
    – harry
    Nov 14 '18 at 7:45















Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
– Jeong
Nov 14 '18 at 4:57





Thx for your reply. I did docker ps -a many times. And I got 1. peer1.org1.example.com-mycc 2. peer0.org1.example.com-mycc 3. fabric_org1peer1 4. fabric_org1peer0 5. fabric_ca1 6. fabric_org1cli on one machine and on the other machine I got 1. fabric_orderer and 'docker service ls' command shows that all the services are running
– Jeong
Nov 14 '18 at 4:57





2




2




Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
– harry
Nov 14 '18 at 7:32





Frankly, I don't have experience about docker-swarm. Anyway, what is fabric_org1peer1 and fabric_org1peer0? Basic components of single org are orderer, ca.org1, peer0.org1 and cli. If it has 2 peers, it will be orderer, peer0.org1, peer1.org2, ca.org1 and cli. I have no idea what is fabric_org1peer1 and fabric_org1peer0.
– harry
Nov 14 '18 at 7:32













I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
– harry
Nov 14 '18 at 7:45




I am looking at the docker-compose files of the project. It's not easy to write things, let me update through my answer.
– harry
Nov 14 '18 at 7:45

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273913%2fhyperledger-composer-setting-up-connection-json%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

政党

天津地下鉄3号線