Bug#343691: Upgrade to 0.8.6g-3 overwrites /etc/cacti/debian.php will null values

2005-12-17 Thread Jesse Molina
Package: cacti
Version: 0.8.6g-3
Severity: grave
Justification: n



After the last upgrade of Cacti, the /etc/cacti/debian.php was replaced
with default/null values.  This caused polling to stop and data for five
days was lost for my install.

During the upgrade, I recall being prompted about the new
dbconfig-common option.  I selected n for No.  However, the file was
cleared, rendering Cacti disfunctional.  I didn't notice until today
that polling had stopped.  I noticed when I saw an error message while
trying to review stats for the week.

I was able to reproduce the problem, after populating the proper values
into the /etc/cacti/debian.php file, I ran dpkg-reconfigure cacti again,
and selected no to the question;

Configure database for cacti with dbconfig-common? n

And, again, it overwrote the file and cleared values.

Expected result:  Don't touch the config files if user says NO.

I didn't see anything obvious in /usr/share/doc/cacti about this issue.
Furthermore, the replacement of this vital config file was very silent.
That's not very nice.

Hopefully I didn't do anything wrong myself.  Ask any questions needed
to clarify.



-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.32-2005120801
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cacti depends on:
ii  apache1.3.34-1   versatile, high-performance HTTP s
ii  dbconfig-common   1.8.9  common framework for packaging dat
ii  debconf [debconf-2.0] 1.4.62 Debian configuration management sy
ii  libphp-adodb  4.64-4 The 'adodb' database abstraction l
ii  logrotate 3.7.1-2Log rotation utility
ii  mysql-client-4.1 [virtual-mys 4.1.15-1   mysql database client binaries
ii  php4  4:4.4.0-4  server-side, HTML-embedded scripti
ii  php4-cli  4:4.4.0-4  command-line interpreter for the p
ii  php4-mysql4:4.4.0-4  MySQL module for php4
ii  php4-snmp 4:4.4.0-4  SNMP module for php4
ii  rrdtool   1.2.11-0.4 Time-series data storage and displ
ii  snmp  5.2.1.2-4  NET SNMP (Simple Network Managemen
ii  ucf   2.004  Update Configuration File: preserv

Versions of packages cacti recommends:
pn  iputils-ping  none (no description available)
ii  mysql-server  4.1.15-1   mysql database server (transitiona
ii  mysql-server-4.1 [mysql-serve 4.1.15-1   mysql database server binaries

-- debconf information:
* cacti/username: cacti
  cacti/db/app-user:
  cacti/mysql/admin-user: root
* cacti/mysql_server: localhost
* cacti/webserver: Apache
  cacti/mysql/method: unix socket
  cacti/remote/host:
  cacti/upgrade-error: abort
  cacti/import-oldsettings:
  cacti/dbconfig-upgrade: true
  cacti/remote/newhost:
  cacti/purge: false
  cacti/upgrade_warning:
  cacti/database-type: mysql
* cacti/database: cacti
  cacti/remove-error: abort
  cacti/db/dbname:
  cacti/mismatch:
  cacti/upgrade-backup: true
  cacti/install-error: abort
  cacti/root_mysql: root
  cacti/passwords-do-not-match:
* cacti/no_automagic:
  cacti/dbconfig-remove: true
* cacti/dbconfig-install: false
  cacti/purge_db: true
  cacti/performing_upgrade: true
  cacti/remote/port:


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



Bug#343691: Upgrade to 0.8.6g-3 overwrites /etc/cacti/debian.php will null values

2005-12-17 Thread sean finney
hi jesse,

On Sat, Dec 17, 2005 at 02:31:15AM -0700, Jesse Molina wrote:
 During the upgrade, I recall being prompted about the new
 dbconfig-common option.  I selected n for No.  However, the file was
 cleared, rendering Cacti disfunctional.  I didn't notice until today
 that polling had stopped.  I noticed when I saw an error message while
 trying to review stats for the week.

hrm.. well it shouldn't be doing that.  when i have a chance (which
will be in a few days) i'll try to see why dbconfig-common is doing
that.


sean


signature.asc
Description: Digital signature