Your message dated Tue, 31 Jul 2012 17:27:26 +0200
with message-id
<cafm_buh8frjxdarclk47yc1gsuh21zmrzx+xwhk9deg01rz...@mail.gmail.com>
and subject line Re: Bug#678009: nut: not listening after start, segfault
during shutdown
has caused the Debian Bug report #678009,
regarding nut: not listening after start, segfault during shutdown
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 [email protected]
immediately.)
--
678009: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678009
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nut
Version: 2.4.3-1.1squeeze1
Severity: important
Trying to configure nut with a Back-UPS Pro 900 power supply,
with USB cable. Apparently this is a USB-HID device, so the
entirety of "ups.conf" is:
[back_ups]
driver = usbhid-ups
Multiple problems, not sure how closely they're related...
1. When starting, I get a "driver(s) failed" message:
# /etc/init.d/nut stop
Stopping Network UPS Tools: (driver(s) failed) upsd upsmon.
However, syslog reports that upsd is up:
Jun 18 11:29:39 scatha upsd[27839]: listening on 0.0.0.0 port 3493
2. "upsc -l" fails with "Connection refused". Also, "lsof -i"
doesn't report anything listening on port 3493:
# upsc -l localhost:3493
Error: Connection failure: Connection refused
3. Error-message written to syslog when stopping the service:
# /etc/init.d/nut stop
Stopping Network UPS Tools: (driver(s) failed) upsd upsmon.
Jun 18 11:33:22 scatha kernel: [230320.849512] upsdrvctl[28172]: segfault at 0
ip b77298e3 sp bfbf83a4 error 4 in libc-2.11.2.so[b76b6000+140000]
-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages nut depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libupsclient1 2.4.3-1.1squeeze1 network UPS tools - client library
ii libusb-0.1-4 2:0.1.12-16 userspace USB programming library
ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii udev 164-3 /dev/ and hotplug management daemo
Versions of packages nut recommends:
ii bash-completion 1:1.2-3 programmable completion for the ba
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)
-- Configuration Files:
/etc/default/nut [Errno 2] No such file or directory: u'/etc/default/nut'
/etc/nut/nut.conf changed:
MODE=netserver
UPSD_OPTIONS=""
UPSMON_OPTIONS=""
POWEROFF_WAIT=25m
/etc/nut/ups.conf [Errno 13] Permission denied: u'/etc/nut/ups.conf'
/etc/nut/upsd.conf [Errno 13] Permission denied: u'/etc/nut/upsd.conf'
/etc/nut/upsd.users [Errno 13] Permission denied: u'/etc/nut/upsd.users'
/etc/nut/upsmon.conf [Errno 13] Permission denied: u'/etc/nut/upsmon.conf'
/etc/nut/upssched.conf [Errno 13] Permission denied: u'/etc/nut/upssched.conf'
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Hi David
2012/6/18 David Lee Lambert <[email protected]>
> Package: nut
> Version: 2.4.3-1.1squeeze1
> Severity: important
>
> Trying to configure nut with a Back-UPS Pro 900 power supply,
> with USB cable. Apparently this is a USB-HID device, so the
> entirety of "ups.conf" is:
>
> [back_ups]
> driver = usbhid-ups
>
this is a configuration issue. The right config, as described in usbhid-ups
manpage is
[back_ups]
driver = usbhid-ups
port = auto
the driver is failing to start due to the missing "port" directive, that is
mandatory.
Multiple problems, not sure how closely they're related...
>
> 1. When starting, I get a "driver(s) failed" message:
>
> # /etc/init.d/nut stop
> Stopping Network UPS Tools: (driver(s) failed) upsd upsmon.
>
> However, syslog reports that upsd is up:
>
> Jun 18 11:29:39 scatha upsd[27839]: listening on 0.0.0.0 port 3493
>
iirc, there was another issue related to that and fixed since then.
to fix it, simply add a LISTEN line in upsd.conf.
"LISTEN 127.0.0.1" will be sufficient for IPv4 local access. If you need
network access, just add your If address(es) using LISTEN again.
> 2. "upsc -l" fails with "Connection refused". Also, "lsof -i"
> doesn't report anything listening on port 3493:
>
> # upsc -l localhost:3493
> Error: Connection failure: Connection refused
>
> 3. Error-message written to syslog when stopping the service:
>
> # /etc/init.d/nut stop
> Stopping Network UPS Tools: (driver(s) failed) upsd upsmon.
>
all these are side effects.
> Jun 18 11:33:22 scatha kernel: [230320.849512] upsdrvctl[28172]: segfault
> at 0 ip b77298e3 sp bfbf83a4 error 4 in libc-2.11.2.so[b76b6000+140000]
>
still a side effect of the missing "port", but this one was really bad.
It was fixed in NUT trunk r2491, 2010-07-25, post 2.4.3 (available in 2.6.0
and later).
I'm therefore closing this bug. If you feel there is still an issue, don't
hesitate to reopen it.
cheers,
Arnaud
--
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
--- End Message ---