Package: nut-server
Version: 2.7.4-5
Severity: normal
Tags: upstream newcomer

Dear Maintainer,

After reconfiguring 1 network interface to a new range, but forgetting to 
remove the last line, then one with 192.168.123.9 from /etc/nut/upsd.conf

LISTEN 127.0.0.1 3493
LISTEN 192.168.119.253 3493
LISTEN 192.168.123.9 3493

The nut daemon refused to run after it at a later date was restarted. Syslog 
just reported:

Apr  2 20:54:11 dkfitlet upsd[16941]: Network UPS Tools upsd 2.7.4
Apr  2 20:54:11 dkfitlet upsd[16941]: not listening on 192.168.123.9 port 3493
Apr  2 20:54:11 dkfitlet upsd[16941]: listening on 192.168.119.253 port 3493
Apr  2 20:54:11 dkfitlet upsd[16941]: listening on 127.0.0.1 port 3493
Apr  2 20:54:11 dkfitlet upsd[16941]: no listening interface available

Notice the last line message: "no listening interface available" which is not 
true, as 2 out of 3 configured LISTEN addresses was available. Notice also that 
syslog does not say that upsd exitted.

After removing the bad line from upsd.conf "LISTEN 192.168.123.9 3493" 
everything started working fine.

I would expect that upsd listens to the addresses it can find and not just exit.


-- System Information:
Debian Release: 9.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nut-server depends on:
ii  adduser              3.115
ii  init-system-helpers  1.48
ii  libc6                2.24-11+deb9u4
ii  libnspr4             2:4.12-6
ii  libnss3              2:3.26.2-1.1+deb9u1
ii  libupsclient4        2.7.4-5
ii  libusb-0.1-4         2:0.1.12-30
ii  libwrap0             7.6.q-26
ii  lsb-base             9.20161125
ii  nut-client           2.7.4-5
ii  udev                 232-25+deb9u9

nut-server recommends no packages.

Versions of packages nut-server suggests:
ii  nut-cgi   2.7.4-5
ii  nut-ipmi  2.7.4-5
ii  nut-snmp  2.7.4-5
ii  nut-xml   2.7.4-5

-- Configuration Files:
/etc/nut/ups.conf [Errno 13] Permission denied: '/etc/nut/ups.conf'
/etc/nut/upsd.conf [Errno 13] Permission denied: '/etc/nut/upsd.conf'
/etc/nut/upsd.users [Errno 13] Permission denied: '/etc/nut/upsd.users'

-- no debconf information

Reply via email to