[Pkg-nagios-devel] Bug#305206: Upgrade 2:1.3-cvs.20050116-4 -> 2:1.3-cvs.20050402-1 tries and fails to start second nagios instance

Jeroen van Wolffelaar Jeroen van Wolffelaar <jeroen@wolffelaar.nl>, 305206@bugs.debian.org
Mon, 18 Apr 2005 18:15:53 +0200


Package: nagios-mysql
Version: 2:1.3-cvs.20050402-1
Severity: important
Justification: strong suspicion a possible security update in sarge will
  exhibit the same issue

Basicly this is the same as:

#284902: Upgrade launces duplicate nagios

Except that now it fails to actually launch the second instance.

Apparantly, the above bug was not correctly solved, or re-introduced.

Preparing to replace nagios-common 2:1.3-cvs.20050116-4 (using
.../nagios-common_1.3-cvs.20050402-1_all.deb) ...
Stopping nagios: nagios.

(...)

Setting up nagios-mysql (1.3-cvs.20050402-1) ...
Setting up librsvg2-common (2.8.1-3) ...

(...)

Setting up nagios-common (1.3-cvs.20050402-1) ...
Installing new version of config file /etc/init.d/nagios ...

Configuration file `/etc/nagios/contacts.cfg'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** contacts.cfg (Y/I/N/O/D/Z) [default=N] ?
Not setting blank password for nagiosadmin
Starting nagios: nagios.

And in syslog:

Apr 18 17:48:44 mordor nagios: Nagios 1.3 starting... (PID=17813)
Apr 18 17:48:44 mordor nagios: Error: Could not create external command file '/var/cache/nagios/rw/nagios.cmd' as named pipe: (17) -> File exists.  If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.
Apr 18 17:48:44 mordor nagios: Bailing out due to errors encountered while trying to open the external command file for reading... (PID=17813)

(no mention of shutting down nagios, indeed, the old process of nagios is still
running).

--Jeroen

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)

Versions of packages nagios-mysql depends on:
ii  libc6               2.3.2.ds1-20         GNU C Library: Shared libraries an
ii  libgd2-xpm          2.0.33-1.1           GD Graphics Library version 2
ii  libjpeg62           6b-9                 The Independent JPEG Group's JPEG 
ii  libmysqlclient12    4.0.24-2             mysql database client library
ii  libpng12-0          1.2.8rel-1           PNG library - runtime
ii  nagios-common       2:1.3-cvs.20050402-1 A host/service/network monitoring 
ii  zlib1g              1:1.2.2-3            compression library - runtime

-- debconf information:
  nagios/warnmovedcommands:
  nagios/warncoords:
  nagios/wwwsuid: true
  nagios/newapachecfg:
  nagios/upgradefromnetsaint:
* nagios/configapache: None
  nagios/warnupgrade_5_6:

-- 
Jeroen van Wolffelaar
jeroen@wolffelaar.nl
http://jeroen.A-Eskwadraat.nl