volcs0 Posted January 3, 2022 Share Posted January 3, 2022 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. Quote Link to comment
Squid Posted January 4, 2022 Share Posted January 4, 2022 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. Quote Link to comment
volcs0 Posted January 7, 2022 Share Posted January 7, 2022 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. Quote Link to comment
TQ Posted January 8, 2022 Author Share Posted January 8, 2022 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. Quote Link to comment
Mr_Jay84 Posted January 10, 2022 Share Posted January 10, 2022 (edited) 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 January 12, 2022 by Mr_Jay84 Quote Link to comment
osokthedevil Posted March 17, 2022 Share Posted March 17, 2022 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 ** Quote Link to comment
RyanRoberts210 Posted March 26, 2022 Share Posted March 26, 2022 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. Quote Link to comment
TQ Posted March 26, 2022 Author Share Posted March 26, 2022 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' 1 Quote Link to comment
PsI-X Posted March 27, 2022 Share Posted March 27, 2022 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. Quote Link to comment
Squid Posted March 29, 2022 Share Posted March 29, 2022 Or just uninstall / reinstall 1 Quote Link to comment
PitRejection2359 Posted April 5, 2022 Share Posted April 5, 2022 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? Quote Link to comment
Masterwishx Posted April 8, 2022 Share Posted April 8, 2022 can we update or only wait for docker update ? Quote Link to comment
Masterwishx Posted April 8, 2022 Share Posted April 8, 2022 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. Quote Link to comment
TQ Posted April 8, 2022 Author Share Posted April 8, 2022 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. 1 Quote Link to comment
TQ Posted April 8, 2022 Author Share Posted April 8, 2022 7 hours ago, Masterwishx said: can we update or only wait for docker update ? 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. 1 Quote Link to comment
PitRejection2359 Posted April 9, 2022 Share Posted April 9, 2022 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. Quote Link to comment
TQ Posted April 9, 2022 Author Share Posted April 9, 2022 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 3 Quote Link to comment
Masterwishx Posted April 9, 2022 Share Posted April 9, 2022 (edited) 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 April 9, 2022 by Masterwishx Quote Link to comment
Masterwishx Posted April 9, 2022 Share Posted April 9, 2022 can we get right local time with TZ env maybe ? Quote Link to comment
PitRejection2359 Posted April 10, 2022 Share Posted April 10, 2022 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. Quote Link to comment
Masterwishx Posted April 11, 2022 Share Posted April 11, 2022 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? Quote Link to comment
Masterwishx Posted April 13, 2022 Share Posted April 13, 2022 @Helediron how i can add "My Folder" to FOLDERSWEEKLY i mean share with space inside ? Quote Link to comment
Masterwishx Posted April 16, 2022 Share Posted April 16, 2022 updated Helediron scan script for use with the shares that have space between ... Quote Link to comment
Aegisnir Posted June 18, 2022 Share Posted June 18, 2022 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. Quote Link to comment
Squid Posted June 18, 2022 Share Posted June 18, 2022 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 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.