-
-
Notifications
You must be signed in to change notification settings - Fork 427
upsd dies if upsd.conf contains LISTEN line with nonexistant ip #723
Copy link
Copy link
Closed
Labels
Low-hanging fruitA proposal or issue that is good for newcomers to codebase or otherwise a quick winA proposal or issue that is good for newcomers to codebase or otherwise a quick winimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.1Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks)service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/DebugGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
Milestone
Metadata
Metadata
Assignees
Labels
Low-hanging fruitA proposal or issue that is good for newcomers to codebase or otherwise a quick winA proposal or issue that is good for newcomers to codebase or otherwise a quick winimpacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.1Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks)service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/DebugGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
The following bug has been open in debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926329)
===
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.