Hyperledger Composer setting up connection.json
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
add a comment |
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
TLS set to true or false ? and can you paste the peer logs also
– jaswanth
Nov 15 '18 at 9:25
add a comment |
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
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
docker hyperledger-fabric hyperledger hyperledger-composer
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
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
add a comment |
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?
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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?
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
add a comment |
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?
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
add a comment |
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?
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?
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
TLS set to true or false ? and can you paste the peer logs also
– jaswanth
Nov 15 '18 at 9:25