rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

Help! Sudo reboo isn't working via SSH

Thu Dec 03, 2015 11:28 pm

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?

W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

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

Fri Dec 04, 2015 2:13 am

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.

rubiks
Posts: 32
Joined: Mon Jul 13, 2015 10:14 pm

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

Fri Dec 04, 2015 2:20 am

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.

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

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

Fri Dec 04, 2015 2:32 am

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

W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

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

Fri Dec 04, 2015 5:14 am

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.

Return to “Beginners”