Jump to content

Basically, I bought a UPS, I plugged it into my TrueNAS CORE Server, was able to at least find the right USB Port, and drive, but it's either not staying connected, or I have done something wrong, but I am getting this error message in the console and I have NO idea how to fix it. I tried asking in the TrueNAS Forums, but no one answered so I thought I'd try asking the lovely people here about it. Linux is not my main OS, but I do enjoy using TrueNAS and wanted to take care of it by plugging in a battery backup and configuring it correctly. The battery backup is a Cyber Power CP1350. If someone knows how to solve this, fix it, and get it working and stay working, I would be SOOO Grateful! 

 

 

This is the error message.

Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.487655-05:00 truenas.local root 4214 - - /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.510418-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.510430-05:00 truenas.local upsmon 4223 - - Communications with UPS ups@localhost:3493 lost
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.798865-05:00 truenas.local collectd 4265 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Jan 19 00:34:08 truenas 1 2024-01-19T00:34:08.562730-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:08 truenas 1 2024-01-19T00:34:08.562743-05:00 truenas.local upsmon 4223 - - UPS ups@localhost:3493 is unavailable
Jan 19 00:34:13 truenas 1 2024-01-19T00:34:13.578644-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:18 truenas 1 2024-01-19T00:34:18.601615-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:23 truenas 1 2024-01-19T00:34:23.704607-05:00 truenas.local collectd 4265 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Jan 19 00:34:28 truenas 1 2024-01-19T00:34:28.935394-05:00 truenas.local upsmon 4222 - - upsmon parent: read

Attached are the screenshots of the config for the UPS, and the console error. 

1705615650564.png

1705615667185.png

AMD Ryzen 7 2700 3.2Ghz Pinnacle Ridge | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G2 SuperNova 750 Watt PSU

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, _Grid21 said:

Basically, I bought a UPS, I plugged it into my TrueNAS CORE Server, was able to at least find the right USB Port, and drive, but it's either not staying connected, or I have done something wrong, but I am getting this error message in the console and I have NO idea how to fix it. I tried asking in the TrueNAS Forums, but no one answered so I thought I'd try asking the lovely people here about it. Linux is not my main OS, but I do enjoy using TrueNAS and wanted to take care of it by plugging in a battery backup and configuring it correctly. The battery backup is a Cyber Power CP1350. If someone knows how to solve this, fix it, and get it working and stay working, I would be SOOO Grateful! 

 

 

This is the error message.

Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.487655-05:00 truenas.local root 4214 - - /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.510418-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.510430-05:00 truenas.local upsmon 4223 - - Communications with UPS ups@localhost:3493 lost
Jan 19 00:34:03 truenas 1 2024-01-19T00:34:03.798865-05:00 truenas.local collectd 4265 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Jan 19 00:34:08 truenas 1 2024-01-19T00:34:08.562730-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:08 truenas 1 2024-01-19T00:34:08.562743-05:00 truenas.local upsmon 4223 - - UPS ups@localhost:3493 is unavailable
Jan 19 00:34:13 truenas 1 2024-01-19T00:34:13.578644-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:18 truenas 1 2024-01-19T00:34:18.601615-05:00 truenas.local upsmon 4223 - - UPS [ups@localhost:3493]: connect failed: Connection failure: Connection refused
Jan 19 00:34:23 truenas 1 2024-01-19T00:34:23.704607-05:00 truenas.local collectd 4265 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Jan 19 00:34:28 truenas 1 2024-01-19T00:34:28.935394-05:00 truenas.local upsmon 4222 - - upsmon parent: read

Attached are the screenshots of the config for the UPS, and the console error.

You seem to have an issue with your config files and possibly a bad password or username. Unfortunately you'll have to dive down the black hole of NUT configuration. When I went down that rabbit hole under Ubuntu a couple of years back it took me many hours to get it working properly only to discover that the USB connection on the Cyber Power UPSes were flaky AF.

 

Time is money so I gave up, re-purposed the CyberPower UPS to other uses and went back to using Eaton UPSes with Network Modules.

 

