|
|
| Author |
Message |
Didier Guest
|
Posted: Fri Aug 27, 2004 3:11 am Post subject: R39: BUG IN INSTALLATION OF cacti-0.8.6-pre20040826.zip |
|
|
BUG IN INSTALLATION OF CACTI 0.8.6
============================
Release: cacti-0.8.6-pre20040826.zip
Hello I have met again the problem I had some days ago : impossible to run cacti the first time you install it from scratch
==> image1a.jpg ---> The error message
==> image2a.jpg ---> The cacti panel I'm not able to have
I have traced a lot the code, and I think I have found the explanation
- There is a loop with the read_config_option for 'path_webroot'
It calls itself ---> see below
If we do that just before connecting the first time to http://localhost/cacti we have no problem at all
mysql --user=cactiuser --password=cactiuser cacti
>>> INSERT INTO settings VALUES ('path_webroot','');
I think in cacti/cacti.sql it missing this line
or somewhere else in the code something to initialize this entry in the database
NB 1: May be this problem is not always here because there is an intercation with the poller.php
In this file I have seen the value 'path_webroot' is replaced.
db_execute("replace into settings (name,value) values ('path_webroot','" . addslashes(dirname(__FILE__)) . "')");
May be sometimes even if the value doesn't exist a bug of mysql make it create and after th problem is solve
Nevertheless since this 'poller.php' is always called do you think it is the appropriate location to initialize
this value may be in the install script it would be preferable
NB 2: I don't know the behaviour of the upgrade procedure regarding to that point and if there is the bug in that case
==================
a) index.php
b) auth.php
--> include("./include/config.php");
c) config.php
--> include_once($config["include_path"] . "/config_form.php");
d) config_form.php
"snmp_password" => array(
"method" => "textbox",
"friendly_name" => "SNMP Password",
"description" => "Fill in the SNMP password for this device (v3).",
"value" => "|arg1:snmp_password|",
"default" => read_config_option("snmp_password"), =========> This fucntion makes the problem
"max_length" => "50",
),
e) functions.php
---> read_config_option
---> read_default_config_option
---> include ($config["include_path"] . "/config_settings.php"); ===> This function makes the problem
f) config_settings.php
"path_cactilog" => array(
"friendly_name" => "Cacti Log File Path",
"description" => "The path to your Cacti log file (if blank, defaults to <path_cacti>/log/cacti.log)",
"method" => "textbox",
"default" => read_config_option("path_webroot") . "/log/cacti.log", ===> This function makes the problem
"max_length" => "255"
),
g) read_config_option again
h) which call again read_default_config_option
i) which include again config_settings.php ==*********===> Here's the loop !!!!!!!!
(So for the option path_webroot at least, may be there are some other variables also)
Didier
| Description: |
|
| Filesize: |
28.64 KB |
| Viewed: |
1251 Time(s) |

|
|
|
| Back to top |
|
 |
Didier Guest
|
Posted: Fri Aug 27, 2004 3:13 am Post subject: and the other image of the screen I'm not able to have |
|
|
to better understand the problem and the other image of the screen I'm not able to have
| Description: |
|
| Filesize: |
48.92 KB |
| Viewed: |
1250 Time(s) |

|
|
|
| Back to top |
|
 |
Didier Guest
|
Posted: Fri Aug 27, 2004 9:08 am Post subject: Same problem with cacti-0.8.6-pre20040827.zip |
|
|
I have just tested with cacti-0.8.6-pre20040827.zip
The problem is still existing
Didier
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Sat Aug 28, 2004 2:30 pm Post subject: |
|
|
Didier,
Ian fixed this issue last night. Today's CVS should correct. He made additional changes today that will further improve support. You will need to update your config.php to the lastest distrib (config.php.dist) copy to use.
TheWitness
|
|
| Back to top |
|
 |
Didier Guest
|
Posted: Sat Aug 28, 2004 2:49 pm Post subject: It is ok now, thanks |
|
|
Thanks,
It is corrected in cacti-0.8.6-pre20040828.zip
Thanks a lot for your help and job you have done on it
Didier
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|