I have been running NUT server on my Scale host for some time. My Scale host runs the nightly builds and is currently on TrueNAS-SCALE-22.12-MASTER-20220327-112906. The UPS is a Cyber Power
There are 4 clients talking to the Scale NUT server and it has been working well. Today I noticed a NUT client machine was giving error messages that my UPS was unavailable.
I ran the check command from the client:
On my Scale host, I check the Services page, and the service is started, set start automatically, and configured as before. I can post the contents of the .conf files or a screenshot
of the UPS configuration page if needed.
Checking the status of the service from the CLI:
The getcwd() error is new, and being a novice Linux user I don't really understand the error. I just know it wasn't there before.
Then I see that the ups.conf isn't being read.
Checking the /etc/nut folder:
I see that all the files are owned by root:gluster. I am confused about this group membership. What user is Scale using to invoke the
nut service? I would think it is root, and should be able to read the files.
Can anyone help me get this service back up and running?
Thanks!
There are 4 clients talking to the Scale NUT server and it has been working well. Today I noticed a NUT client machine was giving error messages that my UPS was unavailable.
I ran the check command from the client:
Code:
$ sudo upsc ups@192.168.2.230 Error: Connection failure: Connection refused
On my Scale host, I check the Services page, and the service is started, set start automatically, and configured as before. I can post the contents of the .conf files or a screenshot
of the UPS configuration page if needed.
Checking the status of the service from the CLI:
Code:
$ sudo service nut-server status sh: 0: getcwd() failed: No such file or directory ● nut-server.service - Network UPS Tools - power devices information server Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2022-03-27 14:48:51 PDT; 4min 56s ago Process: 1098645 ExecStart=/sbin/upsd (code=exited, status=1/FAILURE) Mar 27 14:48:51 krustynas upsd[1098645]: listening on 127.0.0.1 port 3493 Mar 27 14:48:51 krustynas upsd[1098645]: listening on 192.168.2.230 port 3493 Mar 27 14:48:51 krustynas upsd[1098645]: not listening on ::0 port 3493 Mar 27 14:48:51 krustynas upsd[1098645]: not listening on 0.0.0.0 port 3493 Mar 27 14:48:51 krustynas upsd[1098645]: Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission denied Mar 27 14:48:51 krustynas upsd[1098645]: Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission denied Mar 27 14:48:51 krustynas upsd[1098645]: Network UPS Tools upsd 2.7.4 Mar 27 14:48:51 krustynas systemd[1]: nut-server.service: Control process exited, code=exited, status=1/FAILURE Mar 27 14:48:51 krustynas systemd[1]: nut-server.service: Failed with result 'exit-code'. Mar 27 14:48:51 krustynas systemd[1]: Failed to start Network UPS Tools - power devices information server.
The getcwd() error is new, and being a novice Linux user I don't really understand the error. I just know it wasn't there before.
Then I see that the ups.conf isn't being read.
Checking the /etc/nut folder:
Code:
$ ls -la total 28 drwxr-xr-x 2 root root 8 Mar 27 14:48 . drwxr-xr-x 143 root root 256 Mar 27 14:48 .. -r--r----- 1 root gluster 15 Mar 27 14:48 nut.conf -r--r----- 1 root gluster 75 Mar 27 14:48 ups.conf -r--r----- 1 root gluster 96 Mar 27 14:48 upsd.conf -r--r----- 1 root gluster 45 Mar 27 14:48 upsd.users -r--r----- 1 root gluster 450 Mar 27 14:48 upsmon.conf -r--r----- 1 root gluster 563 Mar 27 14:48 upssched.conf
I see that all the files are owned by root:gluster. I am confused about this group membership. What user is Scale using to invoke the
nut service? I would think it is root, and should be able to read the files.
Can anyone help me get this service back up and running?
Thanks!