Your message dated Sun, 20 Jun 2010 20:31:56 +0000
with message-id <e1oqrbm-0006se...@ries.debian.org>
and subject line Bug#530869: fixed in nut 2.2.2-6.5
has caused the Debian Bug report #530869,
regarding Lenny: NUT fails to shutdown UPS on powerfail
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
530869: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530869
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Subject: nut: Lenny: NUT doesn't shutdown UPS on powerfail
Package: nut
Version: 2.2.2-6.4
Severity: grave
Justification: renders package unusable

This tells the essence of the story:

$ ldd /sbin/upsmon
        linux-gate.so.1 =>  (0xb7fad000)
        libupsclient.so.1 => /usr/lib/libupsclient.so.1 (0xb7f9e000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e43000)
        /lib/ld-linux.so.2 (0xb7fae000)

The problem is that /sbin/upsmon, which is used by the powerdown function
of the nut init script, itself relies upon a library that is placed in
/usr/lib... but if /usr is a separate filesystem, it will have been unmounted
before the powerdown is invoked.  upsmon fails to run, setting $? to a
non-zero value, which causes the script to think that the flag isn't set
even though it is (confirmed: the file is present and upsmon correctly reports
so after rebooting; checked in maintenacne, of course, since otherwise nut's
startup will have removed it)... so the machine halts, but the UPS doesn't
power off (until the battery runs down far enough to kill it).

The obvious and simple fix would be to place libupsclient into /lib; otherwise
the check for the kill file must be done in a  way which doesn't rely upon the
unreliable upsmon.  (Etch's upsmon does not depend upon libupsclient,
BTW - luckily I'd only upgraded the one machine before I happened to
notice this!)

About the severity: in the classic, run on UPS as long as the battery
lasts and shutdown at the last moment, this leaves only a small window
(it fails if AC power returns after NUT has decided to shutdown and
before the battery gets so low the UPS shuts itself off - but I've seen
real setups where that window was tens of minutes long).  But if that
gamble were acceptable we wouldn't be using NUT, which solved that bug
(at least as well as a given UPS allows it to be solved) years ago...


-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages nut depends on:
ii  adduser                   3.110          add and remove users and groups
ii  debconf                   1.5.24         Debian configuration management sy
ii  libc6                     2.7-18         GNU C Library: Shared libraries
ii  libupsclient1             2.2.2-6.4      Client library for the nut - Netwo
ii  libusb-0.1-4              2:0.1.12-13    userspace USB programming library
ii  lsb-base                  3.2-20         Linux Standard Base 3.2 init scrip
ii  udev                      0.125-7+lenny1 /dev/ and hotplug management daemo

nut recommends no packages.

Versions of packages nut suggests:
pn  nut-cgi                       <none>     (no description available)
pn  nut-dev                       <none>     (no description available)
pn  nut-snmp                      <none>     (no description available)
pn  nut-xml                       <none>     (no description available)

-- debconf information:
  nut/major_conf_changes:
  nut/2_0_upstream_changes:
  nut/change_system_user:
* nut/major_upstream_changes:
  nut/remove_debian_conf:



--- End Message ---
--- Begin Message ---
Source: nut
Source-Version: 2.2.2-6.5

We believe that the bug you reported is fixed in the latest version of
nut, which is due to be installed in the Debian FTP archive:

libupsclient1-dev_2.2.2-6.5_i386.deb
  to main/n/nut/libupsclient1-dev_2.2.2-6.5_i386.deb
libupsclient1_2.2.2-6.5_i386.deb
  to main/n/nut/libupsclient1_2.2.2-6.5_i386.deb
nut-cgi_2.2.2-6.5_i386.deb
  to main/n/nut/nut-cgi_2.2.2-6.5_i386.deb
nut-hal-drivers_2.2.2-6.5_i386.deb
  to main/n/nut/nut-hal-drivers_2.2.2-6.5_i386.deb
nut-snmp_2.2.2-6.5_i386.deb
  to main/n/nut/nut-snmp_2.2.2-6.5_i386.deb
nut-xml_2.2.2-6.5_i386.deb
  to main/n/nut/nut-xml_2.2.2-6.5_i386.deb
nut_2.2.2-6.5.diff.gz
  to main/n/nut/nut_2.2.2-6.5.diff.gz
nut_2.2.2-6.5.dsc
  to main/n/nut/nut_2.2.2-6.5.dsc
