andThenYouDie

Automation, IT and more.

15 Jul 2011

The exit code from the script was 246

The Server automation error code, can sometime be a little bit cryptic.


You are running a Server Automation script and you have this error in the consol :

Internal Opsware Agent error (job_run_unix): error in execv /tmp/567270002L.sh
errno = 13, Permission denied
The exit code from the script was 246.

It’s because you can’t run script in the /tmp directory on the target server.

to be sure :

root@server:/tmp # echo "echo hello World" >hello.sh
root@server:/tmp # chmod +x hello.sh
root@server:/tmp # ./hello.sh
ksh: ./hello.sh: cannot execute

Call your SysAdmin