CrateDB, could not discover another node

version is 4.1.5

node-1 config:

bootstrap.memory_lock : true
path.data: /data01/crate
network.host: ip1
discovery.seed_hosts:
    - ip1:4300
cluster.initial_master_nodes:
    - ip1
cluster.name: crate
node.name: ip1

node-2 config:

bootstrap.memory_lock : true
path.data: /data01/crate
network.host: ip-2
discovery.seed_hosts:
    - ip-1:4300
cluster.initial_master_nodes:
    - ip-1
cluster.name: crate
node.name: ip-2

the nodes can not discover each other, both elect itself as master

node-1 logs:

[2020-05-20T17:28:34,238][INFO ][o.e.c.s.MasterService    ] [ip-1] elected-as-master ([1] nodes joined)[{ip-1}{yWjOEgS2SCyR7ZinzqkI0Q}{mg6gFhV7RWOPN4iO5bjajw}{ip-1}{ip-1:4300}{http_address=ip-1:4200} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 7, version: 57044, reason: master node changed {previous [], current [{ip-1}{yWjOEgS2SCyR7ZinzqkI0Q}{mg6gFhV7RWOPN4iO5bjajw}{ip-1}{ip-1:4300}{http_address=ip-1:4200}]}
[2020-05-20T17:28:34,373][INFO ][o.e.c.s.ClusterApplierService] [ip-1] master node changed {previous [], current [{ip-1}{yWjOEgS2SCyR7ZinzqkI0Q}{mg6gFhV7RWOPN4iO5bjajw}{ip-1}{ip-1:4300}{http_address=ip-1:4200}]}, term: 7, version: 57044, reason: Publication{term=7, version=57044}

node-2 logs:

[2020-05-20T17:29:08,418][INFO ][o.e.c.s.MasterService    ] [ip-2] elected-as-master ([1] nodes joined)[{ip-2}{JNXMIGEjSQeBgEcB-aHuQA}{8dm0i_vsRVKTTPFY4U7Kvw}{ip-2}{ip-2:4300}{http_address=ip-2:4200} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 6, version: 8553, reason: master node changed {previous [], current [{ip-2}{JNXMIGEjSQeBgEcB-aHuQA}{8dm0i_vsRVKTTPFY4U7Kvw}{ip-2}{ip-2:4300}{http_address=ip-2:4200}]}
[2020-05-20T17:29:08,569][INFO ][o.e.c.s.ClusterApplierService] [ip-2] master node changed {previous [], current [{ip-2}{JNXMIGEjSQeBgEcB-aHuQA}{8dm0i_vsRVKTTPFY4U7Kvw}{ip-2}{ip-2:4300}{http_address=ip-2:4200}]}, term: 6, version: 8553, reason: Publication{term=6, version=8553}

Hi there,

I don’t know if you solved the issue already.

can you try this here in both configurations?:

discovery.seed_hosts:
- ip-1:4300
- ip-2:4300

cluster.initial_master_nodes:
- ip-1
- ip-2

And you have to make sure, that you can reach ip-2:4300 from ip-1 and vice-versa.