Hyperledger Composer: How to specify server name in composer connection profile?

0 votes

When I specify orderer and peer host name (e.g. peer0.org1.example.com) in /etc/hosts file, "composer" command works.

But, if I specify server's IP address, it does not work.

$ composer network list -p hlfv1 -n info-share-bc -i PeerAdmin -s secret

✖ List business network info-share-bc
Error trying to ping. Error: Error trying to query chaincode. Error: Connect Failed

Command succeeded

This is a command example when I specify host name in /etc/hosts.

$ composer network list -p hlfv1 -n info-share-bc -i PeerAdmin -s secret

✔ List business network info-share-bc
name:       info-share-bc
models: 
  - org.hyperledger.composer.system
  - bc.share.info
 <snip>

Need help

Nov 14, 2018 in Blockchain by digger
• 27,620 points
104 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

To solve this problem you can use the hostnameOverride option in connection profile.

 "eventURL": "grpcs://<target-host>:17053", 
 "hostnameOverride": "peer0.org1.example.com",
answered Nov 14, 2018 by Omkar
• 65,810 points

Related Questions In Blockchain

0 votes
1 answer

How to solve EACCES:permission denied error in Hyperledger Composer?

It seems like there is no required ...READ MORE

answered Jul 11, 2018 in Blockchain by digger
• 27,620 points
214 views
0 votes
1 answer

How to solve "error trying install composer runtime" in Hyperledger composer?

I think the docker-compose tool is not ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,040 points
51 views
0 votes
1 answer
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
205 views
+1 vote
1 answer
0 votes
1 answer

How to get TimeStamps in Hyperledger Composer?

Here's an example that works with basic-sample-network network: asset SampleAsset ...READ MORE

answered Oct 26, 2018 in Blockchain by Omkar
• 65,810 points
123 views
0 votes
1 answer

HyperLedger Composer: Failed to load connector module “composer-connector-embedded” for connection profile “testprofile”

First, update your devDependencies in package.json "devDependencies": { ... "composer-admin": ...READ MORE

answered Nov 2, 2018 in Blockchain by Omkar
• 65,810 points
53 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.