p.s. with that documentation you found, I remember now that "16" is indeed indicative of a problem with file access. So look especially for failing syscalls such as write(). They usually have a number as a parameter, which is a file descriptor. Find the file descriptor in a prior syscall such as open() above in the output to find out what file it tried to write to. Then check the existence of that file or it's permissions.
When checking permissions, it's sometimes best to "su" to the same user that should have access to the file, and navigate to the path where the file is, and try to read or write (whichever is intended) to the file as the same user that runs the process in question. If you look at the file permissions exclusively, one may sometimes miss a lack of permissions somewhere up in the directory structure, so always try to diagnose permission issues as the actual user, if possible.
Hth,
Original Message:
Sent: 08-08-2019 03:45 AM
From: MUHAMAD FARHAN ABU BAKAR
Subject: error code 16 when executing external command to Automic
Hi,
We only deploy CallAPi for UNIX and not SAP since we dont call it using ABAP program.
everytime we execute external command, it will call the CallAPI using below command
./ucxblx6c SCRIPT=script.txt LOGON=0001,SMITH,DEV,aerox
my linux knowledge is very limited, since the callapi process runs in only few seconds, may i know how to perform the strace with the PID?
I checked the document on CallAPI and found below information.
Original Message:
Sent: 08-07-2019 12:11 PM
From: Carsten Schmitz
Subject: error code 16 when executing external command to Automic
Hi.
The SAP CallAPI is a daemonized unix process I think. At least ours is. If you don't start it from the Service Manager, how do you start it? Directly from shell? Any error messages to be found in the controlling shell?
Otherwise, this is a bit of an advanced procedure, but I troubleshot a lot of "exit code something" by using strace. You can attach strace to a running process and tell it to follow all fork() system calls by using:
strace -f -p <pid>
where <pid> is the pid of your CallAPI process. The last syscalls before the error message oftentimes give a clue to the nature of the problem.
Hth,
Original Message:
Sent: 08-06-2019 09:32 PM
From: MUHAMAD FARHAN ABU BAKAR
Subject: error code 16 when executing external command to Automic
Hello Carsten,
Yes, this is a CallAPI process which is triggered from SAP external command SM69, I dont maintain the login information in the .ini file, but in the command itself.
I don't launch this from service manager, I checked the CP log of automic but it doesn't show much information on the error.
we are using automic version 11. the external command will send a script to automic containing instructions to execute a job. this fault happens after we execute the external command
Original Message:
Sent: 08-06-2019 12:38 PM
From: Carsten Schmitz
Subject: error code 16 when executing external command to Automic
Hi.
The screenshot is very tightly cropped. It looks like this is a CallAPI process that terminated with return code 16, am I correct with that assumption?
Have you checked the logs, especially the Service Manager log (if you launch that process from Service Manager)?
If this is totally off, please explain in more detail what Automic product and version you use to call what sort of program, and where the fault happens.
Hth,
Original Message:
Sent: 08-06-2019 12:33 PM
From: MUHAMAD FARHAN ABU BAKAR
Subject: error code 16 when executing external command to Automic
Hello everyone,
I encountered exit code 16 when executing external command to Automic, I tried googling it but didnt found anything helpful, appreciate anyone's help on this.