Rob Kampen
2013-Jul-09 07:50 UTC
[CentOS] 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
John R. Dennison
2013-Jul-09 08:04 UTC
[CentOS] CentOS 6.4 login after reboot after apcupsd shutdown - shows POWER FAILURE
On Tue, Jul 09, 2013 at 07:50:34PM +1200, Rob Kampen wrote:> 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.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. John -- Do not train [children] to learning by force and harshness, but direct them to it by what amuses their minds, so that you may be better able to discover with accuracy the peculiar bent of the genius of each. -- Plato (c 427 BC - 347 BC), Greek philosopher, student of Socrates, teacher of Aristotle, founder of the Academy of Athens, in The Republic, Book VII, section 16 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20130709/aaca98c9/attachment-0002.sig>
Rob Kampen
2013-Jul-09 08:32 UTC
[CentOS] CentOS 6.4 login after reboot after apcupsd shutdown - shows POWER FAILURE
On 07/09/2013 08:04 PM, John R. Dennison wrote:> On Tue, Jul 09, 2013 at 07:50:34PM +1200, Rob Kampen wrote: >> 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. > 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.Thanks John, I'll look for this file.>> 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.not an option, already set no root login via ssh. however I have console access, so a <Ctrl><Alt>F7 got me another tty and root login from there worked. now to debug the apcupsd.... Thanks for the help - appreciated> apcupsd should be handling this automatically when mains power is > restored. Perhaps check the package documentation / project bugtracker. > > > > > John > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos