I have the same exact issue.
Hazelcast 1.2.0, openfire 3.9.1
I have two servers on Amazon EC2, they share RDS mysql database.
Each node sees itself, but not the other.
Hard thing about this is that there are no exceptions in error.log, no other info in warn.log etc.
Each host can ping the other fine. Nmap shows port 5701 open on both hosts.
root@ip-172-31-45-245:/usr/share/openfire/plugins/hazelcast/classes# ping ip-172-31-43-108.us-west-2.compute.internal
PING ip-172-31-43-108.us-west-2.compute.internal (172.31.43.108) 56(84) bytes of data.
64 bytes from ip-172-31-43-108.us-west-2.compute.internal (172.31.43.108): icmp_req=1 ttl=64 time=0.776 ms
Each host has same config.
root@ip-172-31-43-108:/usr/share/openfire/plugins/hazelcast/classes# ls
hazelcast-cache-config.xml
...
<network> | |
<port auto-increment="true">5701</port> | |
<join> | |
<multicast enabled="false"/> | |
<tcp-ip enabled="true"> | |
<hostname>ip-172-31-43-108.us-west-2.compute.internal:5701</hostname> | |
<hostname>ip-172-31-45-245.us-west-2.compute.internal:5701</hostname> | |
</tcp-ip> | |
<aws enabled="false"/> | |
</join> | |
<interfaces enabled="false"/> |
...
Adding to <interfaces enable="true"> the local interface does not solve the issue. Using IP addresses instead of host names also does not.