donatedTunic1290 / certification-network

Hyperledger Fabric Certification Network
5 stars 14 forks source link

I get the below error while trying add peer to join the channel using peer channel join -b $BLOCKFILE #16

Open chandramouliraju opened 1 year ago

chandramouliraju commented 1 year ago

I get this below error

on executing

peer channel join -b $BLOCKFILE

Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded

When i checked the logs in the docker network Server TLS Handshake failed. [core.comm] ServerHandshake -> Server TLS handshake failed in 722.3µs with error tls: first record does not look like a TLS handshake server=PeerServer remoteaddress=172.20.0.1:38764

I tried setting the PEER Address as localhost:7051, 0.0.0.0:7051, peer0.mit.certification.com:7051, 127.0.0.1:7051 and also tried the peer ip address from docker logs of peer0 pod.

All the combination fails with TLS handshake error

Abhishek-1857 commented 1 year ago

Hey @chandramouliraju , you actually need to set export CORE_PEER_TLS_ENABLED to true to start tls handshakes