nut-server fails to start

jei1965

New Member
Jun 13, 2021
1
0
1
59
I am new to proxmox. i am currently running proxmox 6.4-4 on my server. My server has a APC UPS connected to a USB port. I have a another connected to the same UPS. I am planning on having this service to send a shutdown message to the other server when the power is out for 5 minutes, then shutdown this server.

- When I run lsusb it returns "Bus 001 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply"
- I have updated proxmox, then I ran apt install nut to install the nut-server and nut client.
- I edited /etc/nut/ups.conf and added to identify the UPS
Code:
[UPS]
        driver = usbhid-ups
        port = auto
        desc = "APC BE550 for Server and NAS"
- I edited /etc/nut.conf to set the mode to netserver
Code:
MODE=setserver
- I added an admin user to /etc/nut/upsd.users
Code:
[admin]
        password = mypass
        actions = SET
        instcmds = ALL
- i try to restart the nut-server but it fails
Code:
root@pve:/etc/nut# systemctl  restart nut-server
Job for nut-server.service failed because the control process exited with error code.
See "systemctl status nut-server.service" and "journalctl -xe" for details.

the journalctl -xe output is
-- The job identifier is 4054.
Jun 12 15:40:39 pve upsdrvctl[16324]: Network UPS Tools - UPS driver controller
Jun 12 15:40:39 pve usbhid-ups[16322]: Signal 15: exiting
Jun 12 15:40:39 pve systemd[1]: nut-driver.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nut-driver.service has successfully entered the 'dead' state.
Jun 12 15:40:39 pve systemd[1]: Stopped Network UPS Tools - power device driver
-- Subject: A stop job for unit nut-driver.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit nut-driver.service has finished.

What am I missing

Thanks
 
it's always one single character- to add on to your reply:
it should also be `netserver` instead of `nutserver`