Issues starting UPS service using TrueNAS-SCALE-23.10.2

I have two separate instances of TrueNAS Scale 23.10.2, where I cannot start the UPS service. I’m getting the following errors. I checked /run/nut, but the directory is empty. Any ideas on how to fix this? Should I try to install nut manually through the shell?

[EFAULT] Apr 09 20:13:55 systemd[1]: Started nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller. Apr 09 20:13:55 nut-monitor[1750680]: fopen /run/nut/upsmon.pid: No such file or directory Apr 09 20:13:55 nut-monitor[1750680]: Could not find PID file to see if previous upsmon instance is already running! Apr 09 20:13:55 nut-monitor[1750680]: Unable to use old-style MONITOR line without a username Apr 09 20:13:55 nut-monitor[1750680]: Convert it and add a username to upsd.users - see the documentation Apr 09 20:13:55 nut-monitor[1750680]: Fatal error: unusable configuration Apr 09 20:13:55 nut-monitor[1750680]: Network UPS Tools upsmon 2.8.0 Apr 09 20:13:55 systemd[1]: nut-monitor.service: Main process exited, code=exited, status=1/FAILURE Apr 09 20:13:55 systemd[1]: nut-monitor.service: Failed with result ‘exit-code’.

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 201, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/service.py", line 191, in start
    raise CallError(await service_object.failure_logs() or 'Service not running after start')
middlewared.service_exception.CallError: [EFAULT] Apr 09 20:13:55 systemd[1]: Started nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller.
Apr 09 20:13:55 nut-monitor[1750680]: fopen /run/nut/upsmon.pid: No such file or directory
Apr 09 20:13:55 nut-monitor[1750680]: Could not find PID file to see if previous upsmon instance is already running!
Apr 09 20:13:55 nut-monitor[1750680]: Unable to use old-style MONITOR line without a username
Apr 09 20:13:55 nut-monitor[1750680]: Convert it and add a username to upsd.users - see the documentation
Apr 09 20:13:55 nut-monitor[1750680]: Fatal error: unusable configuration
Apr 09 20:13:55 nut-monitor[1750680]: Network UPS Tools upsmon 2.8.0
Apr 09 20:13:55 systemd[1]: nut-monitor.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 20:13:55 systemd[1]: nut-monitor.service: Failed with result 'exit-code'.

It useful to try to work out when this happened. Was it working before, but then failed after an upgrade or reboot or for no known reason?

What is the specific UPS?

Hi,

This started out of the box. I have two instances of TrueNAS scale, and I have this same issue on both of them. Both are instances of TrueNAS scale 23.10.2. I’ve tried upgrading to the latest version on both of them, but I still have the same issue. It seems like it might be a bug with that version? It’s too bad I saved the UPS setup for last, since I already have all other configuration done. I’d rather not have to reinstall to fix this issue.

I have a Cyberpower OR1500LCDRT2U UPS and a Tripp Lite Smart1300LCDT. But to be clear, I cannot start the UPS service on TrueNAS at all. This is before I even connect the UPS to the server.

Guys, I feel like a big dummy. The reason the UPS service wasn’t starting was because I didn’t configure the UPS options first. After I did the initial setup, the UPS service started without issues. Duh.

2 Likes

Don’t worry mistakes get made. You can help others by being clear about what UPS options you configured.