Reputation: 11
The config looks good, and I can successfully run package and install. However, approveformyorg
return this error: timed out waiting for txid on all peers
.
I don't know how to debug this error. I have tried to change some environment variables (like CORE_PEER_TLS_ROOTCERT_FILE
, CORE_PEER_MSPCONFIGPATH
).
Is it a network error? Or is the order set wrong?
Thanks for your help!
Upvotes: 1
Views: 2961
Reputation: 12821
It can be caused by a missing or wrong --package-id in the peer lifecycle chaincode approveformyorg command
Upvotes: 0
Reputation: 11
you need to add the orderer ip address to the etc/hosts file in the format mentioned below
orderer.example.com
P.S. I also faced the same issue and it got resolved
Upvotes: 1
Reputation: 21
I have encountered the same problem。The reason for my problem is that the DNS Server in Docker cannot resolve the domain name of the orderer node。It does not use the DNS settings in /etc/hosts。So the peer node can not connect to the ordering service to receive the blockWhen you check the log of the peer node, you will find that there is no such host. Therefore, I added extra_hosts to the docker-compose.yaml files of all nodes(include orderer nodes).The document is https://docs.docker.com/compose/compose-file/compose-file-v2/ .Next I deleted and rebuilt all services。Now it has worked.
Upvotes: 2
Reputation: 1
This happend to me when my order and my peer wasn't able to interract with each other. Take a look at your peer and orderer logs to check if their is no network error.
Upvotes: 0