UPS Service Will Not Start?

Status
Not open for further replies.

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
I am running 8.3b3 and cannot get the UPS service to start from the GUI. I got the port ID from the dmesg.boot & selected the correct UPS driver, but for 2 different PC's, using 2 different UPS brands (CyberPower & APC) when starting the UPS service from the GUI, I get a console message that the service could not be started. Any ideas?
Thanks!
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Sorry, we forgot our crystal balls...

/var/log/messages is the place you should look for errors (or a clue) on service startup.
 

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
Thanks for the reply. I checked /var/log/messages & it was showing "connection refused" so I tried some of the other drivers available. This appears to have resolved the problem since the GUI and the log show the service successfully started with a different driver. Now I can test to see if the server successfully shuts down on the UPS losing power. Thanks again for the pointer to the log file.
 

Stephens

Patron
Joined
Jun 19, 2012
Messages
496
Which model UPS's are you using? Which drivers? Did automatic shutdown work?
 

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
Have not tested the shutdown yet but 1 is a CyberPower 1500AVR (which in the driver list uses "powerpanel" but seems to work with "usbhid-ups" and the other is an APC 725ES, which is not listed, but connects with the same driver. I expect to get to try the autoshutdown later this week & will report back the results.
 

Stephens

Patron
Joined
Jun 19, 2012
Messages
496
Thanks. With my CyberPower 850PFCLCD connected to my FreeNAS v8.0.4-P2 x64 machine, shutdown didn't work and I get

Code:
freenas kernel: ugen0.2 <CP850PFCLCD) at usbus0
:
freenas root: Unknown USB device: vendor 0x0764 product 0x0501 bus uhub0
freenas root: Unknown USB device: vendor 0x0764 product 0x0501 bus uhub0
freenas root: Unknown USB device: vendor 0x0764 product 0x0501 bus uhub0
 

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
I tried today. CyberPower 1500AVR with usb-hid-ups driver properly shut down. APC with same driver did not with following messages. I'll try some other drivers next & report any changes.

Messages section:

Oct 4 10:08:34 freenas notifier: Stopping ntpd.
Oct 4 08:08:34 freenas ntpd[1677]: ntpd exiting on signal 15
Oct 4 10:08:34 freenas notifier: Starting ntpd.
Oct 4 10:08:34 freenas ntpd[14378]: ntpd 4.2.4p5-a (1)
Oct 4 10:09:02 freenas ntpd[14379]: time reset -12.810518 s
Oct 4 10:09:02 freenas ntpd[14379]: kernel time sync status change 2001
Oct 4 10:13:35 freenas notifier: Stopping nut.
Oct 4 08:13:35 freenas upsd[14126]: mainloop: Interrupted system call
Oct 4 10:13:35 freenas notifier: Network UPS Tools - UPS driver controller 2.6.5
Oct 4 10:13:35 freenas notifier: Stopping nut_upsmon.
Oct 4 08:13:35 freenas upsmon[14148]: upsmon parent: read
Oct 4 10:13:35 freenas notifier: Stopping nut_upslog.
Oct 4 10:13:35 freenas notifier: nut not running? (check /var/db/nut/upsd.pid).
Oct 4 10:13:36 freenas notifier: Using subdriver: APC HID 0.95
Oct 4 10:13:36 freenas notifier: Network UPS Tools - Generic HID driver 0.37 (2.6.5)
Oct 4 10:13:36 freenas notifier: USB communication driver 0.31
Oct 4 10:13:36 freenas notifier: Network UPS Tools - UPS driver controller 2.6.5
Oct 4 10:13:36 freenas notifier: Starting nut.
Oct 4 10:13:36 freenas notifier: fopen /var/db/nut/upsd.pid: No such file or directory
Oct 4 10:13:36 freenas notifier: listening on 127.0.0.1 port 3493
Oct 4 10:13:36 freenas notifier: Connected to UPS [ups]: usbhid-ups-ups
Oct 4 10:13:36 freenas notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Oct 4 10:13:36 freenas notifier: Starting nut_upsmon.
Oct 4 10:13:36 freenas notifier: kill: No such process
Oct 4 10:13:36 freenas notifier: UPS: ups (master) (power value 1)
Oct 4 10:13:36 freenas notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Oct 4 10:13:36 freenas notifier: Starting nut_upslog.

upslog.pid is "14694"
 

Stephens

Patron
Joined
Jun 19, 2012
Messages
496
You got me motivated to get back into my UPS situation. It took some time and some reading, but at the end of the day, I got the CP850PFCLCD working (I selected "CP1000AVRLCD"). I have it set to shut down the system 30 seconds after the power goes out. The problems I initially had is because one of my NAS systems is still on 8.0.4-p2. I could not get that one to work. However, as soon as I connected it to my 8.2 system with the same UPS settings, bingo. Shutdown 30 seconds after I pulled the power cord of the UPS. There's one good reason for me to finally move from 8.0.4 on that system.

FreeNAS also sent me an e-mail with a body of "ONBATT" followed by one saying "SHUTDOWN".
 
Status
Not open for further replies.
Top