Script error, returned: 32512

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
Darkneo
Posts: 24
Joined: Sunday 10 February 2019 16:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Script error, returned: 32512

Post by Darkneo »

Hello all,

I found plenty of topics on this issue, but unfortunately I did not succeed to make my script working.... The end of line are correct (LF), I changed the owner to root (for your information, Domoticz is installed in a Synology NAS), and the execution through SSH is working correctly (either is normal user or root).

Code: Select all

-rwxrwxrwx 1 root        root   1654 Jul 17 20:51 SynoHomeMode.sh
The script is in shell (.sh) and I am executing it through the event manager (when I arm the security panel).

Code: Select all

2022-07-18 09:07:50.383 Status: Executing script: /volume1/domoticz/var/scripts/SynoHomeMode.sh#enable
2022-07-18 09:07:50.385 Error: Error executing script command (/volume1/domoticz/var/scripts/SynoHomeMode.sh#enable). returned: 32512
I also tried to execute the SH through a dummy, and the error I am having is 256:

Code: Select all

2022-07-18 09:25:45.947 Status: User: USER1 initiated a switch command (154/dummy/On)
2022-07-18 09:25:46.202 Status: Executing script: /volume1/domoticz/var/scripts/SynoHomeMode.sh
2022-07-18 09:25:46.293 Error: Error executing script command (/volume1/domoticz/var/scripts/SynoHomeMode.sh). returned: 256
An yidea of what's going wrong there? Because (as usual) I have plenty of other scripts in shell that have the same rights, same owner, and don't raise any issue....

thanks a lot for your help

EDIT:
I also forgot to mention that I gave a try to have an intermediate script (in LUA):

Code: Select all

os.execute ('(/volume1/domoticz/var/scripts/SynoHomeMode.sh > /dev/null)&')
But I am also having the 32512 error message when triggered from the event manager....:

Code: Select all

2022-07-18 09:36:35.592 Status: Executing script: /volume1/domoticz/var/scripts/SynoHomeMode_OFF.lua#
2022-07-18 09:36:35.595 Error: Error executing script command (/volume1/domoticz/var/scripts/SynoHomeMode_OFF.lua#). returned: 32512
And LUA execution from the dummy raises a 512 error message:

Code: Select all

2022-07-18 09:50:05.292 Status: User: USER1 initiated a switch command (154/dummy/On)
2022-07-18 09:49:54.325 Status: Executing script: /volume1/domoticz/var/scripts/SynoHomeMode_OFF.lua
2022-07-18 09:49:54.327 Error: Error executing script command (/volume1/domoticz/var/scripts/SynoHomeMode_OFF.lua). returned: 512
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests