Error: Error executing script returned: 65280

Post Reply
hanor
Posts: 14
Joined: Wednesday 01 October 2014 9:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

Error: Error executing script returned: 65280

Post by hanor » Tuesday 02 June 2015 21:01

Hi,

I 've got 2 RPI, one with domoticz (pi1), the other one with volumio (pi2).
I try to shutdwon by script pi2 from pi1.

I've got a script on pi1:
pi@raspberrypi ~/domoticz/scripts $ more stop-rpi2.sh
#!/bin/bash
# Script qui eteint le rpi volumio
ssh 192.168.1.116 "/home/pi/stop-volumio.sh"

on pi2 :
pi@RPI2:~$ more stop-volumio.sh
#!/bin/bash
# Script qui eteint le raspberry
sudo shutdown -h now

The copy off the ssh certificate is OK on pi2.

When I run stop-rpi2.sh from putty on pi1 the job is done.
When I run thz script using a switch on domoticz i've got this message :
Error: Error executing script command (/home/pi/domoticz/scripts/stop-rpi2.sh). returned: 65280

What can I do ?

User avatar
ThinkPad
Posts: 1754
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Error: Error executing script returned: 65280

Post by ThinkPad » Wednesday 03 June 2015 10:34

Maybe a permission problem.

With a tool like WinSCP (Windows) you can see who the owner of the file is and what the rights are (read/write/execute etc). Make sure it has the same owner/permissions like the scripts from Domoticz itself.
ThinkTheme - theme for Domoticz
My (Dutch) blog: http://thinkpad.tweakblogs.net - My Domoticz scripts: Bitbucket
I'm not (very) active anymore on this forum as i don't use Domoticz anymore.

hanor
Posts: 14
Joined: Wednesday 01 October 2014 9:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Error: Error executing script returned: 65280

Post by hanor » Wednesday 03 June 2015 22:10

Hi,

Same owner, same permissions.

When I run the script in putty all is OK. The Pi2 is shutting down.

I call this script in domotics using à switch
I've got the error when I use this domoticz's switch. Error 65280 and no shutting down from pi2

plutonium
Posts: 62
Joined: Tuesday 06 August 2013 19:06
Target OS: Raspberry Pi
Domoticz version: 3.7253
Location: Sweden
Contact:

Re: Error: Error executing script returned: 65280

Post by plutonium » Tuesday 29 December 2015 22:39

Have the same problem, so did you find any solution to this problem?

plutonium
Posts: 62
Joined: Tuesday 06 August 2013 19:06
Target OS: Raspberry Pi
Domoticz version: 3.7253
Location: Sweden
Contact:

Re: Error: Error executing script returned: 65280

Post by plutonium » Tuesday 29 December 2015 23:35

Found it...
Seems that domoticz ssh tru root so just made a new ssh key with root instead.

Number8
Posts: 290
Joined: Friday 23 May 2014 7:55
Target OS: Raspberry Pi
Domoticz version: 3.9139
Location: Saint Pierre de Jards
Contact:

Re: Error: Error executing script returned: 65280

Post by Number8 » Saturday 13 February 2016 13:38

@plutonium
Seems that domoticz ssh tru root so just made a new ssh key with root instead.
I've got the same issue. Could you elaborate your answer I don't quite understand it.
Thank you

plutonium
Posts: 62
Joined: Tuesday 06 August 2013 19:06
Target OS: Raspberry Pi
Domoticz version: 3.7253
Location: Sweden
Contact:

Re: Error: Error executing script returned: 65280

Post by plutonium » Saturday 13 February 2016 13:50

Did you make a ssh key so you don't need to use password for pi user?
Make one with root instead and your script will work.


Skickas från min iPhone via Tapatalk

Number8
Posts: 290
Joined: Friday 23 May 2014 7:55
Target OS: Raspberry Pi
Domoticz version: 3.9139
Location: Saint Pierre de Jards
Contact:

Re: Error: Error executing script returned: 65280

Post by Number8 » Saturday 13 February 2016 13:54

Thanks plutonium. Indeed I made a key, but I did it this pi user not root user, hence it is working when I run it from putty. Ok I just started to understand that domoticz runs scripts with root context
Cheers

Number8
Posts: 290
Joined: Friday 23 May 2014 7:55
Target OS: Raspberry Pi
Domoticz version: 3.9139
Location: Saint Pierre de Jards
Contact:

Re: Error: Error executing script returned: 65280

Post by Number8 » Saturday 13 February 2016 15:30

This is working now.

stlaha2007
Posts: 437
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Error: Error executing script returned: 65280

Post by stlaha2007 » Monday 15 February 2016 14:46

Better 1: to call ssh with user parameter and move key into /root/.ssh etcetera..
Or check howto run domoticz as pi. Latest stable gives you the option to start domoticz as other user.

Grtz,
Stephan

juankar
Posts: 504
Joined: Saturday 30 August 2014 20:20
Target OS: Raspberry Pi
Domoticz version:
Location: Spain
Contact:

Re: Error: Error executing script returned: 65280

Post by juankar » Friday 25 March 2016 21:04

I can not understand the fix for this error.
My script is
#!/bin/bash
net rpc shutdown -t 10 -f -C "Shuting down computer" -I 192.168.1.99 -U user%pass -d 1

The script Works and the main computer is shutdown but in domoticz log i get rhe message:
Error executing script command (/opt/domoticz/scripts/pcapagar.sh). returned: 65280

Why?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests