Clamav scan continuously

  • Here is some context, I am trying to make clamav work in omv 7, but I can't. When I do a scan from a ssh terminal (as superuser, as normal user it doesn't work), I put "clamscan -r (path-to-shared folder)" and it works just fine, but when i start it from the web ui, it shows "file": file is not a regular file, and the scan fails. How can i solve this? I already tried setting up the settings of clamav as the scan time, the max file size and etc., but that apparently didn't worked. I tried running <clamdscan --fdpass --stdout --verbose "/srv/dev-disk-by-uuid-<UUID>/path/to/shared-folder">., but that worked flawlessly.


    I forgot to mention that the log don't show any errors, and when i run the scan from the web ui, it shows "clamd broken pipe tree walk aborted", and it fails. I installed omv from the original ISO, not with a debian image. What should I do?

  • votdev

    Added the Label OMV 7.x
  • The file error happens sometimes, for example, I have just scan the folder and doesn't show the "file is no a regular file ERROR". I normally get this errors :


    "ERROR: Can't send to clamd: Broken pipe
    LibClamAV Error: File tree walk aborted.."

    Do you think it is an appArmor issue? As i read online, it can be an issue in omv sistems instaled by a debian ISO. If yes, what is this? How can i fix it? I don't have to much experience with this distribution, so if you could explain it to me I would be thankful.

    • Official Post

    OMV does not install AppArmor, but this is out of control of OMV for ARM Debianderivatives like Raspi OS where you can install OMV as well. You can check if apparmor is installed by running dpkg -l | grep apparmor.


    The GH issue https://github.com/Cisco-Talos/clamav/issues/582 is mentioning memory issues can cause troubles as well. You might investigate into this direction as well. To do so, simply modify the config files and restart the systemd services manually.

  • >Hmmm, this is reported by clamav? How does the output look like? I found something like https://stackoverflow.com/ques…-php-8-not-a-regular-file. If this is the case, it's not a plugin error/issue IMHO.< I have tried it an nothing. Same with other links. I forgot to mention that the shared folder that i am scanning is a folder created with the plugin mergerfs. This can cause the problem? Also, I was thinking that can it be a permissions issue?
    Edit: I also tried with a folder directly in a hard disk without plugins and gave me this errors:


    ERROR: Can't send to clamd: Broken pipe
    LibClamAV Error: File tree walk aborted.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!