Network UPS Tools upsd 2.7.4 getaddrinfo: Name does not resolve

Hello,

I hope to get some help with this.

# service nut-server start

This is what I get in the log:
Sun Jan 22 21:21:30 2023 daemon.info usbhid-ups[7132]: Network UPS Tools - Generic HID driver 0.41 (2.7.4)
Sun Jan 22 21:21:30 2023 daemon.info usbhid-ups[7132]: USB communication driver 0.33
Sun Jan 22 21:21:30 2023 daemon.info upsd[7133]: Network UPS Tools upsd 2.7.4
Sun Jan 22 21:21:30 2023 daemon.err upsd[7133]: getaddrinfo: Name does not resolve

UPS: CyberPower CP1500PFCLCD
Linksys EA8300 (Dallas)
OpenWrt 22.03.2 r19803-9a599fee93 / LuCI openwrt-22.03 branch git-22.288.45147-96ec0cd

Thanks!

let's have a look at the config file.

Thank you for your reply, psherman!

Just started preparing the config files and gave them another look...
Removed the mask and it worked.
No idea why I'd put it there...

/etc/config/nut_server

config driver 'CP1500PFCLCDa'
        option driver 'usbhid-ups'
        option port 'auto'
        option product 'CP1500PFCLCDa'

config user
        option username 'ups-admin'
        option password '***'
        option upsmon 'master'

config listen_address
        option address '0.0.0.0/0'  <--WRONG
        option port '3493'

just make it 0.0.0.0 (remove the /0). Then try starting the service again.

Yes, exactly what I mentioned.

Thank you for the super-fast replies!!!

Sorry, I hadn't noticed that you had mentioend it already... I just looked at the file and saw the error.

the reason why is that 0.0.0.0 basically says "listen on all addresses' -- it doesn't need a mask because this is the listen address (rather than an address/subnet to which data will be sent).

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.