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

Could you update the docker file to upgrade ClamAV when avalable?

  • 2 weeks later...
  • 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

will this delete, clean, or modify any files or just scan and give results

  • 3 months later...

Is there a way I can get Nextcloud to use this docker?

I downloaded the AV app for NC and put in my server IP.

I also used port 3310.

I added a new port to the ClamAV docker.

 

Set NC to Daemon and unraid IP with port 3310.

Copied some test viruses and nothing, it doesnt even budge!

 

Am I missing something somewhere?

ClamAV will simply scan whatever path you've set whenever it starts.   There is a script earlier that will do this on a schedule and report the results

Aye I'm aware. But with NextCloud you can add a AV plugin and it scans files as they are uploaded.

I wanted to use this feature but it requires ClamAV, which I am now running in a docker. I've seen some people use the  docker from NC to run these scans but I cant figure it out.

On 1/27/2020 at 4:10 PM, SavellM said:

Aye I'm aware. But with NextCloud you can add a AV plugin and it scans files as they are uploaded.

I wanted to use this feature but it requires ClamAV, which I am now running in a docker. I've seen some people use the  docker from NC to run these scans but I cant figure it out.

In relation to getting this to work with nextcloud....

 

If i remove the scan path set will that stop the auto scanning?

Then im setting the path to clamav in nextcloud. Then I plan on setting this path in the nextcloud settings. 

 

Hope is that clamav instance sits idle until nextcloud activates it to scan uploads?? Just setting this up now so ive no idea if it will work.

 

I found in the logs of NextCloud it says:

ClamAV module is not in daemon mode.

 

I made some changes and put ClamAV on the same proxynet as NextCloud and now I'm getting these messages:

Failed to write a chunk. Check if Stream Length matches StreamMaxLength in ClamAV daemon settings

Not Checked. No matching rules. Please check antivirus rules. File: 1070Account: xx Path: /xx/files/Documents/xx/xx.doc

Edited by SavellM

  • 3 weeks later...

Hey I just found this. So far so great. 

 

Wondering in the Log file it says

" WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.100.3 Recommended version: 0.102.2"

 

Anyway to update this? 

 

  • Author
34 minutes ago, Aceriz said:

Hey I just found this. So far so great. 

 

Wondering in the Log file it says

" WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.100.3 Recommended version: 0.102.2"

 

Anyway to update this? 

 

Just bumped it to clamav (0.101.5-r0) on dockerhub.

1 hour ago, TQ said:

Just bumped it to clamav (0.101.5-r0) on dockerhub.

Sorry for if this is a noob question. Does this mean that through the Community applications it will be updated ? or do I have to do something specific to get it from dockerhub... 

 

2020-02-25T02:00:33+0000 ClamAV process starting

Updating ClamAV scan DB
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable
ClamAV update process started at Tue Feb 25 02:00:35 2020
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.102.1 Recommended version: 0.102.2
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
daily.cvd database is up to date (version: 25733, sigs: 2194234, f-level: 63, builder: raynman)
main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)


Freshclam updated the DB


ClamAV 0.102.1/25733/Mon Feb 24 14:09:18 2020

Scanning /scan

LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable

What's with the unrar error here?

 

Thanks a lot for the container, very much appreciated to have a nifty app like this.

 

Any possibility of adding unRAID warning notifications (which I would then also get through Pushbullet)?

On 1/27/2020 at 6:55 AM, SavellM said:

Is there a way I can get Nextcloud to use this docker?

I downloaded the AV app for NC and put in my server IP.

I also used port 3310.

I added a new port to the ClamAV docker.

 

Set NC to Daemon and unraid IP with port 3310.

Copied some test viruses and nothing, it doesnt even budge!

 

Am I missing something somewhere?

Did you end up figuring this out?

 

I am currently working on trying to set this up as well.   How did you add a new port to the ClamAV docker?

 

 

On 1/29/2020 at 5:11 PM, tazire said:

In relation to getting this to work with nextcloud....

 

If i remove the scan path set will that stop the auto scanning?

