Remote shutdown error 65280

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Remote shutdown error 65280

Post 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?
Blah blah blah
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Remote shutdown error 65280

Post 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???
Blah blah blah
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Remote shutdown error 65280

Post 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.
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest