Hazelcast がこのノードを起動できない。一致するネットワーク インターフェースが見つからない。
This article applies to Confluence Data Center 5.6 or later.
症状
Unable to start the Confluence Data Center node, with the following error in the atlassian-confluence.log
:
java.lang.RuntimeException: Hazelcast CANNOT start on this node. No matching network interface found.
Interface matching must be either disabled or updated in the hazelcast.xml config file.
at com.hazelcast.instance.DefaultAddressPicker.pickAddress(DefaultAddressPicker.java:180)
A similar error can be thrown in atlassian-synchrony.log for Data Center instances in Docker. See the following article for that issue: Interface IP is incorrect and not found while starting Hazelcast in a dockerized environment for Confluence Data Center
原因
Wrong network interface set in <Confluence local home>/confluence.cfg.xml
:
<property name="confluence.cluster.interface">wlan0</property>
ソリューション
- Download the attached ListInterfaces-v2.jar
Run it by java -jar ListInterfaces-v2.jar:
C:\>java -jar ListInterfaces-v2.jar interfaces.size() = 3 networkInterface[0] name:awdl0 (awdl0) addresses:fe80:0:0:0:b431:f3ff:fea5:4bda%8 networkInterface[1] name:en0 (en0) addresses:fe80:0:0:0:62f8:1dff:fec8:3d70%4 addresses:10.60.3.54 networkInterface[2] name:lo0 (lo0) addresses:fe80:0:0:0:0:0:0:1%1 addresses:0:0:0:0:0:0:0:1 addresses:127.0.0.1
Modify the interface set in
<Confluence local home>/confluence.cfg.xml
:<property name="confluence.cluster.interface">eth0</property>
- Startup Confluence