Emqx: Cannot join cluster, node not running?

Created on 5 Apr 2016  路  6Comments  路  Source: emqx/emqx

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:
cannot_join

config node 1:
config_node_1

config node 2:
config_node_2

node 1 port:
node_1_port

node 2 port:
node_2_port

aws ports:
rule

Support question

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.

All 6 comments

Same error.

config:
config

node 2 port:
node_2_port

node 1 port:
node_port_1

port in aws:
port

Try as a test to do as I suggest with vpc security groups - https://github.com/emqtt/emqttd/issues/385

@7wonders , not working.....

all_traffic

cannot_join

pang

pang1

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.

Was this page helpful?
0 / 5 - 0 ratings