Bug 17267 - Nut Unable to call shutdown command: "/sbin/shutdown
Summary: Nut Unable to call shutdown command: "/sbin/shutdown
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: nut (show other bugs)
Version: 4.0
Hardware: x86 Linux
: P2 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 13:39 MSD by Alisher
Modified: 2014-11-05 20:16 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alisher 2008-09-22 13:39:54 MSD
Проблемы с выключением упса. При отключении питания разряд доходит до 30% и по идее должен выключатся, но не выключает в /var/log/messages пишет "upsmon[5375]: parent: Unable to call shutdown command: "/sbin/shutdown", а также
/var/log/messages
Sep 17 18:21:17 serversmb upsmon[5376]: UPS myups@localhost on battery
Sep 17 18:40:46 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:45:09 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:51:10 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:51:10 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:53:29 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:53:29 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:53:53 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:53:53 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:53:55 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:53:55 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:54:03 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:54:03 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:54:25 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:54:25 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:54:44 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:54:44 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:54:53 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:54:53 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:55:02 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:55:02 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:55:19 serversmb upsmon[5376]: UPS myups@localhost battery is low
Sep 17 18:55:19 serversmb upsd[5347]: Client admin@127.0.0.1 set FSD on UPS [myups]
Sep 17 18:55:19 serversmb upsmon[5376]: Executing automatic power-fail shutdown
Sep 17 18:55:19 serversmb wall[10362]: wall: user upsmon broadcasted 2 lines (43 chars)
Sep 17 18:55:19 serversmb upsmon[5376]: Auto logout and shutdown proceeding
Sep 17 18:55:19 serversmb wall[10365]: wall: user upsmon broadcasted 1 lines (37 chars)
Sep 17 18:55:20 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:55:20 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:55:24 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:55:24 serversmb upsmon[5375]: parent: Unable to call shutdown command: "/sbin/shutdown
Sep 17 18:55:29 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:55:29 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 18:56:53 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 17 18:56:53 serversmb upsd[5347]: Connection from 127.0.0.1
Sep 17 19:08:22 serversmb upsd[5347]: Host 127.0.0.1 disconnected (read failure)
Sep 18 10:07:17 serversmb upsd[5347]: Connection from 127.0.0.1 

ups.conf
[myups]
       driver = megatec
       port = /dev/ttyS0
       desc = "Something descriptive"

upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCEPT localhost
REJECT all

upsd.users
[admin]
password =*****
allowfrom = localhost
action = set
instcmds = all
upsmon master

[monuser]
       password  = *****
       allowfrom = localhost
       actions = SET
       instcmds = ALL
       upsmon master

upsmon.conf

MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYFLAG ONLINE  SYSLOG+EXEC
NOTIFYFLAG ONBATT  SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY      5
MONITOR myups@localhost 1 admin ****** master

upsshed.conf
CMDSCRIPT /bin/upssched-cmd
LOCKFN /var/lib/ups/upssched.lock
PIPEFN /var/lib/ups/upssched.pipe
AT ONBATT * START-TIMER  onbatt1 10
AT ONLINE * CANCEL-TIMER onbatt1
AT ONBATT * START-TIMER  earlyshutdown 120
AT ONLINE * CANCEL-TIMER earlyshutdown
Comment 1 Michael Shigorin 2008-09-23 01:23:46 MSD
reassign (nut bug)
Comment 2 Evgenii Terechkov 2008-12-06 14:55:39 MSK
sysvinit-user?
Comment 3 Alisher 2008-12-10 08:37:46 MSK
(In reply to comment #2)
> sysvinit-user?
> 

Извините не понял, что вы имеете ввиду. Но проблему уже решил, скачал с оффсайта прогу под никсы и установил.
Comment 4 Evgenii Terechkov 2008-12-10 10:38:35 MSK
Подозреваю, вам лучше подойдёт Slackware, а не альт.
Comment 5 Alexey Sidorov 2008-12-10 11:18:30 MSK
Наверное имелась ввиду родная софтина от его упса.
Правда непонятно, как она с shutdown справляется....
Comment 6 Alisher 2008-12-10 11:45:18 MSK
(In reply to comment #4)
> Подозреваю, вам лучше подойдёт Slackware, а не альт.
> 

Почему? Потому что я воспользовался сторонними средствами? Или потому что, в альте это не решили? Этот вопрос в рассылке поднимался с февраля
Comment 7 Michael Shigorin 2014-11-05 20:16:39 MSK
В 4.0/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.