It is working perfectly on local but when I have deployed the amps on production,it is giving the exception
2018-02-27 15:27:03,077 DEBUG [repo.action.AntivirusActionExecuter] [DefaultScheduler_Worker-6] Execution result:
command: /opt/eisenvault_installations/ocr/antivirus.sh /opt/eisenvault_installations/ev-foreglimpse/tomcat/temp/Alfresco/anti_virus_check1297083609517004590_new-user-email.html.ftl
exit code: 2
out: /opt/eisenvault_installations/ev-foreglimpse/tomcat/temp/Alfresco/anti_virus_check1297083609517004590_new-user-email.html.ftl: Can't open file or directory ERROR
So,I have done some googling and on googling,I have found that apparmor.d file is restricting the clamdscan for scanning the files for virus.so,I have added the statement /opt/eisenvault_installations/** lrw, in /etc/apparmor.d/local/usr.sbin.clamd file and now it is working perfectly.
But,I wanted to know why this is happening in prod and not in local and if there is any alternative method for doing this.