nut_2.2.2-6.5_i386.deb
  to main/n/nut/nut_2.2.2-6.5_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 530...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Arnaud Quette <aque...@debian.org> (supplier of updated nut package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 28 Nov 2009 17:24:45 +0100
Source: nut
Binary: nut nut-cgi nut-snmp nut-hal-drivers nut-xml libupsclient1 
libupsclient1-dev
Architecture: source i386
Version: 2.2.2-6.5
Distribution: proposed-updates
Urgency: low
Maintainer: Arnaud Quette <aque...@debian.org>
Changed-By: Arnaud Quette <aque...@debian.org>
Description: 
 libupsclient1 - Client library for the nut - Network UPS Tools
 libupsclient1-dev - Development files for NUT - Network UPS Tools
 nut        - The core system of the nut - Network UPS Tools
 nut-cgi    - A web interface sub system for the nut - Network UPS Tools
 nut-hal-drivers - HAL interface for NUT - Network UPS Tools
 nut-snmp   - A meta SNMP Driver subsystem for the nut - Network UPS Tools
 nut-xml    - MGE XML/HTTP Driver subsystem for the nut - Network UPS Tools
Closes: 530869
Changes: 
 nut (2.2.2-6.5) proposed-updates; urgency=low
 .
   * debian/rules: change libdir to /lib, and fix side effects (Closes: #530869)
Checksums-Sha1: 
 fbf79f9b40f3f9d8f79d3477cf82cdb3bbdf0162 1441 nut_2.2.2-6.5.dsc
 3de24f6d3ca3ce96eb7d1b6932df44563b838b25 40768 nut_2.2.2-6.5.diff.gz
 6d81bc0a4c45aba00a77c2182a95e882f54c3453 1129068 nut_2.2.2-6.5_i386.deb
 6cd20f53fce87c5ca3b1b94d65b5146db7a06e10 70004 nut-cgi_2.2.2-6.5_i386.deb
 8545e908030b55263ed18a2a7fc165f59742b647 50044 nut-snmp_2.2.2-6.5_i386.deb
 1192c541b16a4ce26f2867ac548f866f6c4b9896 123870 
nut-hal-drivers_2.2.2-6.5_i386.deb
 c414beb79527c977aded7c19dfcd1b218a4a49e3 48256 nut-xml_2.2.2-6.5_i386.deb
 91893376c08dd055f5a9d0cc4473bb825cd9649a 34658 libupsclient1_2.2.2-6.5_i386.deb
 4d4346fa09f80b08bbb22be57262eaef69094384 47988 
libupsclient1-dev_2.2.2-6.5_i386.deb
Checksums-Sha256: 
 9902d5c684a26d9a1ec110b51cb2404c89c755b89e45c7e2036bb28761656f39 1441 
nut_2.2.2-6.5.dsc
 735790933a61f5b97c6ff16e3f0ab943c62f5c7eaa90c5b050c87e6bf7a3f802 40768 
nut_2.2.2-6.5.diff.gz
 32bd4fd9c96adc7124da651874e865cb6fffe1a786b3ffeebf09c657c3bffe0c 1129068 
nut_2.2.2-6.5_i386.deb
 a83e86d6be430e06f333634e5eb7ee32ad9f0646792ee5d56d05ad0b2f5600a1 70004 
nut-cgi_2.2.2-6.5_i386.deb
 c933c0e28287c9ec1dd01e878a7aff0cc6fecb0d2906fe3ff1c3b49f2352f52b 50044 
nut-snmp_2.2.2-6.5_i386.deb
 4395f67229ebba65d672b1e033043a53e07eeec42d8f641b0344fd7dba514185 123870 
nut-hal-drivers_2.2.2-6.5_i386.deb
 5fe7beac79069517b1c1123536e3fb9329c4725d0efe3c808cef37eb86be1110 48256 
nut-xml_2.2.2-6.5_i386.deb
 23cb2eb0c129f3628d0431eec2529b9d200b224ae4156646eae6057305f03a5b 34658 
libupsclient1_2.2.2-6.5_i386.deb
 ef5bccd452e4cfa7d0b478ea768b188f3d415d87f086f57ec2b09f90a38296a4 47988 
libupsclient1-dev_2.2.2-6.5_i386.deb
Files: 
 e316d49cfe1cfa282dbc24cab1cf6dfb 1441 admin optional nut_2.2.2-6.5.dsc
 4dc52a89731e0b67f9b35fcfa613ad1e 40768 admin optional nut_2.2.2-6.5.diff.gz
 86575e10ac99eeb8fc4e51a4eeb175cc 1129068 admin optional nut_2.2.2-6.5_i386.deb
 9a0c9dc59ccff0427be39501d330827d 70004 admin optional 
nut-cgi_2.2.2-6.5_i386.deb
 ab3f9fc059c35d05437033f23d40e221 50044 admin optional 
nut-snmp_2.2.2-6.5_i386.deb
 fe72cdc31a70b52e9e8bfdfbc9987bef 123870 admin optional 
nut-hal-drivers_2.2.2-6.5_i386.deb
 651a96a35b309e02bbc613da7e762f90 48256 admin optional 
nut-xml_2.2.2-6.5_i386.deb
 1d01a95b0183e37eba0cde76eff173f4 34658 admin optional 
libupsclient1_2.2.2-6.5_i386.deb
 c064dfa58fca453febfabd4bf7798555 47988 libdevel optional 
libupsclient1-dev_2.2.2-6.5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksT7JEACgkQ22QUyiBN3xtbCQCfZBJ9Mm84vcvf8vQf59R245mf
BZYAniUnRBq75DT9zUttOKbmypU8PxhJ
=5vxI
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to