synechron-finlabs / quorum-maker

Utility to create and monitor Quorum nodes
Apache License 2.0
196 stars 97 forks source link

Cannot start two nodes in single machine. #63

Closed karthik137 closed 5 years ago

karthik137 commented 5 years ago

I am trying to setup two nodes in the single machine. I have only 4 aws instances. But i want to setup 6 nodes. I tried to setup two nodes in my local system first. First node started successfully. But second node failed saying "Unknown Error. Please check log. Program exiting".

First node rpc --> localhost:22002

Second node rpc --> localhost:33002 (This one fails to start).

I have checked the scripts. It is not able to fetch genesis data from node manager of the main node. I ran the post manually from the postman and it works. I think the problem is in pre_start_check.sh file.

Attaching screen shot --> quroumissuenode

dhyansraj commented 5 years ago

Do not use localhost or 127.0.0.1. Since docker container will try to connect to itself, the call wont go to the other. Use host IP you get from ifconfig probably for interface eth0 or similar.

karthik137 commented 5 years ago

Yes IP worked. Thanks.

karthik137 commented 5 years ago

Is it container issue?.

dhyansraj commented 5 years ago

no. every machine has same loopback 127.* addresses. So is docker containers. If you ask container to connect to 127.0.0.1, it will connect to itself.