Issues

Select view

Select search mode

 
50 of 72

Unknown host exception on OS RHEL 6.5

Fixed

Description

Liquibase seems to resolve the server host name against the machine hostname rather than 'localhost'. The problem is that, on the RHEL machine we've got, the hostname is not bound to localhost thus throwing an UnknownHostException during the static initialization of `LockDatabaseChangeLogGenerator`.

You can see the logs below:

Until I bind "160.RH6.5" to localhost (via /etc/hosts), Liquibase will crash, preventing our installed app from starting. It should have resolved "localhost" instead.

I did not try newer versions of Liquibase given this part (LockDatabaseChangeLogGenerator + NetUtil) has not changed much.

Environment

RHEL 6.5

Details

Reporter

Fix versions

Affects versions

Priority

Created April 29, 2015 at 1:04 PM
Updated May 27, 2015 at 5:09 PM
Resolved May 27, 2015 at 4:44 PM

Activity

Show:

Nathan Voxland May 27, 2015 at 5:09 PM

Yes, hoping this week.

Florent Biville May 27, 2015 at 5:02 PM

Great news! Will 3.3.4 be released soon?

Nathan Voxland May 27, 2015 at 4:44 PM

Thanks. It's really just used for informational purposes, so if an exception is thrown it now just logs it at debug level and returns "unknown"

Florent Biville May 21, 2015 at 1:06 PM

We just reproduced the same issue today with a Debian 5 VM.
I think the simplest way to reproduce the bug is to have a hostname undeclared in '/etc/hosts'.

Loading...