LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   System going down.... unable to login (http://www.linuxquestions.org/questions/linux-software-2/system-going-down-unable-to-login-4175446428/)

kaz2100 01-20-2013 01:33 AM

System going down.... unable to login
 
Hya,

Strange thing happened.

System Debian wheezy (testing), amd64

Symptom On console, unable to login. After typing user name, system replies "System going down ....." then login prompt again. (no passowrd prompt !!) The date/time is yesterday.

With root login, same message shows up but password prompt comes and possible to login.

Situation Not much system change except for installing OCR related packages.

What I did With root, following trouble shooting process went:
shutdown -c -> compaining that no shutdown running.
looked for shutdown process -> did not exist.
init 6 -> successfully restart but situation did not change.
reinstall "login" package -> no luck, even after another restart.

web search -> not much success.

Bingo
shutdown -r now
the command above cleared up entangled situation.

My guess A cron script (hourly) runs on this machine. Every hour, system goes down, if nobody is logged in. When I logged out yesterday, I did ctrl-alt-del (as usual) to logout. Something like race condition happened (???)

Anyway, things are fine now.

Closing remark If any penguin runs into same situation, try above. It may work, if not please post your solution here.

Have a happy Penguin

EricTRA 01-20-2013 02:59 AM

Hi,

Thanks for sharing your solution and marking the thread as solved. Off the Zero Reply List.

Kind regards,

Eric

kaz2100 03-02-2013 04:31 AM

Hya,

Self reply.

Folowing sequence also works.

Code:

shutdown -r 1 &
shutdown -c


hitchup 07-04-2013 08:24 PM

Hhappened to me and I could not login to root from the login window.
Used the (recovery mode) from Grub logged in as root and then shutdown -r now.
Next automatic start was good.

kaz2100 07-07-2013 07:27 AM

Hya,

I am glad this thread helped somebody!


One typo correction on post #1.
2nd line of What I did section.
compaining -> complaining

Apology!


All times are GMT -5. The time now is 12:32 AM.