[Pkg-nagios-devel] Bug#918219: nagios3-cgi: postinst script fails if supplied apache config has been deleted previously
Alex Sheppard
ams at corefiling.com
Fri Jan 4 11:04:54 GMT 2019
Package: nagios3-cgi
Version: 3.5.1.dfsg-2+deb8u1
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
Simply updating the system
* What exactly did you do (or not do) that was effective (or
ineffective)?
apt-get update && apt-get upgrade
* What was the outcome of this action?
This packages and the depending nagios3 package were left unconfigured / incompletely installed
* What outcome did you expect instead?
The packages to install cleanly
* More Detail
We use our own custom apache vhost to server nagios and so deleted the packaged /etc/nagios3/apache2.conf
The postinst script calls 'ucf --debconf-ok /usr/share/nagios3-cgi/apache2.conf /etc/nagios3/apache2.conf' which responds with
"Not replacing deleted config file /etc/nagios3/apache2.conf"
Then a few lines later 'apache2_invoke enconf nagios3' fails and results in an exit code of '1' from the postinst script.
I think this ought to be a warning, rather than an error.
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 8.11
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-7-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages nagios3-cgi depends on:
ii adduser 3.113+nmu3
ii apache2-utils 2.4.10-10+deb8u12
ii coreutils 8.23-4
ii debconf [debconf-2.0] 1.5.56+deb8u1
ii libapache2-mod-php5 5.6.39+dfsg-0+deb8u1
ii libc6 2.19-18+deb8u10
ii libgd3 2.1.0-5+deb8u11
ii libjpeg62-turbo 1:1.3.1-12
ii libjs-jquery 1.7.2+dfsg-3.2
ii libpng12-0 1.2.50-2+deb8u3
ii nagios3-common 3.5.1.dfsg-2+deb8u1
ii ucf 3.0030
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages nagios3-cgi recommends:
ii apache2 [httpd] 2.4.10-10+deb8u12
pn nagios-images <none>
nagios3-cgi suggests no packages.
-- Configuration Files:
/etc/nagios3/cgi.cfg changed [not included]
-- debconf information:
nagios3/httpd: apache2
nagios3/adminpassword-mismatch:
nagios3/nagios1-in-apacheconf: false
More information about the Pkg-nagios-devel
mailing list