Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

ups driver doesn't load properly at boot

Description

At boot, the ups driver doesn’t seem to load properly, which causes the nut-server to get in a bad state. Looking at systemctl status nut-server.service, there are a number of these logs:

Aug 15 20:44:02 kaidame nut-server[139231]: Can't connect to UPS [ups] (usbhid-ups-ups): No such file or directory
Aug 15 20:44:02 kaidame upsd[139231]: Can't connect to UPS [ups] (usbhid-ups-ups): No such file or directory

And of course, nut-monitor fails as well with “Driver not connected” messages.

Additionally, when the system boots, I get an email alert that says:

  • Communication with UPS ups lost.

    UPS Statistics: 'ups'

    Statistics could not be recovered

This alert quickly gets cleared, but the UPS is not in fact usable.

It is possible to make the UPS work by issuing a upsdrvctl start command in a root shell:

root@kaidame[~]# upsdrvctl start
Network UPS Tools - UPS driver controller 2.8.0
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Duplicate driver instance detected (PID file /run/nut/usbhid-ups-ups.pid exists)! Terminating other driver!
Using subdriver: CyberPower HID 0.6

After this, upsc ups returns good data.

Problem/Justification

None

Impact

None

Activity

Show:

Jean-Francois Roy August 23, 2023 at 4:11 PM

Great!

Waqar August 23, 2023 at 3:48 PM

the session is no longer required, the changes have been merged which fix the issue at hand. Thank you for pointing this out winking face

Waqar August 22, 2023 at 2:56 PM

the timing works nicely for me. I’ll be looking forward to test a fix on your machine so we can be sure everything is good and working as desired. Thanks! (please email me teamviewer credentials at waqar@ixsystems.com a few minutes before the time)

Jean-Francois Roy August 21, 2023 at 5:28 PM

Based on https://wiki.archlinux.org/title/Network_UPS_Tools , it seems TrueNAS Scale should enable (as in systemctl enable) nut-driver-enumerator.service, nut.target, and nut-driver.target. After doing so in a shell, and rebooting the system, the issue is resolved.

Jean-Francois Roy August 21, 2023 at 4:08 PM

I can do August 23 at 9 am PDT.

Duplicate

Details

Assignee

Reporter

Labels

Impact

High

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created August 16, 2023 at 4:01 AM
Updated February 27, 2025 at 9:14 PM
Resolved August 23, 2023 at 3:48 PM

Flag notifications