raf
raf

Reputation: 52

Hyperledger Fabric error at adding new org to channel

I'm running Fabric test network v2.2. Everything was successfully set up. I'm now trying to add an extra organization to the network.

I've generated crypto materials, and the configuration update tx. I sign the transaction, Essentially, everything executed correctly, where the success message regarding the addition of a peer was obtained.

EDIT:

Although it seems that the peer0 from a new org (org5) was correctly added, the org5 logs show that:

2021-05-31 13:13:50.794 UTC [peer.blocksprovider] DeliverBlocks -> WARN 7b0 Could not connect to ordering service: could not dial endpoint 'orderer.example.com:7050': failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host" channel=mychannel

peer0.org1.example.com shows similarly that:

2021-05-31 13:13:06.802 UTC [gossip.gossip] func1 -> WARN 409 Deep probe of org5.example.com:11071 failed: context deadline exceeded
2021-05-31 13:13:06.802 UTC [gossip.discovery] func1 -> WARN 40a Could not connect to Endpoint: org5.example.com:11071, InternalEndpoint: org5.example.com:11071, PKI-ID: <nil>, Metadata:  : context deadline exceeded

Any ideas on how to solve this?

Logs:

Orderer logs: https://gist.github.com/RafaelAPB/bada1278a096e252060e3d117b3c5719

peer0.org1.example.com logs: https://gist.github.com/RafaelAPB/d5b6af66a62a18d9572399274a0a6aa5

org5 logs: https://gist.github.com/RafaelAPB/cddba91566e66ca45f5494dff43196a0

peer 5 docker-compose: https://gist.github.com/RafaelAPB/b82a64d4122e103f06dd7e4b9bc9023c

Upvotes: 2

Views: 566

Answers (1)

Li Xian
Li Xian

Reputation: 411

I guess that your orginal docker network is cactusfabrictestnetwork_test,and your origin fabric components has join this docker network,so your new peer(peer0.org5.example.com) should join this docker network(cactusfabrictestnetwork_test),then all these component can find each other.

then your peer0.org5.example.com docker-compose file should like this https://paste.ubuntu.com/p/G7MyWSCN6g/ and before you start your peer0.org5 container ,set COMPOSE_PROJECT_NAME=cactusfabrictestnetwork,and your peer0.org5 will join network cactusfabrictestnetwork_test,reference this https://docs.docker.com/compose/networking/

Upvotes: 1

Related Questions