clamav-clamonacc.service won't start

showiproute

Well-Known Member
Mar 11, 2020
615
34
48
36
Austria
Hello there,

I upgrade my LXC to PMG 8.
After the successful upgrade I recognised that `clamav-clamonacc.service` is not going to start with following error:

Code:
Jun 29 12:39:11 relay systemd[1]: Starting clamav-clamonacc.service - ClamAV On-Access Scanner...
Jun 29 12:39:11 relay systemd[1]: Started clamav-clamonacc.service - ClamAV On-Access Scanner.
Jun 29 12:39:11 relay clamonacc[212]: --------------------------------------
Jun 29 12:39:11 relay clamonacc[212]: ERROR: Clamonacc: fanotify_init failed: Operation not permitted
Jun 29 12:39:11 relay clamonacc[212]: ERROR: Clamonacc: clamonacc must have elevated permissions ... exiting ...
Jun 29 12:39:11 relay systemd[1]: clamav-clamonacc.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 29 12:39:11 relay systemd[1]: clamav-clamonacc.service: Failed with result 'exit-code'.

Unfortunately I am not sure if this service was up and running on the previous PMG version.
 
i checked, and on 7.x there was no such service. that it fails is seemingly an upstream (debian) bug? : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030171

so it seems if you don't want/need the functionality (on access scan of files) you can disable the service with

Code:
systemctl disable --now clamav-clamonacc.service
 
i checked, and on 7.x there was no such service. that it fails is seemingly an upstream (debian) bug? : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030171

so it seems if you don't want/need the functionality (on access scan of files) you can disable the service with

Code:
systemctl disable --now clamav-clamonacc.service
Hello Dominik,

I am just using ClamAV for email scanning - not sure if this application is being used for PMG or not?!
 
no pmg itself does not rely on the 'clamav-clamonacc' service but on the regular 'clamav-daemon' service
 
  • Like
Reactions: showiproute