4

i got this error when i am trying to connect peers running in different machines .I found this error in docker logs of orderer.There is an error in docker logs of peer2 running in different machine

Failed obtaining connection: Could not connect to any of the endpoints: [orderer.example.com:7050]

1 Answers1

1

You can find the orderer.yaml file at fabric-samples/config folder. Going through the fields and their respective comments in orderer.yaml and core.yaml can help you to understand the method of configuring the network(orderer/peer).

And here you can get the info related to TLS.

rohit_sethi
  • 106
  • 3
  • Thanks for your reply.But i have already given the tls enabled and required keys and certificates in peers and orderer in docker files.Do i need to modify the core.yaml and orderer.yaml as i didnt find any link that firstnetwork in fabric samples is using config folder's files @rohit_sethi – Sahithi Dyavarasahetti Mar 12 '19 at 11:48
  • As mentioned in link send by you, i have added tls enabled certificates and keys in peers and orderer containers – Sahithi Dyavarasahetti Mar 12 '19 at 11:50
  • what are you trying to achieve ? please share detailed info – rohit_sethi Mar 12 '19 at 12:03
  • 1
    I am working on multi organisation network setup using first network of fabric samples.one of the organisation say org1 has created a channel by passing tls certs of orderer ,the other organisation org2 has to fetch the channel created by org1 and join the peers into the channel.when i do fetch action using peer channel fetch by passing tls certs of orderer ,i got the error like ""connection error: desc = "transport: Error while dialing dial tcp 98.124.199.121:7050: connect: connection refused". Reconnecting..."". – Sahithi Dyavarasahetti Mar 12 '19 at 12:40
  • and in orderer logs ,i got error as :TLS handshake failed with error tls: client didn't provide a certificate {"server": "Orderer", "remote address": "172.24.0.4:49608"} – Sahithi Dyavarasahetti Mar 12 '19 at 12:42
  • `CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt` - `CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key` - `CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt` set these environment variables and then try again – rohit_sethi Mar 12 '19 at 13:19
  • Yeah i have already tried with above environment variables.After following that i got the above error – Sahithi Dyavarasahetti Mar 12 '19 at 13:27