Page 1 of 1

Help! Sudo reboo isn't working via SSH

Posted: Thu Dec 03, 2015 11:28 pm
by rubiks
I am unable to do

Code: Select all

sudo reboot
via SSH with Jessie running on my pi. Other commands run fine. Anyone knows why? TIA

Write failed: Success
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?

Re: Help! Sudo reboo isn't working via SSH

Posted: Fri Dec 04, 2015 2:13 am
by W. H. Heydt
If your ssh client is being dropped, that's a pretty good indication that the shutdown portion of the reboot is taking place (that is, the reboot command is working just fine). Part of what happens is that all processes are shutdown, and that includes your login session. You won't be able to reconnect until both the network connection and the ssh daemon come back up. Try it some time with the Pi right next to you with a monitor attached.

Re: Help! Sudo reboo isn't working via SSH

Posted: Fri Dec 04, 2015 2:20 am
by rubiks
W. H. Heydt wrote:If your ssh client is being dropped, that's a pretty good indication that the shutdown portion of the reboot is taking place (that is, the reboot command is working just fine). Part of what happens is that all processes are shutdown, and that includes your login session. You won't be able to reconnect until both the network connection and the ssh daemon come back up. Try it some time with the Pi right next to you with a monitor attached.
It is only the sudo reboot is not working. I can connect to my pi via SSH to doing everything else except reboot. Interesting, sudo shutdown works.

I have keyboard, mouse and TV hooked up with pi so I tried sudo reboot not via SSH, it works.

Re: Help! Sudo reboo isn't working via SSH

Posted: Fri Dec 04, 2015 2:32 am
by asandford
rubiks wrote:I have keyboard, mouse and TV hooked up with pi so I tried sudo reboot not via SSH, it works.
You won't be able to watch a reboot over ssh as the connection will be dropped as it goes down, and you'll not be able to reconnect until quite late in the boot process.
The quickest way to see if it really has rebooted is to use:

Code: Select all

$ uptime
 02:31:23 up 54 days,  6:48,  1 user,  load average: 0.06, 0.04, 0.05

Re: Help! Sudo reboo isn't working via SSH

Posted: Fri Dec 04, 2015 5:14 am
by W. H. Heydt
You won't see the messages from the reboot in your ssh session. Do the "sudo reboot" in ssh and then watch what happens on the monitor attached to the Pi. That's where all the messages will go.