Details
-
Type:
Bug
-
Status: Engineering Closed (View Workflow)
-
Priority:
Low
-
Resolution: Cannot Reproduce
-
Affects Version/s: 12.0-RELEASE
-
Fix Version/s: N/A
-
Component/s: Services
-
Labels:
-
Impact:Low
Description
Hi good people. Running TrueNAS12.0-RELEASE I have my network UPS/nut setup working perfectly but it doesn't start automatically on boot - I have to go to the TrueNAS GUI Services and toggle UPS from "running" to not running then back again, before it's happy.
Relevant lines from my /var/log/messages post-bootup
Nov 23 13:22:59 GTnas01 1 2020-11-23T13:22:59.476967+11:00 GTnas01.<FQDN> root 1832 - - /etc/rc: WARNING: failed precmd routine for nut Nov 23 13:22:59 GTnas01 1 2020-11-23T13:22:59.488491+11:00 GTnas01.<FQDN> upsmon 1840 - - UPS [GT-UPS-1@localhost:3493]: connect failed: Connection failure: Connection refused Nov 23 13:22:59 GTnas01 1 2020-11-23T13:22:59.488509+11:00 GTnas01.<FQDN> upsmon 1840 - - Communications with UPS GT-UPS-1@localhost:3493 lost Nov 23 13:23:00 GTnas01 1 2020-11-23T13:23:00.870172+11:00 GTnas01.<FQDN> collectd 1941 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Under fault condition:
root@GTnas01[~]# ps auxw | grep ups uucp 1835 0.0 0.0 11396 2824 - Is 13:22 0:00.00 /usr/local/bin/upslog -s GT-UPS-1 -l /var/log/nut/ups.log -i 300 root 1838 0.0 0.0 11280 2812 - Is 13:22 0:00.00 /usr/local/sbin/upsmon localhost uucp 1840 0.0 0.0 11352 2820 - S 13:22 0:00.14 /usr/local/sbin/upsmon localhost root 1909 0.0 0.0 19040 8372 - Is 13:22 0:00.00 sshd: /usr/local/sbin/sshd [listener] 0 of 10-100 startups (sshd) root 4502 0.0 0.0 6936 2616 0 R+ 13:59 0:00.00 grep ups root@GTnas01[~]# ps auxw | grep nut uucp 1835 0.0 0.0 11396 2824 - Is 13:22 0:00.00 /usr/local/bin/upslog -s GT-UPS-1 -l /var/log/nut/ups.log -i 300 root 4504 0.0 0.0 11512 2916 0 S+ 13:59 0:00.00 grep nut root@GTnas01[/]# upsc GT-UPS-1@localhost Error: Connection failure: Connection refused
After GUI toggling UPS service:
root@GTnas01[~]# ps auxw | grep ups root 1909 0.0 0.0 19040 8372 - Is 13:22 0:00.00 sshd: /usr/local/sbin/sshd [listener] 0 of 10-100 startups (sshd) uucp 4788 0.0 0.0 21956 9740 - Ss 14:07 0:00.00 /usr/local/libexec/nut/snmp-ups -a GT-UPS-1 uucp 4790 0.0 0.0 72860 2872 - Ss 14:07 0:00.00 /usr/local/sbin/upsd root 4798 0.0 0.0 11280 2812 - Is 14:07 0:00.00 /usr/local/sbin/upsmon localhost uucp 4799 0.0 0.0 11352 2820 - S 14:07 0:00.00 /usr/local/sbin/upsmon localhost uucp 4807 0.0 0.0 11396 2824 - Is 14:07 0:00.00 /usr/local/bin/upslog -s GT-UPS-1 -l /var/log/nut/ups.log -i 300 root 4869 0.0 0.0 4888 2476 0 R+ 14:08 0:00.00 grep ups root@GTnas01[~]# ps auxw | grep nut uucp 4788 0.0 0.0 21956 9740 - Ss 14:07 0:00.00 /usr/local/libexec/nut/snmp-ups -a GT-UPS-1 uucp 4807 0.0 0.0 11396 2824 - Is 14:07 0:00.00 /usr/local/bin/upslog -s GT-UPS-1 -l /var/log/nut/ups.log -i 300 root 4871 0.0 0.0 11068 2652 0 R+ 14:09 0:00.00 grep nut root@GTnas01[/var/log]# upsc GT-UPS-1@localhost battery.runtime: 50400.00 battery.runtime.elapsed: 0.00 battery.voltage: 80.30 device.mfr: CYBERPOWER device.model: OLS3000ERT2U device.serial: 1S49P3000009 device.type: ups driver.name: snmp-ups driver.parameter.pollinterval: 2 driver.parameter.port: 192.168.27.73 driver.parameter.snmp_version: v1 driver.parameter.synchronous: no driver.version: 2.7.4 driver.version.data: cyberpower MIB 0.1 driver.version.internal: 0.97 ups.firmware: 4.0.5 ups.mfr: CYBERPOWER ups.model: OLS3000ERT2U ups.serial: 1S49P3000009 ups.status: OL
My setup is fairly standard: Fresh install of TrueNAS 12.0-RELEASE on flash drive. Server with dual Xeon CPUs, 72GB ECC RAM. LSI HBA with 6x 8TB SATA drives in a pool of 3x mirror vdevs. Intel 2x 10Gig SPF+ Ethernet NICs. Have a few jails. backup software, Heimdall, Plex.
UPS is as it shows in the readout above - network-attached not USB.
Should be an easy fix? I had a grep through various rc files but couldn't work out what was going on.
Please let me know what I need to provide you and I'll get it to you. Thanks kindly in advance.
UPDATE: Actually given how early I saw the message in the logs vs other network services I decided to enable the "Enable Netwait Feature" under Network > Global Configuration, and see that that has fixed the issue!
Thinking it's still worth raising the fault (now changed to "low") in case other people are pulling their hair out?