I have been trying to run a simple workflow in vCenter Orchestrator(VCO) that accesses the command prompt using this script:
var myCommand = new Command("ls");
myCommand.execute(true);
System.log(myCommand.result);
We are using VCO vApp and we keep getting this error:
"Wrapped java.io.IOException: Cannot run program "ls": java.io.IOException: error=12, Cannot allocate memory (Workflow:Test2 / Scriptabletask (item0)#1)"
Any suggestions? This script is copied and pasted straight from the VCO manuals, hence our confusion.
Have you tried to increase the memory of the VM ?
I guess you must already have tried to restart the VM without increasing memory, right ?
Christophe.
Your code is not the problem, it runs perfectly fine here once local execution has been enabled (com.vmware.js.allow-local-process=true).
On what OS are you running vCO and what version of vCO is this ?
Can you tell me if you are using a vCO appliace? And the vCO version used?
I guess this is Linux. Please send the output of commands
free
top -n 1 -b -c
from the command prompt.
The error you see is maybe connected to not enough free memory in the OS. If this is virtual machine then you may try to increase the memory of the VM. Otherwise try to stop some programs to free some mem.
I am running VCO vApp 4.2.1(which is the Appliance) and that runs on Linux. We did set permissions (com.vmware.js.allow-local-process=true).
Have you tried to increase the memory of the VM ?
I guess you must already have tried to restart the VM without increasing memory, right ?
Christophe.
Thank you very much. We increased memory allocation and everything worked.