NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
HansRL
Jul 10, 2020Apprentice
Antivirus scanner definition file update failed
ReadyNAS 212 OSversion 6.10.3 Since a couple of days (starting July 5th) my virus definition file update failes.. stating check internet-connection ; my internet connection is fine because the rea...
- Dec 23, 2020
I kept getting errors while executing command: 'systemctl status clamav-freshclam.service' ; see below
root@Geldrop:~# systemctl status clamav-freshclam.service
● clamav-freshclam.service - ClamAV virus database updater
Loaded: loaded (/lib/systemd/system/clamav-freshclam.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-12-23 14:33:45 CET; 15s ago
Process: 6263 ExecStart=/usr/bin/freshclam --quiet (code=exited, status=1/FAILURE)
Main PID: 6263 (code=exited, status=1/FAILURE)Dec 23 14:33:45 Geldrop systemd[1]: Starting ClamAV virus database updater...
Dec 23 14:33:45 Geldrop freshclam[6263]: ClamAV update process started at Wed Dec 23 14:33:45 2020
Dec 23 14:33:45 Geldrop freshclam[6263]: main.cvd is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Dec 23 14:33:45 Geldrop freshclam[6263]: daily.cld is up to date (version: 26026, sigs: 4328586, f-level: 63, builder: raynman)
Dec 23 14:33:45 Geldrop freshclam[6263]: bytecode.cvd is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
Dec 23 14:33:45 Geldrop systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=1/FAILURE
Dec 23 14:33:45 Geldrop systemd[1]: Failed to start ClamAV virus database updater.
Dec 23 14:33:45 Geldrop systemd[1]: clamav-freshclam.service: Unit entered failed state.
Dec 23 14:33:45 Geldrop systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.The following I did after reading the following web-page (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972974):
stopping clamav: 'systemctl stop clamav-daemon'stopping clamav freshclam: 'systemctl stop clamav-freshclam'
adjusting member 'usr.bin.freshclam' in dir: /etc/apparmor.d ; adding 'capability dac_override,' and 'capability chown,'
capability setgid,
capability setuid,
capability dac_override,
capability chown,removing all file from dir: '/var/lib/clamav' (bytecode ; daily ; main ; mirrors ; antivir)
starting clamav : 'systemctl start clamav-daemon'
starting clamav freshclam: 'systemctl start clamav-freshclam'
starting 'clamav freshclam' takes a while (about 2 minutes, I guess) and afterwards it looks like the normal databased-updater is working again.... lets see what happens the coming days...
regards
HansRL
Sep 20, 2020Apprentice
Focusing on the error message "freshclam[5119]: [LibClamAV] mpool_malloc(): Can't allocate memory (262144 bytes)." I did some investigation. The default SWAP-partition is 512 MB and according to several fora on the internet small.
RAM No hibernation With Hibernation Maximum 256MB 256MB 512MB 512MB 512MB 512MB 1024MB 1024MB 1024MB 1024MB 2048MB 2048MB RAM No hibernation With Hibernation Maximum 1GB 1GB 2GB 2GB 2GB 1GB 3GB 4GB 3GB 2GB 5GB 6GB 4GB 2GB 6GB 8GB 5GB 2GB 7GB 10GB 6GB 2GB 8GB 12GB 8GB 3GB 11GB 16GB
So I added a swap-file of 512 MB so the total swap-space became 1024MB and will see if CLAMAV will be updated correctly by the default update-process (the first time it did, so fingers crossed).
So if this additional SWAP-file works, maybe it is an idea to add SWAPD package to the installation and therefor is no need to add a pre-defined SWAP-file :-)
rgds Hans
StephenB
Sep 20, 2020Guru - Experienced User
HansRL wrote:
Focusing on the error message "freshclam[5119]: [LibClamAV] mpool_malloc(): Can't allocate memory (262144 bytes)." I did some investigation. The default SWAP-partition is 512 MB and according to several fora on the internet small.
So I added a swap-file of 512 MB
The memory allocation error is a clue. But that added swap file reduces the OS partition by 512 MB (and it is also rather small). You don't want a full OS partition either, so you do need to be careful here.
Perhaps a better strategy is to look at the services you have running on the NAS, and disable the ones you don't actually need. Also, if you have NFS running you could reduce the number of threads. Similarly remove apps that aren't needed.
My own RN202 (which has never had this failure) has SMB, RSYNC, uPNP, HTTP, HTTPS, SSH, and AntiVirus services enabled. The others are all disabled. All Cloud servers are off. The only app installed is Plex.
- HansRLSep 20, 2020Apprentice
Your remark Stephan makes sense that is why I only added a SWAP-file of 512 MB, so my OS-partition is now only used for 49%.
And that is why I mentioned SWAPD-service, because according to the description this will add SWAP-space is needed and release it again when not needed anymore.I saw the usage of the pre-defined SWAP-partition and it was used for more then 500 MB (at least the times I checked it), so almost nothing left. After I added the SWAP-file the usage of both SWAP-spaces did not exceed a total use of 550/560 MB.
rgds Hans
- HansRLSep 20, 2020Apprentice
I am sorry to say but adding the SWAP-file did not solve the update-issue of CLAMAV. Even with the added SWAP-file the normal update-process of CLAMAV fails and eating up all the available SWAP-space. So the small, predefined SWAP-partition was not the issue, although according to several documentation and sites it is a very small SWAP-partition.
rgds Hans
PS so still using the CRONTAB to update the CLAMAV-definitions.
So netgear, any progress on solving this issue?
- BiggelsSep 21, 2020Aspirant
One of the units that has benn getting the virus scanner error for 2 months or more only has SMB enabled, nothing else.
One of my units that was giving me the error message no longer gives me the error. Last error email was Sept 12th. I checked the virus file and its up to date.
- kcejoSep 23, 2020Tutor
My machine is still updating the antivirus definitions just fine, but I am still getting the "Download firmware version () failed" error. I've checked and I'm on the latest firmware version, so it seems like a bogus error. But I don't get any emails telling me that this error occurred, so it make me wonder why I'm getting it and whether I will still get emails if there are any other errors.
So, while my main problem has been fixed, I still have minor problems that currently seem to just be an annoyance. I just hope that it doesn't lead to anything that's more than annoying.
Ericka
- jimk1963Sep 26, 2020Luminary
Having same issue with RN212. Device is fully up to date but antivirus scanner isn't updating regularly and getting this error message since roughly first week in July. Additionally, this NAS has just experienced an unexplained total data loss. Working with admin to try to understand what happened. Probably unrelated but I do have 3 boxes (RN314, RN212, RN528X) and this is the only box suffering this antirivurs issue.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!