I have 2 nodes running. I tried to in node 2 joins node 1, but it says node 1 is not running. (but both are running)
Cannot join:

config node 1:

config node 2:

node 1 port:

node 2 port:

aws ports:

The Firewall: http://docs.emqtt.com/en/latest/cluster.html#the-firewall
Same error.
config:

node 2 port:

node 1 port:

port in aws:

Try as a test to do as I suggest with vpc security groups - https://github.com/emqtt/emqttd/issues/385
@7wonders , not working.....




Have you set the name in vm.args to the correct name? I use the node and private IP:
-name [email protected]
Have you set the erlang cookie on each instance to be the same?
[email protected]:~$ nano .erlang.cookie
Ok, working now.
The trick are:
1 if you have [email protected], then your node name needs to be [email protected]. The 1.2.3.4 needs to be your private IP. ubuntu is the username of machine.
2 .erlang.cookie has the same cookie value in itself, also in vm.args
3 Do netstat -npl, to see what ports are using. Then open them in aws security group, need to open all ports.
Most helpful comment
Ok, working now.
The trick are:
1 if you have [email protected], then your node name needs to be [email protected]. The 1.2.3.4 needs to be your private IP. ubuntu is the username of machine.
2 .erlang.cookie has the same cookie value in itself, also in vm.args
3 Do netstat -npl, to see what ports are using. Then open them in aws security group, need to open all ports.