TwelveK Posted October 7, 2019 Share Posted October 7, 2019 Could you update the docker file to upgrade ClamAV when avalable? Quote Link to comment
Telcar Posted October 18, 2019 Share Posted October 18, 2019 will this delete, clean, or modify any files or just scan and give results Quote Link to comment
SavellM Posted January 27, 2020 Share Posted January 27, 2020 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? Quote Link to comment
Squid Posted January 27, 2020 Share Posted January 27, 2020 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 Quote Link to comment
SavellM Posted January 27, 2020 Share Posted January 27, 2020 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. Quote Link to comment
tazire Posted January 29, 2020 Share Posted January 29, 2020 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. Quote Link to comment
SavellM Posted January 30, 2020 Share Posted January 30, 2020 (edited) 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 January 30, 2020 by SavellM Quote Link to comment
Aceriz Posted February 16, 2020 Share Posted February 16, 2020 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? Quote Link to comment
TQ Posted February 16, 2020 Author Share Posted February 16, 2020 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. Quote Link to comment
Aceriz Posted February 17, 2020 Share Posted February 17, 2020 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... Quote Link to comment
TQ Posted February 17, 2020 Author Share Posted February 17, 2020 It should pick it up the next time it scans through. Derp. Its actually at 0.102.1-rc0 which is the latest for 3.11 Alpine (not edge) https://pkgs.alpinelinux.org/package/v3.11/main/x86_64/clamav Quote Link to comment
Glassed Silver Posted February 25, 2020 Share Posted February 25, 2020 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)? Quote Link to comment
Aceriz Posted February 29, 2020 Share Posted February 29, 2020 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? Quote Link to comment
Aceriz Posted February 29, 2020 Share Posted February 29, 2020 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 Quote Link to comment
tazire Posted February 29, 2020 Share Posted February 29, 2020 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. Quote Link to comment
garethsnaim Posted March 1, 2020 Share Posted March 1, 2020 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? Quote Link to comment
Squid Posted March 1, 2020 Share Posted March 1, 2020 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. Quote Link to comment
wgstarks Posted March 1, 2020 Share Posted March 1, 2020 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. Quote Link to comment
Squid Posted March 1, 2020 Share Posted March 1, 2020 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) Quote Link to comment
garethsnaim Posted March 3, 2020 Share Posted March 3, 2020 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. Quote Link to comment
chip Posted March 10, 2020 Share Posted March 10, 2020 Where is the log file dumped after clamav runs? Not finding it. Quote Link to comment
Squid Posted March 10, 2020 Share Posted March 10, 2020 6 minutes ago, chip said: Where is the log file dumped after clamav runs? Not finding it. docker logs ClamAV Quote Link to comment
chip Posted March 10, 2020 Share Posted March 10, 2020 11 minutes ago, Squid said: docker logs ClamAV Oh thanks...overlooked that for some reason. Quote Link to comment
chip Posted March 19, 2020 Share Posted March 19, 2020 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 Quote Link to comment
Flubster Posted May 23, 2020 Share Posted May 23, 2020 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 Quote Link to comment
Recommended Posts
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.