Then im setting the path to clamav in nextcloud. Then I plan on setting this path in the nextcloud settings. 

 

Hope is that clamav instance sits idle until nextcloud activates it to scan uploads?? Just setting this up now so ive no idea if it will work.

 

Hey did you manage to set this up?  What you describe is what I am hoping to setup

 

15 hours ago, Aceriz said:

Hey did you manage to set this up?  What you describe is what I am hoping to setup

 

No i never did after. Just couldnt get it working right. I didnt give it an awful lot of thought after the initial effort though. 

Hello there.

 

I have instaled clam and it runs for a while but next time I come to look at unraid its stopped.

 

I have this, is there somethign I need to do?

 

ClamAV update process started at Sat Feb 29 18:25:58 2020
WARNING: Your ClamAV installation is OUTDATED!

WARNING: Local version: 0.102.1 Recommended version: 0.102.2

DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
daily database available for update (local version: 25727, remote version: 25737)

Testing database: '/var/lib/clamav/tmp/clamav-ed47729b10ad292e79249938d2b367bd.tmp-daily.cld' ...
Database test passed.
daily.cld updated (version: 25737, sigs: 2201376, f-level: 63, builder: raynman)

main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)

bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)

WARNING: Clamd was NOT notified: Can't connect to clamd through /run/clamav/clamd.sock: No such file or directory



Freshclam updated the DB


ClamAV 0.102.1/25737/Sat Feb 29 12:12:46 2020

 

 

I am not an expert, there does not appear to be anything in the logs. Does clam shut down if nothing is happening in the folder perhaps?

4 minutes ago, garethsnaim said:

Does clam shut down if nothing is happening in the folder perhaps?

When it starts it scans all the files in whatever you've mapped to /scan and when finished it shuts itself down

 

Look at this https://forums.unraid.net/topic/80868-support-clamav/?tab=comments#comment-752060 for a script that will start it and display whatever results it finds on a schedule when run via user.scripts plugin.

 

 

7 minutes ago, garethsnaim said:

 

I am not an expert, there does not appear to be anything in the logs. Does clam shut down if nothing is happening in the folder perhaps

It just scans whatever shares you have configured and then stops when the scan is complete. It should also send you an email notification if configured.

 

The second post in this thread describes how to setup a cron schedule for running the docker scans.

5 minutes ago, wgstarks said:

The second post in this thread describes how to setup a cron schedule for running the docker scans.

That script was superseded by the one I linked (a couple more posts down)

Oh ok, so it does not run all the time, thats a shame but I guess resource heavy. That being said I dont need it running all the time.

Where is the log file dumped after clamav runs? Not finding it.

6 minutes ago, chip said:

Where is the log file dumped after clamav runs? Not finding it.

docker logs ClamAV

 

11 minutes ago, Squid said:

docker logs ClamAV

 

Oh thanks...overlooked that for some reason.

  • 2 weeks later...

Do I need to worry about the errors listed in the below?

 

2020-03-19T17:05:05+0000 ClamAV process starting

Updating ClamAV scan DB
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable
ClamAV update process started at Thu Mar 19 17:05:05 2020
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.102.1 Recommended version: 0.102.2
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
daily database available for update (local version: 25755, remote version: 25756)
Testing database: '/var/lib/clamav/tmp/clamav-f7f0b66ce827844c8f5352135dee0529.tmp-daily.cld' ...
Database test passed.
daily.cld updated (version: 25756, sigs: 2229890, f-level: 63, builder: raynman)
main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
WARNING: Clamd was NOT notified: Can't connect to clamd through /run/clamav/clamd.sock: No such file or directory

  • 2 months later...

package clamav-libunrar and unrar is missing from the dockerfile, also clamav is out of date as the dockerfile has a specific version installing rather than the latest in the alpine packages.

 

You can fix (until the maintainer sorts) by:

 

opening a console

 

apk update

apk del clamav

apk add clamav

apk add clamav-libunrar

apk add unrar

 

then restart the container.

 

Dave

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.