Written by The Jahia Team
 
Sysadmins
   Estimated reading time:
6.6.2.10 52607.3399

After installing a new license for a specific IP address, the check of this license failed with this error :
 

org.jahia.exceptions.JahiaException: User message=The current date [10/13/16 12:57 PM] is not accepted by license. Accepted license date is [8/31/16 12:01 AM],Current IP address 127.0.0.1 for Jahia Server is not authorized by license. (License IP= 129.194.164.21), System message=The current date [10/13/16 12:57 PM] is not accepted by license. Accepted license date is [8/31/16 12:01 AM],Current IP address 127.0.0.1 for Jahia Server is not authorized by license. (License IP= 128.198.1.21)

 

Cause

The file /etc/hosts was the culprit as the loopback address 127.0.0.1 was mapped to the same hostname as the IP 128.198.1.21

Solution

If you have a localhost hostname, then the mapping will resolve to 127.0.0.1, because it has the "shortest path".

No matter if you have the mapping for "real" IP as a first or last entry in the hosts, it won't "override" the 127.0.0.1.

After cleaning the file /etc/hosts, the check of the license has succeeded.