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
chrhei
Aug 09, 2020Luminary
ReadyNAS 202, Firmware 6.10.3, 2x 1TB
Same here for me. Happened the first time on 19 July 2020. A reboot didn't helped to fix this issue. I was not able to fix it on my own. Tried it by deleting all files from /var/lib/clamav and running freshclam manually. Now I run a daily CRON job executing freshclam. This works reliable for me. All mounted drives have enough free space, reported by df.
shuvam
Aug 09, 2020Aspirant
Firmware 6.10.3
I have the same problem of antivirus signature file update error.
To run "freshclam" by hand, I need to be "root". How does one get the root shell prompt on the NAS box? I have SSH set up, and I regularly login as a local user (which I have created) and as admin, but neither of them is root. If I try to log in as admin@nasbox, my userID is 98, not 0, and if I run "freshclam" as that user, I get permission errors -- it cannot create a file or directory (I don't remember which) under /var/lib/clamav/
So I am guessing that "freshclam" can only be run as root. When I try to do an "ssh root@nasbox" I am told "Permission denied".
- kcejoAug 09, 2020Tutor
FYI, I've sent a PM to Marc to see where he is on troubleshooting the issue using my "untouched" NAS. Hopefully, he'll reply back soon and have something for all of us. I'm still getting the error, so if I don't hear back soon, I'll try at least doing a manual update.
- chrheiAug 09, 2020Luminary
Hi shuvam,
a search machine is your friend: https://kb.netgear.com/30068/ReadyNAS-OS-6-SSH-access-support-and-configuration-guides
Regards,
- shuvamAug 09, 2020Aspirant
chrhei wrote:Hi shuvam,
a search machine is your friend: https://kb.netgear.com/30068/ReadyNAS-OS-6-SSH-access-support-and-configuration-guides
I am sorry if my earlier post was not clear enough. I have enabled SSH on the NAS box, and I am regularly logging in as "shuvam" (local user) and as "admin" to the box over SSH. This of course has only been possible because I have read, and followed, the help guide page you have referred to. I do not know whether anyone can set up SSH access on their ReadyNAS box without reading this page.
My problem is that I am not being permitted to login as "root" over SSH.
Please see attached screenshot which shows you how my "ssh admin@hasbox" goes through, but "ssh root@nasbox" fails.- StephenBAug 09, 2020Guru - Experienced User
shuvam wrote:
I am sorry if my earlier post was not clear enough. I have enabled SSH on the NAS box, and I am regularly logging in as "shuvam" (local user) and as "admin" to the box over SSH.
My problem is that I am not being permitted to login as "root" over SSH.
Please see attached screenshot which shows you how my "ssh admin@hasbox" goes through, but "ssh root@nasbox" fails.That is unusual - your second ssh should work if you are also using the NAS admin password.
Can you try changing the admin password from the web UI, and then trying again. Also, don't change it to the default password - I don't think that will work.
- SandsharkAug 09, 2020Sensei - Experienced User
User name root, password same as admin's.
Related Content
NETGEAR Academy

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