Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] ClamAV

Featured Replies

How long should a scan take? I'm scanning /mnt/user for the first time, and it's been running for 24 hours. I see it in the process list. Nothing interesting in the Docker log, except "starting scan." My unRAID is about 20Tb.


Thanks.

  • Replies 336
  • Views 113.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You would make another instance of the container.  Each instance scans whatever is specified

  • chmod -R u-x,go-rwx,go+u,ugo+X /mnt/cache/appdata/clamav chown -R nobody:users  /mnt/cache/appdata/clamav

Posted Images

Depends.  /mnt/user will take quite a while as it also scans appdata and if you have Plex for instance and a halfway decent library there's a couple of hundred thousand files in it alone.

On 1/3/2022 at 6:44 PM, Squid said:

Depends.  /mnt/user will take quite a while as it also scans appdata and if you have Plex for instance and a halfway decent library there's a couple of hundred thousand files in it alone.

 

To follow up on this, the scans took 3 days to complete.

 

  • Author
On 1/7/2022 at 1:27 PM, volcs0 said:

 

To follow up on this, the scans took 3 days to complete.

 

Sounds about right.

What's the default StreamLength set at for Clam?

I have it running with NextCloud but getting these errors.

Warning	files_antivirus	Failed to write a chunk. Check if Stream Length matches StreamMaxLength in anti virus daemon settings

I'm using this tquinnelly/clamav-alpine

EDIT: this version works https://hub.docker.com/r/mkodockx/docker-clamav

Edited by Mr_Jay84

  • 2 months later...

help please 

 

Updating ClamAV scan DB
ERROR: Can't create freshclam.dat in /var/lib/clamav
ERROR: Failed to save freshclam.dat!
WARNING: Failed to create a new freshclam.dat!
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
Hint: The database directory must be writable for UID 100 or GID 101


An error occurred (freshclam returned with exit code '2')


2022-03-17T02:42:38+00:00 ClamAV process starting

Updating ClamAV scan DB
Hint: The database directory must be writable for UID 100 or GID 101
ERROR: Can't create freshclam.dat in /var/lib/clamav
ERROR: Failed to save freshclam.dat!
WARNING: Failed to create a new freshclam.dat!
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!


An error occurred (freshclam returned with exit code '2')


** Press ANY KEY to close this window ** 

  • 2 weeks later...

I am having the same problem that osokthedevil shows above.  I even tried changing the template to User ID 100 and Group ID 101 but the same error message occurs.  I am assuming this used to work and something changed possibly...  I can see the template made the appdata folder correctly it just has no contents. 

  • Author
12 hours ago, RyanRoberts210 said:

I am having the same problem that osokthedevil shows above.  I even tried changing the template to User ID 100 and Group ID 101 but the same error message occurs.  I am assuming this used to work and something changed possibly...  I can see the template made the appdata folder correctly it just has no contents. 

 

I didnt have this issue before, but after recreating the file structure, I am getting the same error.

 

If you run the built-in script `newperms /path/to/your/db/folder` it will resolve.

That script effectively does the following...

 

 chmod -R u-x,go-rwx,go+u,ugo+X '/path/to/your/db/folder'
 chown -R nobody:users '/path/to/your/db/folder'

 

On 3/26/2022 at 3:20 AM, RyanRoberts210 said:

I am having the same problem that osokthedevil shows above.  I even tried changing the template to User ID 100 and Group ID 101 but the same error message occurs.  I am assuming this used to work and something changed possibly...  I can see the template made the appdata folder correctly it just has no contents. 

 

Change the virus DB location outside of appdata and then run the Docker Safe New Perms found under Unraid Tools.
This worked for me today.

On 3/29/2022 at 1:49 PM, Squid said:

Or just uninstall / reinstall

I ve just installed this for the first time on a very new unraid install and I am getting the same "exit code 2" and "cant create freshclam.dat in /var/lib/clamav". I've tried chacing the UID and GID from the default (99 & 100) to 100 and 101 with no luck.

Is there something wrong with the standard build that needs me to run a script to get it to work?

can we update or only wait for docker update ?

 

image.thumb.png.8e4b17a71eae900a4677cc64846e0b5e.png

On 10/11/2021 at 10:11 PM, Helediron said:

The user script writes the parameter file and runs the container.

 

Thanks for cool script ,all working fine .

clamavtargets.txt we can add here shares only for manual scans ? or it can be used by script scans also.

  • Author
On 4/5/2022 at 2:00 PM, PitRejection2359 said:

I ve just installed this for the first time on a very new unraid install and I am getting the same "exit code 2" and "cant create freshclam.dat in /var/lib/clamav". I've tried chacing the UID and GID from the default (99 & 100) to 100 and 101 with no luck.

Is there something wrong with the standard build that needs me to run a script to get it to work?

Occasionally I run into this, and the fix is to chmod and chown the files/folders.

 

  • Author
7 hours ago, Masterwishx said:

can we update or only wait for docker update ?

 

image.thumb.png.8e4b17a71eae900a4677cc64846e0b5e.png

You can update if you wish.

My builds are waiting for all dependencies to be updated before I build for Clam. I check the Alpine site weekly to know when I can update stable and edge branches.

12 hours ago, TQ said:

Occasionally I run into this, and the fix is to chmod and chown the files/folders.

Sorry to be a pain / newb: where can I find that script? and I presume the "standard" path (I didn't change anything during the install) to db folder is /mnt/cache/appdata/clamav? Thank you.

  • Author
2 hours ago, PitRejection2359 said:

Sorry to be a pain / newb: where can I find that script? and I presume the "standard" path (I didn't change anything during the install) to db folder is /mnt/cache/appdata/clamav? Thank you.

chmod -R u-x,go-rwx,go+u,ugo+X /mnt/cache/appdata/clamav

chown -R nobody:users  /mnt/cache/appdata/clamav

20 hours ago, TQ said:

You can update if you wish.

 

but i cant update to 104.2 , or how can i ?

Thanks for cool container , also updated to lasted release but its still 103.3 ...

Edited by Masterwishx

can we get right  local time with TZ env maybe ?

 

image.png.9d10d4f3086467bd2615b5ca82c10080.png

21 hours ago, TQ said:

chmod -R u-x,go-rwx,go+u,ugo+X /mnt/cache/appdata/clamav

chown -R nobody:users  /mnt/cache/appdata/clamav

That fixed it - thanks very much.

is some one integrated ClamAV to nextcloud + Antivirus scanner app by deamon or exec with this docker or official maybe

is it good idea to run it like deamon for nextcloud and how to do it? 

@Helediron how i can add "My Folder" to  FOLDERSWEEKLY i mean  share with space inside ?

updated Helediron scan script for use with the shares that have space between ...

  • 2 months later...

Sorry if this has been asked before.  I did a search but came up with nothing.  ClamAV has reported it detected 1 infection on concurrent scans.  How do I know what file is infected?  What is ClamAV supposed to do to the infected file once it is detected?  I assume it is not successfully dealing with it as it continues to report 1 file is infected after every single scan I run.

1 hour ago, Aegisnir said:

How do I know what file is infected?

It's listed in the logs for the app.  The script post much earlier should alert you as to which file(s)

1 hour ago, Aegisnir said:

What is ClamAV supposed to do to the infected file once it is detected?

It does nothing.  That's for you to decide what to do with it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.