Debian Bug report logs -
#444076
nagios-mysql will not replace deleted config file /etc/nagios/database.cfg
Reported by: Scott Serr <serrs@theserrs.net>
Date: Tue, 25 Sep 2007 22:15:01 UTC
Severity: normal
Found in version 1.4-3
Fixed in version 2:1.4-3.2+rm
Done: Marco Rodrigues <gothicx@gmail.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#444076; Package nagios-mysql.
(full text, mbox, link).
Acknowledgement sent to Scott Serr <serrs@theserrs.net>:
New Bug report received and forwarded. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: nagios-mysql
Version: 1.4-3
I'm using Debian 4.0-r1 for Sparc.
I hand deleted /etc/nagios/database.cfg at some point. Trying to
re-install everything with:
apt-get --purge remove nagios-mysql
apt-get install nagios-mysql
Gives this output (note line 10 from the bottom "Not replacing deleted
config file"):
# apt-get install nagios-mysql
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
nagios-nrpe-plugin
Recommended packages:
nagios-images
The following NEW packages will be installed:
nagios-mysql
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/917kB of archives.
After unpacking 2707kB of additional disk space will be used.
Selecting previously deselected package nagios-mysql.
(Reading database ... 35947 files and directories currently installed.)
Unpacking nagios-mysql (from .../nagios-mysql_2%3a1.4-3_sparc.deb) ...
Setting up nagios-mysql (1.4-3) ...
dbconfig-common: writing config to /etc/dbconfig-common/nagios-mysql.conf
Creating config file /etc/dbconfig-common/nagios-mysql.conf with new version
Not replacing deleted config file /etc/nagios/database.cfg
chown: cannot access `/etc/nagios/database.cfg': No such file or directory
chmod: cannot access `/etc/nagios/database.cfg': No such file or directory
granting access to database nagiosmysql for nagios-mysql@localhost: success.
verifying access for nagios-mysql@localhost: success.
creating database nagiosmysql: success.
verifying database nagiosmysql exists: success.
populating database via sql... done.
dbconfig-common: flushing administrative password
Starting nagios monitoring daemon: nagios.
Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#444076; Package nagios-mysql.
(full text, mbox, link).
Acknowledgement sent to Scott Serr <scott@theserrs.net>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 444076@bugs.debian.org (full text, mbox, reply):
I was able to reproduce this on a fresh net-install of Etch on i386.
apt-get install mysql-server
apt-get install nagios-mysql
rm /etc/nagios/database.cfg
apt-get --purge remove nagios-mysql
apt-get install nagios-mysql
I've also tried 'dpkg-reconfigure nagios-mysql" with the same result.
People normally(?) solve a removed config file by doing "apt-get --purge
remove <pkgname>" and then "apt-get install <pkgname>" but this does not
work with nagios-mysql.
http://ubuntuforums.org/showthread.php?t=171211
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg386505.html
Information forwarded to debian-bugs-dist@lists.debian.org, Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>:
Bug#444076; Package nagios-mysql.
(full text, mbox, link).
Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 444076@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
hi scott,
you can get rid of the problem by
running "ucf --purge /etc/nagios/database.cfg". you're encountering the
problem because the file is a ucf-managed file and it's not being properly
purged from the ucf database at package purge time. if you manually remove
the file this is the expected behaviour, but it is indeed a bug that package
purge and reinstall still has the problem.
sean
On Wednesday 26 September 2007 12:48:59 am Scott Serr wrote:
> I was able to reproduce this on a fresh net-install of Etch on i386.
>
> apt-get install mysql-server
> apt-get install nagios-mysql
> rm /etc/nagios/database.cfg
> apt-get --purge remove nagios-mysql
> apt-get install nagios-mysql
>
> I've also tried 'dpkg-reconfigure nagios-mysql" with the same result.
>
> People normally(?) solve a removed config file by doing "apt-get --purge
> remove <pkgname>" and then "apt-get install <pkgname>" but this does not
> work with nagios-mysql.
>
> http://ubuntuforums.org/showthread.php?t=171211
> http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg386505.htm
>l
>
>
>
>
> _______________________________________________
> Pkg-nagios-devel mailing list
> Pkg-nagios-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-nagios-devel
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Marco Rodrigues <gothicx@gmail.com>:
You have taken responsibility.
(Sat, 27 Mar 2010 18:33:18 GMT) (full text, mbox, link).
Notification sent
to Scott Serr <serrs@theserrs.net>:
Bug acknowledged by developer.
(Sat, 27 Mar 2010 18:33:19 GMT) (full text, mbox, link).
Message #20 received at 444076-done@bugs.debian.org (full text, mbox, reply):
Version: 2:1.4-3.2+rm
You filed the bug http://bugs.debian.org/444076 in Debian BTS
against the package nagios-mysql. I'm closing it at *unstable*, but it will
remain open for older distributions.
For more information about this package's removal, read
http://bugs.debian.org/464774. That bug might give the reasons why
this package was removed and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
--
Marco Rodrigues
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 25 Apr 2010 07:32:13 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 7 14:12:24 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.