Re: [Bug 839490] [NEW] NUT is not shutdown UPS

2011-09-14 Thread Arnaud Quette
Hi Dmitriy,

2011/9/2 Dmitriy Altuhov d...@altuhov.su

 Public bug reported:

 Description:Ubuntu 11.04
 Release:11.04
 nut version 2.6.0-1ubuntu3

 Problem:
 upsmon working under nut user (not root). nut user can't create file
 /etc/killpower


upsmon forks 2 instances:
- 1 running unprivileged (ie nut user), listening on the network interface
- 1 running with root privileges to be able to launch
upsmon.conf-SHUTDOWNCMD

have a 2nd look at your processes list.


 Example:
 1) Mains out. UPS on battery
 2) Battery low. set FSD
 3) upsmon executes shutdowncmd but fails to create /etc/killpower
 4) /etc/init.d/halt executes /etc/init.d/ups-monitor poweroff
 5) /etc/init.d/ups-monitor poweroff executes upsmon -K to check
 /etc/killpower (but file does not exist)
 6) not sending shutdown command to UPS (upsdrvctl shutdown is not executed)
 7) system halted, but UPS stays on battery
 8) mains come back, ups going on mains, but load is not switched off/on
 9) PC stay OFF (need manual start)


I'll have to have another look, but I recently made a full test with 2.6.1
and everything was fine.

I need more info on your setup, ie:
- your .conf files (trimmed of passwords and sensitive info)
- your ups name and type

Moreover, have you checked your BIOS for the power setting (ie power on
after a power failure or whatever its name is)?

cheers,
Arnaud
-- 
Linux / Unix Expert RD - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 839490] [NEW] NUT is not shutdown UPS

2011-09-02 Thread Dmitriy Altuhov
Public bug reported:

Description:Ubuntu 11.04
Release:11.04
nut version 2.6.0-1ubuntu3

Problem: 
upsmon working under nut user (not root). nut user can't create file 
/etc/killpower

Example:
1) Mains out. UPS on battery
2) Battery low. set FSD
3) upsmon executes shutdowncmd but fails to create /etc/killpower
4) /etc/init.d/halt executes /etc/init.d/ups-monitor poweroff
5) /etc/init.d/ups-monitor poweroff executes upsmon -K to check /etc/killpower 
(but file does not exist)
6) not sending shutdown command to UPS (upsdrvctl shutdown is not executed)
7) system halted, but UPS stays on battery
8) mains come back, ups going on mains, but load is not switched off/on
9) PC stay OFF (need manual start)

** Affects: nut (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs