[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]
Brief description of the problem
Can’t get NUT Service working on my Rockstor NAS.
Detailed step by step instructions to reproduce the problem
When I start the NUT-UPS it shuts back off. The UPS is an EcoFlow River3 Plus UPS connected by USB to the RockStor NAS Server.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/smart_manager/views/nut_service.py", line 57, in post
self._switch_nut(command, self._get_config(service))
File "/opt/rockstor/src/rockstor/smart_manager/views/nut_service.py", line 82, in _switch_nut
systemctl("nut-server", "start")
File "/opt/rockstor/src/rockstor/system/services.py", line 106, in systemctl
return run_command(arg_list, log=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/rockstor/src/rockstor/system/osi.py", line 289, in run_command
raise CommandException(cmd, out, err, rc)
system.exceptions.CommandException: Error running a command. cmd = /usr/bin/systemctl start nut-server. rc = 1. stdout = ['']. stderr = ['Job for nut-server.service failed because the control process exited with error code.', 'See "systemctl status nut-server.service" and "journalctl -xeu nut-server.service" for details.', '']
Can you share which version of Rockstor you’re running and maybe also your NUT configuration?
Did you find anything else related to this failure in the rockstor logs (either via the WebUI or on the command line with tail -n200 /opt/rockstor/var/log/rockstor.log) after the service fails? I assume, running
journalctl -xeu nut-server.service
did not yield any useful information?
Since I am not very familiar with implementing the NUT service, which version is your system running (zypper info nut-drivers-net I think will tell you), since it seems that support for your UPS was added only fairly recently (within the last year)? It seems, it’s only supported with nut version 2.8.4 or higher. when checking on a Rockstor 5.1.0-0 build on Leap 15.6, the version shows as 2.7.4 (so I assume, no support for the ecoflow ups yet, however on a TW install, and I assume SlowRoll will be the same, the version available is 2.8.4.1)
Yes, I am running Rockstor 5.1.0-0 build on Leap 15.6. My NUT-UPS configuration looks like:
NUT Mode - Standalone
NUT Driver - USBHID-UPS
UPS Port - Auto
NUT User - monuser
NUT User Password - river3
Shutdown Timing - When Battery Low
You are correct the Nut driver version in my system was 2.7.4 which doesn’t support the EcoFlow River 3, however I did a driver update to Nut version 2.8.4, and I’m still getting errors, and the Nut service shuts down right after I start it. The system can definitely see the UPS on USB, but the service is having issues recognizing it as an HID-USB UPS.