Elastix Project

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000269 [Elastix distro] Installation issues major have not tried 2010-02-25 05:26 2010-07-20 13:55
Reporter diego_iastrubni View Status public  
Assigned To a_villacis
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0000269: localhost is missing from /etc/hosts
Description When you try to modify the host name via the GUI, the backend modifies /etc/hosts and does not add localhost as 127.0.0.1. (by visiting https://xxx/index.php?menu=network [^] )

As a result, calls take a lot of time to generate. This is caused by dialparties.agi (a php script running from the dialplan), which tries to find the IP of "localhost", and times out after 5 seconds. In general, kittens die when you forget to add "127.0.0.1 localhost" to /etc/hosts, and it might break other software as well.

The solution is pretty simple - also include the IP of "localhost" and "localhost.localdomain" in that configuration file.
Additional Information
Tags No tags attached.
Elastix version All versions
Attached Files

- Relationships

-  Notes
(0001047)
diego_iastrubni (reporter)
2010-02-25 05:37

Fix should be easy, here is a workaround (I will try to make a nice one as soon as possible, as this feel too hackilish..)

[root@xr1-5 ~]# cat fix-hosts-file.patch
--- modules/network_parameters/index.php.orig 2010-02-25 10:02:48.000000000 +0000
+++ modules/network_parameters/index.php 2010-02-25 10:03:27.000000000 +0000
@@ -319,7 +319,7 @@
 //Luego se modifica el archivo main.cf
     $conf_file=new paloConfig("/etc","hosts","\t","[[:space:]]*\t\t[[:space:]]*");
     $contenido=$conf_file->leer_configuracion();
- $arr_reemplazos=array('127.0.0.1'=>$_POST['host']);
+ $arr_reemplazos=array('127.0.0.1'=>$_POST['host'] . " localhost localhost.localdomain" );
     $bValido=$conf_file->escribir_configuracion($arr_reemplazos);

     return $bValido;
(0001077)
a_villacis (developer)
2010-03-22 18:50

Confirmed to be a bug in network parameters configuration.
(0001636)
a_villacis (developer)
2010-07-19 16:58

Suggested fix was commited as SVN commit #1455 and should be already in repository updates. Please test and report back on whether the fix was successful.
(0001651)
lfain (reporter)
2010-07-20 11:06

The issue seems to be fixed in Elastix 2 RC3
(0001652)
a_villacis (developer)
2010-07-20 13:55

Reported as fixed.

- Issue History
Date Modified Username Field Change
2010-02-25 05:26 diego_iastrubni New Issue
2010-02-25 05:26 diego_iastrubni Elastix version => All versions
2010-02-25 05:37 diego_iastrubni Note Added: 0001047
2010-03-22 18:49 a_villacis Status new => assigned
2010-03-22 18:49 a_villacis Assigned To => a_villacis
2010-03-22 18:50 a_villacis Note Added: 0001077
2010-03-22 18:50 a_villacis Status assigned => confirmed
2010-03-23 03:34 tzafrir Issue Monitored: tzafrir
2010-07-19 16:58 a_villacis Note Added: 0001636
2010-07-19 16:58 a_villacis Status confirmed => feedback
2010-07-20 11:06 lfain Note Added: 0001651
2010-07-20 13:55 a_villacis Note Added: 0001652
2010-07-20 13:55 a_villacis Status feedback => resolved
2010-07-20 13:55 a_villacis Resolution open => fixed


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker