/etc/hosts defines host name 'localhost' more than once

Scrutinizer is an enterprise/business class NetFlow and sFlow analysis tool. Scrutinizer provides historical trends of the company's critical network interfaces as well as the details on:

Who: The end system causing the traffic
What: The application/protocol that is being used
When: The time frame it has been occurring for
Where: The network connection that is affected

Moderators: scottr, Moderator Team

Post Reply
AaronD
Posts: 1
Joined: Tue Apr 04, 2017 9:28 am

/etc/hosts defines host name 'localhost' more than once

Post by AaronD » Thu Apr 27, 2017 11:23 am

I have encountered this error:

Code: Select all

/etc/hosts defines host name 'localhost' more than once
twice now while upgrading to 17.2 and while localhost was defined twice (once for ipv4 and once for ipv6 which is actually fine), the real problem was that the actual host name of the machine had been defined for two ipv4 addresses 127.0.0.1 and the actual ip address of the machine:

Code: Select all

127.0.0.1  localhost localhost.localdomain scrutinizer.mynetwork localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.1 scrutinizer.mynetwork
in both cases the solution was to remove the hostname from the 127.0.0.1 line:

Code: Select all

127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.1 scrunitizer.mynetwork
after that running the installer completed without incident.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests