[Nut-upsuser] upsd fails to start

Neil Knight naknight at nakdesign.com
Thu Sep 29 21:45:30 UTC 2011


O.S. Ubuntu 10.10, Maverick Meerkat 32 bit.
NUT 2.4.3-1ubuntu5, package installed
Belkin F6C1500-TW-RK

I am having trouble starting uspd whenever I add a client from my lan to 
uspd.conf:

    LISTEN 127.0.0.1 3493
    LISTEN 192.168.36.106 3493

naknight at nak-server:~$ sudo upsd -DDDD
Network UPS Tools upsd 2.4.3
    0.000000    listen_add: added 127.0.0.1:3493
    0.000093    listen_add: added 192.168.36.106:3495
    0.000224    setuptcp: try to bind to 192.168.36.106 port 3495
    0.000428    setuptcp: bind: Cannot assign requested address
    0.000455    not listening on 192.168.36.106 port 3495
naknight at nak-server:~$

It is not clear to me if I need to edit hosts.allow, but I added "upsd : 
naknight at 192.168.36.106", and it didn't seem to make any difference.

The software seems to behave as expected when uspd.conf is setup for 
localhost:

    LISTEN 127.0.0.1 3493

naknight at nak-server:/etc$ sudo upsd -DDDD
Network UPS Tools upsd 2.4.3
    0.000000    listen_add: added 127.0.0.1:3493
    0.000103    setuptcp: try to bind to 127.0.0.1 port 3493
    0.000379    listening on 127.0.0.1 port 3493
    0.000708    Connected to UPS [Belkin]: usbhid-ups-Belkin
    0.001701    mainloop: polling 2 filedescriptors
    0.001842    mainloop: polling 2 filedescriptors
    0.001950    mainloop: polling 2 filedescriptors
    0.002065    mainloop: polling 2 filedescriptors
    0.002179    mainloop: polling 2 filedescriptors
    0.002225    UPS [Belkin]: dump is done
    0.002243    mainloop: polling 2 filedescriptors
    0.445070    Connect from 127.0.0.1
    0.445099    mainloop: polling 3 filedescriptors
    0.445263    write: [destfd=6] [len=3] [OK]
    0.445283    mainloop: polling 3 filedescriptors
    0.445436    write: [destfd=6] [len=3] [OK]
    0.445456    mainloop: polling 3 filedescriptors
    0.445682    User admin at 127.0.0.1 logged into UPS [Belkin]....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110929/45506c9d/attachment.html>


More information about the Nut-upsuser mailing list