Package: cacti
Followup-For: Bug #378830

Hi.

After issueing a dpkg-reconfigure cacti, I was able to provide the database 
parameters (choosing Yes to reconfigure the database), 
and afterwards, the parameters are set :
# /usr/sbin/dbconfig-load-include --dbname=database_default 
--dbpass=database_password 
--dbuser=database_username 
--dbserver=database_hostname -f php /etc/cacti/debian.php 
dbc_dbuser='cacti';
dbc_dbpass='xxxxxxxxx';
dbc_dbname='cacti';
dbc_dbserver='';

But it still fails the same way, as there is still no database created.

After creating the database as explained in 
/usr/share/doc/cacti/README.Debian.gz, now, it works.

I'm afraid the configuration phase's first dialog is ambiguous. 

It says :

"Since you are reconfiguring cacti, you may also want to reinstall the database 
which it uses.

If you wish to re-install the database for cacti, you should select this 
option.  If you do not wish to do so (if you are   
reconfiguring the package for unrelated reasons), you should not select this 
option."

But it seems to me that all it does is configure the cacti conf files so that 
it finds the database if it exists, and won't create 
the database (or it silently fails on that stage).

Anyway, the workaround is to create the database manually as instructed by the 
README.Debian, and reconfigure...

Hope this helps.

Best regards,

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages cacti depends on:
ii  apache2                       2.0.55-4.1 next generation, scalable, extenda
ii  apache2-mpm-prefork [httpd]   2.0.55-4.1 traditional model for Apache2
ii  dbconfig-common               1.8.21     common framework for packaging dat
ii  debconf [debconf-2.0]         1.5.3      Debian configuration management sy
ii  libapache2-mod-php5           5.1.6-1    server-side, HTML-embedded scripti
ii  libphp-adodb                  4.72-0.1   The 'adodb' database abstraction l
ii  logrotate                     3.7.1-3    Log rotation utility
ii  mysql-client-5.0 [virtual-mys 5.0.24a-3  mysql database client binaries
ii  php5-cli                      5.1.6-1    command-line interpreter for the p
ii  php5-mysql                    5.1.6-1    MySQL module for php5
ii  php5-snmp                     5.1.6-1    SNMP module for php5
ii  rrdtool                       1.2.11-0.6 Time-series data storage and displ
ii  snmp                          5.2.3-1    NET SNMP (Simple Network Managemen
ii  ucf                           2.0014     Update Configuration File: preserv

Versions of packages cacti recommends:
ii  iputils-ping                3:20020927-3 Tools to test the reachability of 
ii  mysql-server                5.0.24a-3    mysql database server (current ver
ii  mysql-server-5.0 [mysql-ser 5.0.24a-3    mysql database server binaries

-- debconf information:
* cacti/db/app-user: cacti
* cacti/mysql/admin-user: root
* cacti/webserver: Apache2
* cacti/mysql/method: unix socket
  cacti/remote/host:
  cacti/upgrade-error: abort
  cacti/dbconfig-upgrade: true
  cacti/remote/newhost:
  cacti/purge: false
  cacti/database-type: mysql
  cacti/remove-error: abort
* cacti/db/dbname: cacti
  cacti/upgrade-backup: true
  cacti/install-error: abort
  cacti/internal/reconfiguring: true
  cacti/passwords-do-not-match:
  cacti/dbconfig-remove:
* cacti/dbconfig-install: false
  cacti/remote/port:
* cacti/dbconfig-reinstall: false


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to