You might try searching for recipes on FreeBSD forms for getting CyberPower UPSes working under NUT as the config should be identical to what TrueNAS Core uses for NUT.

FaH BOINC HfM

Bifrost - 6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670 WiFi; Ryzen 9 7950x; EVGA 240 CLC; 4 x 32GB DDR5-5600; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; AMD FirePro W4100; MSI 4070 Ti Super Ventus 2; Corsair SF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Meshify S2; Gigabyte Aorus ax570 Master; Ryzen 9 5900x; Noctua NH-D15; 4 x 16GB DDR4-3200; 512GB NVMe; 2 x Zotac AMP 4070ti; Corsair RM750Mx

dcn02: Fractal Meshify S2; Gigabyte ax570 Pro WiFi; Ryzen 9 3950x; Noctua NH-D15; 2 x 16GB DDR4-3200; 128GB NVMe; 2 x Zotac AMP 4070ti; Corsair RM750x

dcn03: Fractal Meshify C; Gigabyte Aorus z370 Gaming 5; i9-9900k; BeQuiet! PureRock 2 Black; 2 x 8GB DDR4-2400; 128GB SATA m.2; MSI 4070 Ti Super Gaming X; MSI 4070 Ti Super Ventus 2; Corsair TX650m

dcn05: Fractal Define S; Gigabyte Aorus b450m; Ryzen 7 2700; AMD Wraith; 2 x 8GB DDR 4-3200; 128GB SATA NVMe; Gigabyte Gaming RTX 4080 Super; Corsair TX750m

dcn06: Fractal Focus G Mini; Gigabyte Aorus b450m; Ryzen 7 2700; AMD Wraith; 2 x 8GB DDR 4-3200; 128GB SSD; Gigabyte Gaming RTX 4080 Super; Corsair CX650m

Link to comment
Share on other sites

Link to post
Share on other sites

22 hours ago, Gorgon said:

You seem to have an issue with your config files and possibly a bad password or username. Unfortunately you'll have to dive down the black hole of NUT configuration. When I went down that rabbit hole under Ubuntu a couple of years back it took me many hours to get it working properly only to discover that the USB connection on the Cyber Power UPSes were flaky AF.

 

Time is money so I gave up, re-purposed the CyberPower UPS to other uses and went back to using Eaton UPSes with Network Modules.

 

You might try searching for recipes on FreeBSD forms for getting CyberPower UPSes working under NUT as the config should be identical to what TrueNAS Core uses for NUT.

I understand what you told me, I am just always so afraid of messing up my install because I know Linux is not "idiot proof" and because It's storing data, I don't need to affect/lose anything. But I do want my UPS to talk to the server. The worst case is, I could just leave the USB cable unplugged and just shut the server down if the power goes out on me manually. Although, I guess I could take a snapshot of the server before messing around with it. Maybe that will cover my butt? 

 

EDIT: Also, as I understood it, you're supposed to leave the "username and password" as "default" according to the little question mark icon when I clicked it. 

Edited by _Grid21

AMD Ryzen 7 2700 3.2Ghz Pinnacle Ridge | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G2 SuperNova 750 Watt PSU

Link to comment
Share on other sites

Link to post
Share on other sites

On 1/19/2024 at 2:01 AM, Gorgon said:

You seem to have an issue with your config files and possibly a bad password or username. Unfortunately you'll have to dive down the black hole of NUT configuration. When I went down that rabbit hole under Ubuntu a couple of years back it took me many hours to get it working properly only to discover that the USB connection on the Cyber Power UPSes were flaky AF.

 

Time is money so I gave up, re-purposed the CyberPower UPS to other uses and went back to using Eaton UPSes with Network Modules.

 

You might try searching for recipes on FreeBSD forms for getting CyberPower UPSes working under NUT as the config should be identical to what TrueNAS Core uses for NUT.

Would you be able to help me, even remote, troubleshoot and get my Cyber Power UPS working with my TrueNAS Core Server? 

AMD Ryzen 7 2700 3.2Ghz Pinnacle Ridge | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G2 SuperNova 750 Watt PSU

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×