Freenas does not autoshutdown when UPS reports that it is running on battery mode.

Status
Not open for further replies.

olegsomphane

Dabbler
Joined
Oct 6, 2011
Messages
18
Freenas does not autoshutdown when UPS reports that it is running on battery mode. The battery mode gets logged, but nothing happens after the timer runs out. Have I not configured the following correctly or is there a bug? I am using a Cyber Power CP1350PFCLCD.

Identifier ups
Driver APC Back-UPS Pro USB USB (usbhid-ups)
Port /dev/ugen1.2
Auxiliary parameters (ups.conf)
Description
Shutdown mode UPS goes on battery
Shutdown timer 1
UPS Master User Password fixmepass
Extra users (upsd.users)
Remote Monitor unchecked
Send Email Status Updates unchecked
To email
Email Subject UPS report generated by %h


Oct 6 18:52:17 s-sync freenas[1729]: Executing: /usr/sbin/service nut_upslog restart
Oct 6 18:52:17 s-sync freenas: Stopping nut_upslog.
Oct 6 18:52:17 s-sync freenas: Starting nut_upslog.
Oct 6 18:52:18 s-sync freenas[1729]: Executing: /bin/pgrep -F /var/db/nut/upsd.pid upsd
Oct 6 18:53:35 s-sync freenas[1729]: Executing: /usr/sbin/service ix-ups quietstart
Oct 6 18:53:35 s-sync freenas[1729]: Executing: /usr/sbin/service nut restart
Oct 6 18:53:35 s-sync freenas: Stopping nut.
Oct 6 18:53:35 s-sync upsd[2630]: mainloop: Interrupted system call
Oct 6 18:53:35 s-sync freenas: Waiting for PIDS: 2630.
Oct 6 18:53:35 s-sync freenas: Network UPS Tools - UPS driver controller 2.4.1
Oct 6 18:53:35 s-sync root: Unknown USB device: vendor 0x0764 product 0x0501 bus uhub1
Oct 6 18:53:35 s-sync freenas: Using subdriver: CyberPower HID 0.2
Oct 6 18:53:35 s-sync freenas: Network UPS Tools - Generic HID driver 0.34 (2.4.1)
Oct 6 18:53:35 s-sync freenas: USB communication driver 0.31
Oct 6 18:53:35 s-sync freenas: Network UPS Tools - UPS driver controller 2.4.1
Oct 6 18:53:35 s-sync freenas: Starting nut.
Oct 6 18:53:35 s-sync freenas: listening on 127.0.0.1 port 3493
Oct 6 18:53:35 s-sync freenas: Connected to UPS [ups]: usbhid-ups-ups
Oct 6 18:53:35 s-sync freenas[1729]: Executing: /usr/sbin/service nut_upsmon restart
Oct 6 18:53:35 s-sync freenas: Stopping nut_upsmon.
Oct 6 18:53:35 s-sync upsmon[2653]: upsmon parent: read
Oct 6 18:53:35 s-sync freenas: Starting nut_upsmon.
Oct 6 18:53:35 s-sync freenas: UPS: ups (master) (power value 1)
Oct 6 18:53:35 s-sync freenas[1729]: Executing: /usr/sbin/service nut_upslog restart
Oct 6 18:53:35 s-sync freenas: Stopping nut_upslog.
Oct 6 18:53:35 s-sync freenas: Starting nut_upslog.
Oct 6 18:53:36 s-sync freenas[1729]: Executing: /bin/pgrep -F /var/db/nut/upsd.pid upsd
Oct 6 18:54:30 s-sync upsmon[2890]: UPS ups on battery
Oct 6 18:55:10 s-sync ntpd[1492]: time reset -0.262200 s
Oct 6 18:55:10 s-sync ntpd[1492]: kernel time sync status change 2001
Oct 6 18:58:31 s-sync kernel: ugen1.2: <CP1350PFCLCD> at usbus1 (disconnected)
Oct 6 18:58:32 s-sync root: Unknown USB device: vendor 0x0764 product 0x0501 bus uhub1
Oct 6 18:58:32 s-sync kernel: ugen1.2: <CP1350PFCLCD> at usbus1
Oct 6 18:58:32 s-sync kernel: ugen1.2: <CP1350PFCLCD> at usbus1 (disconnected)
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I'm finding the same thing with a USB-connected GeekSquad (rebranded CyberPower for BestBuy, I think) UPS: it reports when it is running on the battery, but it does not shut down.

And I have also noticed that even though I have selected the driver appropriate to the GeekSquad and saved the settings, it still shows APC the next time.
 

olegsomphane

Dabbler
Joined
Oct 6, 2011
Messages
18
I don't think the product selection matters as long as the driver selection is the same (eg you are using usbhid-ups)
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
What version of FreeNAS are you using, some of the pre-release 8.01 versions had this problem.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
What version of FreeNAS are you using, some of the pre-release 8.01 versions had this problem.

I'm using FreeNAS-8.0.1-RELEASE-amd64 (8081)
 

olegsomphane

Dabbler
Joined
Oct 6, 2011
Messages
18
What version of FreeNAS are you using, some of the pre-release 8.01 versions had this problem.

FreeNAS-8.0.1-RELEASE-amd64 as well. I saw that the bug was resolved as well stating that the ups piece was significantly reworked...
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I think they had problems with their build system and a lot of the fixes didn't make it into the final release because of that. They've since backported those fixes into the 'branch' source tree (not trunk) and if you build that you get a lot of the fixes that were unintentionally left out. I've built it and have it available. If you don't want to build it yourself and send me a PM I can give you a link. It also fixes the email notifications and some other stuff, but I don't have a list of exactly what is fixed.

Edit-1: I should clarify, what I've built is the FreeNAS-8.0.1-RELEASE-amd64 (8146)

Edit-2: I've tried 8.01 branch builds up to 8214 so far without a fix for this yet, and no email gets sent when running on battery. I'll update if I find an 8.01 update with this fixed.
 

olegsomphane

Dabbler
Joined
Oct 6, 2011
Messages
18
Ahh, I see. Thanks for the info, I guess I'll wait a little then since I don't need this feature immediately.
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
I have this same unit and was curious to know if anyone else has found a work around or perhaps a listed driver in Freenas 8.2 or 8.3 that resolved this.
 
Status
Not open for further replies.
Top