hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.81k stars 3.4k forks source link

CST 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 173.725µs with error: EOF remoteaddress=127.0.0.1:7051 #1188

Closed heshan23 closed 7 months ago

heshan23 commented 8 months ago

fabric: v2.5.4 docker: v24.0.5 docker-compose: v1.25.0 When running ./test-network.sh createChannel, the error occurs.

Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=0
2024-03-28 16:27:18.121 CST 0001 ERRO [comm.tls] ClientHandshake -> Client TLS handshake failed after 173.725µs with error: EOF remoteaddress=127.0.0.1:7051
2024-03-28 16:27:19.127 CST 0002 INFO [channelCmd] InitCmdFactory -> Endorser and orderer connections initialized
2024-03-28 16:27:24.065 CST 0003 INFO [channelCmd] executeJoin -> Successfully submitted proposal to join channel
heshan23 commented 8 months ago

I fix this problem by remapping the ports of peer0.org1. However, I'm still confused with how does the mapping of ports wrong. Since the port 7051 is the default port of peer0.org1.

ports:
      - 7151:7151
      - 9444:9444