CentOS6.3下apcupsd自动关机后 ssh登录报电源故障 POWER FAILURE

本文解决在使用APCUPS自动关机后,服务器登录出现POWERFAILURE错误并阻止进一步登录的问题。通过删除/etc/nologin文件可以解决此问题,并提供了预防再次发生的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这个是apcupsd自动关机后引起的,删除/etc/nologin文件即可。



参考:http://grokbase.com/t/centos/centos/13794mw7jx/centos-6-4-login-after-reboot-after-apcupsd-shutdown-shows-power-failure

Hi list,
just putting a new server through its automatic shutdown triggered by
the UPS / apcupsd.
All worked faultlessly, including powering up when power came back on to
the UPS.


So then I go to log in and get "POWER FAILURE" followed by
"Authentication failure" - this is on the console


via SSH I just get "POWER FAILURE" and the ssh connection drops.


So I guess the, log everyone out and stop further logins instruction is
still lurking around somewhere.


How do I regain control of my server??
Does this mean I need to boot with a rescue disk and edit some file
somewhere??


How do I prevent this re-occurring, after a perfect shutdown and
restart, only to get stymied here.


Google has lots of help for dealing with various corruptions due to
power failure - not the case here, the POST, grub, init restart
all look just fine.
TIA


Sounds like /etc/nologin; contents of which are displayed immediately
before the login session terminates. Configured within apcupsd.conf
with a configuration setting of NOLOGINDIR pointing to /etc by default;
I don't believe it can be disabled, however.

So I guess the, log everyone out and stop further logins instruction
is still lurking around somewhere.

How do I regain control of my server??

Remove /etc/nologin.

Does this mean I need to boot with a rescue disk and edit some file
somewhere??

"ssh root at host rm -f /etc/nologin" will remove it.

How do I prevent this re-occurring, after a perfect shutdown and
restart, only to get stymied here.

apcupsd should be handling this automatically when mains power is
restored. Perhaps check the package documentation / project bugtracker.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值