clamdscan not a regular file ERROR

ragametal

Contributor
Joined
May 4, 2021
Messages
188
I think it is time for me to ask for help as i have wasted a couple on dyas with this and cannot come up with a solution on my own.

I manually installed ClamAV in a jail and mounted one of my child datasets into a folder local to the jail. I mostly used the instructions on https://www.truenas.com/community/threads/how-to-update-installing-clamav-in-its-own-jail.82800/ but i used my own script.

I'm trying to use Clamdscan as recommended by @Patrick M. Hausen on this thread https://www.truenas.com/community/threads/clamav-and-clamscan-taking-forever-to-complete.82776/ but ClamAV is marking each scan file as "not a regular file ERROR" and exists without scanning.

The command i'm using is
clamdscan -z --fdpass /mnt/mounted-dataset

I can see the contents of the data set by ls -la into the local folder so it should not be a permissions problem.

I also successfully scanned the mounted dataset with
clamscan -r -v /mnt/mounted-dataset

I'm at lost here. Why would clamscan works properly but not clamdscan?
Have any of you seen this "not a regular file" error message before?
 

ragametal

Contributor
Joined
May 4, 2021
Messages
188
By now I'm convinced that I must be the only person in the web that has tried to use clamd inside a Jail of Truenas because i have not been able to find any documentation on how to do it properly.

For now, i decided to use clamscan and be done with it. It is incredibly slow (which is why I wanted to experiment with clamd) but at least it works in Truenas.
 
Top