• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • etsai
  • Reporter: foshea
  • January 28, 2009
  • 0
  • Watchers: 0
  • February 02, 2009
  • January 29, 2009

Description

2009-01-27 09:37:49,037 INFO - Available Max Runtime Memory: 496MB 2009-01-27 09:37:49,298 ERROR - Unable to find local network interface for 127.0.1.1

Comments

Fiona OShea 2009-01-28

Ubuntu adds the following to /etc/hosts

127.0.0.1 localhost 127.0.1.1

This causes issues with the Terracotta Server Array starting without a specificed config file. To work around this

  1. Update 127.0.1.1 to 127.0.0.1

  2. Specify a tc-config.xml file to use on startup. http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files

Erh-Yuan Tsai 2009-01-28

This had been fixed already on trunk rev 11380 and 2.7 rev 11381.

— dso/branches/2.7/code/base/dso-l2/src/com/tc/objectserver/impl/DistributedObjectServer.java 2009-01-28 02:11:51 UTC (rev 11380) +++ dso/branches/2.7/code/base/dso-l2/src/com/tc/objectserver/impl/DistributedObjectServer.java 2009-01-28 02:26:15 UTC (rev 11381) @@ -366,7 +366,8 @@

 // verify user input host name, DEV-2293
 String host = l2DSOConfig.host().getString(); -    if(NetworkInterface.getByInetAddress(InetAddress.getByName(host)) == null) \{ +    InetAddress ip = InetAddress.getByName(host); +    if(!ip.isLoopbackAddress() && (NetworkInterface.getByInetAddress(ip) == null)) \{
   String msg = "Unable to find local network interface for " + host;
   consoleLogger.error(msg);
   logger.error(msg, new TCRuntimeException(msg));

Fiona OShea 2009-01-28

Add as Known Issue.

nadeem ghani 2009-01-29

also seen on SUSE ES10 w/ GNOME where /etc/hosts has two entries

127.0.0.1 localhost 127.0.0.2 linux-ft5s

nadeem ghani 2009-01-29

verified on both RHEL and SUSE