Linux Installer Issue with Unknown Host Error

If your Linux server doesn't have proper hostname entries in the /etc/hosts file, you may get installer errors.

The installer carries out an import operation 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 error messages like 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 like these: localhost.localdomain myhost

For instance: localhost.localdomain localhost myhost

2. You can also 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.