I'm trying to setup Jira data center (version 8.16.1).
At first it looked fine. I created 2 nodes and I saw them on /plugins/servlet/cluster-monitoring
But I noticed the cluster addresses looked like dd72fc5dbc03:40001, where dd72fc5dbc03 is the docker internal hostname. Since these addresses are not reachable by the other nodes I also got "UnknownHostException: dd72fc5dbc03" error messages in the log output of the other node.
So I added
ehcache.listener.hostName = myrealhostname
to the cluster.properties file. But now I get errors like this
2021-09-10 10:35:11,432+0000 localhost-startStop-1 ERROR [c.a.jira.startup.ComponentContainerLauncher] A fatal error occurred during initialisation. JIRA has been locked.
net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //myserver.mydomain.net:40001/com.atlassian.jira.crowd.embedded.ofbiz.EagerOfBizUserCache.userCache. Initial cause was RemoteException occurred in server thread; nested exception is:
java.rmi.AccessException: Registry.rebind disallowed; origin /172.19.0.1 is non-local host
at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:539)
at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:159)
...
And now the Jira node is not even starting anymore.
If I remove ehcache.listener.hostName, Jira is starting again.