-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect two Nodes on two machines in AWS #54
Comments
Check your docker container. Do $docker ps -a Check container status. If it is running then do Check rpc and nodemanager status. Can u please post the logs? |
Hey! :) the Node wich is trying to connect: (I'm sorry for the layout..) When I do "netstat -pnat | grep listen", I get "(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)" so I ran it with sudo, then I get no output at all... |
Sorry it was my fault listen should be in caps Looks like your node manager is down. Do one thing. Start the second machine(Node which is trying to connect) by executing start.sh script. Then do root@{container_id}: /home/node/ root@{container_id}: /home/node/qdata# You should be able to see geth.ipc in qdata directory. If it is there then execute the following command. root@{container_id}: /home/node/qdata# geth attach geth.ipc
Then check your peers from the geth console.
|
You can get enode address from quorum maker dashboard. Go to the first aws instance dashboard --> http://{your_first_AWS_IP}:22004 click on active nodes tab and check the enode address. |
One more thing... Did you add rule for NodeManager Port and Constellation port?. If rule is not added then it will never connect. Go to AWS Dashboard and add rules for your ports. Add inbound and outbound rule for the ports. |
Okay so I did the "netstat -pnat | grep LISTEN: and Node which is trying to connect: |
I did that manually through the centOS with -p port:port when I set up the Node, if thats what you mean.
Unfortunately there is no geth.ipc... only directory geth, keystore and logs |
No i am not talking about docker. See your first machine works fine because it is not connecting to any other machine. Your second machine will first send join request to first machine then it will start downloading transactions...
Did you setup ec2 machines on your own?. Please refer this [(https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html)] If you did not setup the ec2 instance then ask your administrator to add inbound and outbound rules for the ports. Its not docker thing. It is firewall issue. You have to add the rule from amazon ec2 dashboard. Please contact your EC2 administrator or whoever had setup ec2 instances for you.... In your case ports which are used for quorum maker does not accept connections from outside(firewall issue).
Yes it won't come up in your second machine because its join request was not accepted due to firewall issues. |
You are completly right, I didn't set up these instances and I thought the same and wrote an email to the administrator. I hope he can add these rules. Thank you very much for you help that far, I'll wait for the rules to be set and try again. :) |
Ok. :) |
Hey did it work?. |
Hey I'm still waiting for the admin to open the ports... |
It worked perfectly! Thank you very much! |
Ok .... Welcome :) |
Using centOS 7 on ec2 instances with the latest quorum-maker.
Wanted to connect a Node from instance A with a Node from instance B with the "join network" task.
I configured the Network-Node and can access the webinterface.
Node A:
Please select an option:
option: 1
Please enter node name: nodename1
Please enter IP Address of this node: myip
Please enter RPC Port of this node[Default:22000]:
Please enter Network Listening Port of this node[Default:22001]:
Please enter Constellation Port of this node[Default:22002]:
Please enter Raft Port of this node[Default:22003]:
Please enter Node Manager Port of this node[Default:22004]:
Please enter WS Port of this node[Default:22005]:
Successfully created and started nodename1
You can send transactions to myip:22000
For private transactions, use pTRZo0CoFY8z8Og977Il8EJt7NkIQe0zETP6rLEPmW8=
For accessing Quorum Maker UI, please open the following from a web browser http://localhost:22004/
To join this node from a different host, please run Quorum Maker and choose option to run Join Network
When asked, enter myip for Existing Node IP and 22004 for Node Manager Port
{"level":"info","msg":"Node Manager listening on :22004...","time":"2018-10-02T09:56:19Z"}
{"level":"info","msg":"Deploying Network Manager Contract","time":"2018-10-02T09:56:20Z"}
{"level":"info","msg":"Adding whitelisted IPs","time":"2018-10-02T09:56:23Z"}
^C{"level":"info","msg":"Node Manager Shutting down","time":"2018-10-02T10:13:19Z"}
Node B:
Please select an option:
option: 2
Please enter node name: noden12
Please enter IP Address of existing node: myip
Please enter Node Manager Port of existing node: 22004
Please enter IP Address of this node: myotherip
Please enter RPC Port of this node[Default:22000]:23000
Please enter Network Listening Port of this node[Default:23001]:
Please enter Constellation Port of this node[Default:23002]:
Please enter Raft Port of this node[Default:23003]:
Please enter Node Manager Port of this node[Default:23004]:
Please enter WS Port of this node[Default:23005]:
Join Request sent to myip. Waiting for approval...
and then it gets stuck and times out. I don't get a notification for a approval. is this an error with docker and ports on the instance?
Edit: There is no file in qdata/logs, so I don't know whats the error.
The text was updated successfully, but these errors were encountered: