Page 1 of 1

Remote shutdown error 65280

Posted: Monday 16 September 2019 16:17
by HansieNL
I'm trying to shutdown a Volumio player remotely via a switch button with script file: -rwxr-xr-x 1 pi pi 128 Sep 16 15:55 shutdown_volumio.sh

Code: Select all

#!/bin/bash
# Shutdown Volumio
sshpass -p "volumio" ssh -o StrictHostKeyChecking=no [email protected] 'sudo shutdown -hP now'
I still get an error Error: Error executing script command (/home/pi/domoticz/scripts/shell/shutdown_volumio.sh). returned: 65280, but Volumio player did shutdown. How can I get rid of the error?

Re: Remote shutdown error 65280

Posted: Monday 16 September 2019 18:28
by HansieNL
Removed sshpass and copied keys for pi and root: ssh-copy-id -i ~/.ssh/id_rsa [email protected]
Login without password works for both pi and root.
Changed owner of shutdown_volumio.sh to root:

Code: Select all

sudo chown root shutdown_volumio.sh
Changed bash file to:

Code: Select all

#!/bin/bash
# Shutdown Volumio
ssh [email protected] 'sudo shutdown -hP now'
Still got the error: Error: Error executing script command (/home/pi/domoticz/scripts/shell/shutdown_volumio.sh). returned: 65280
I'm lost???

Re: Remote shutdown error 65280

Posted: Tuesday 17 September 2019 0:48
by HansieNL
After a lot of trial and error it seems that a immediately shutdown is the cause of this error.
If I change the bash file to:

Code: Select all

#!/bin/bash
# Shutdown Volumio
ssh [email protected] 'sudo shutdown -hP'
no error anymore. Only shutdown takes longer to complete.