Linux Installer Issue with Unknown Host Error

If a Linux server does not have proper hostname entries in the /etc/hosts file, it is possible to get installer errors.

The installer carries out an import operation in order to load the core, minimal data into the repository database. This import operation can fail if the host is not configured.

If the import operation fails during installation, the installation will also fail. However, there should be an installation.log in the root of the installation folder to help debug the problem. The installation.log is located here:


An improperly configured hosts file typically causes the log, or error messages displayed on the console, to contain error messages such as these:

Caused by: No route to host
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
ERROR Cache:145 - Unable to set localhost. This prevents creation of a GUID
org.quartz.SchedulerException: Couldn't get host name!

To fix the /etc/hosts file:

1. Include entries that look similar to these: localhost.localdomain myhost

For instance: localhost.localdomain localhost myhost

2. Also, you can double check the file /etc/sysconfig/network (if it exists).

In this file it would be similar to the following:


3. After fixing the /etc/hosts file, reinstall JasperReports Server.