[clamav-users] Clam AV error 127
Pappas, Shaun S
Shaun.Pappas at standardbank.co.za
Tue Dec 1 11:23:55 UTC 2020
Hi All
We are getting error 127 when we run the clamscan command in an AWS Lambda written in Java
From the logs the command we are running is :
/var/task/clamscan --database=/tmp/antivirus-data/ /tmp/antivirus-data/files-to-scan/ZA34576/023c1fee-f3e6-44a9-88b3-643e15e5adeb/9c4225b5-0d3c-42ee-9fa6-e3e61eb34d76
Java code snippet:
String command = antivirusDir + "/clamscan --database=" + WORKING_DIR + " " + pathStr;
Process p = Runtime.getRuntime().exec(command);
p.waitFor();
if (p.exitValue() == 0) {
return FileStatus.CLEAN;
} else if (p.exitValue() == 1) {
return FileStatus.INFECTED;
}
p.exitValue() is returning 127
The clam AV definitions are being downloaded from s3 to /tmp/antivirus-data/ folder.
Could we get some help on the above please ?
Thanks
Standard Bank email disclaimer and confidentiality note
Please go to www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email disclaimer at standardbank.co.za (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20201201/dfbddb80/attachment.htm>
More information about the clamav-users
mailing list