JIRA logs errors: 'This prevents creation of a GUID' due to incorrect host name
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
The following error appears in the atlassian-jira.log
:
1
2
3
4
2011-03-16 18:20:03,021 ERROR [main] [net.sf.ehcache.Cache] <clinit> Unable to set localhost. This prevents creation of a GUID. Cause was: <hostname>: <hostname>
java.net.UnknownHostException: <hostname>: <hostname>
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at net.sf.ehcache.Cache.<clinit>(Cache.java:145)
Cause
The local hostname (or COMPUTERNAME - Windows) that is running JIRA is not in the host file or is not resolvable via DNS lookup.
Resolution
Change the local hostname (or COMPUTERNAME in Windows) that is running JIRA to match the host file, or enter the local hostname into the hosts file.
windows
C:\Windows\System32\drivers\etc\hosts
linux/unix environments
/etc/hosts
ℹ️ We strongly recommend placing the hostname in the host file as fail-safe for DNS server failure.
Alternatively, make the hostname resolvable via DNS.
Was this helpful?