[Antivirus] Failed to update virus definitions

Q'center app, Helpdesk app
davidc1023
First post
Posts: 1
Joined: Thu Jan 09, 2020 12:27 am

[Antivirus] Failed to update virus definitions

Post by davidc1023 » Tue Jan 14, 2020 6:51 pm

Hi All,

I've been getting the error below since early December 2019.

"[Antivirus] Failed to update virus definitions. No storage volume detected. Create a new volume"

I've done some research and come across a few articles saying creating a new storage volume will fix the issue (doesn't fix it for all users apparently). We're not able to do this as our current storage pool takes up the entire drive(s) capacity. I've also pulled the latest definitions of the ClaimAV Virus Database and tried to putting the .cvd file in to manually update however I'm getting an incorrect format error.

I'm not sure what else to do other than trying to find another third-party AV from the app store.

Any input is greatly appreciated.

User avatar
Toxic17
Ask me anything
Posts: 5433
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [Antivirus] Failed to update virus definitions

Post by Toxic17 » Tue Jan 14, 2020 7:59 pm

hope its not this..

viewtopic.php?f=50&t=146352

if it is your NAS maybe infected.

do you have upto date firmware installed on your unkown nas?

do you have the latest Malware Remover installed and have scanned your system?

also add Security Counsellor app to harden your NAS.

also use the search feature and search for the phrase.

viewtopic.php?t=143527

failing this raise a ticket with QNAP. let them fix it.
Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.2.1354 • TVS-463-16GB 4.4.2.1354 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1161 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74070 • QSonarr 3.0.3.809 • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

vel0x
First post
Posts: 1
Joined: Thu Jan 23, 2020 12:27 pm

Re: [Antivirus] Failed to update virus definitions

Post by vel0x » Thu Jan 23, 2020 12:31 pm

Had the same issue.
Somehow my default system volume was not set in the config.
Using SSH:

Code: Select all

[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info

Fixed it using (you may need to adjust this if you use a different volume as your system volume):

Code: Select all

[/etc/config] # setcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/CACHEDEV1_DATA
After that it looked like this:

Code: Select all

[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info                      
/share/CACHEDEV1_DATA
And the updates started working again after this.

TMadmin
First post
Posts: 1
Joined: Tue Sep 03, 2019 10:53 pm

Re: [Antivirus] Failed to update virus definitions

Post by TMadmin » Wed Jan 29, 2020 10:41 pm

Thank you for that vel0x, that did it for me! ;-)

Curious though as to where/how you found this solution?

Thanks again,

Michel

AlFromCochrane
Know my way around
Posts: 116
Joined: Wed Feb 10, 2016 9:19 am
Location: Canada

Re: [Antivirus] Failed to update virus definitions

Post by AlFromCochrane » Mon Feb 03, 2020 8:41 am

Kudos to Vel0x!

Worked for me too! I just had to reboot my system after resetting the system volume as per Vel0x's instructions (so Clamav could see the new setting I suppose)
thanks so much. cheers

For what it's worth, I believe a power outage was the root cause for my system losing it's system volume setting.
best regards, Allan

Firmware Version:Always updated
TS-873 32GB Ram, 8 x 8TB Seagate IronWolf NAS Model: ST8000VN0022,
40 TB total RAID 6 storage pool, 1 Hot Spare, M.2 SSD slots empty, Unit for offsite HDD Backups:
Vantec Nexstar MX NST-400MX-S3R-Utilizing 2x WD 8TB Red),
network services/apps: PuTTY, Media server apps, HBS, Plex .

salvsalvo
Starting out
Posts: 10
Joined: Sat Jun 11, 2016 9:55 pm

Re: [Antivirus] Failed to update virus definitions

Post by salvsalvo » Sun Apr 12, 2020 1:36 am

Hi guys, sorry if I bother you after so long.
I have the same problem so I'm trying the solution posted by vel0x but it doesn't work for me.

I'm not an expert user so I post my screen, please can you check where I'm doing wrong?
Schermata 2020-04-11 alle 19.34.30.png
I also rebooted the NAS.

many thanks
S.
You do not have the required permissions to view the files attached to this post.

robtihanyi
New here
Posts: 7
Joined: Sun Apr 08, 2012 8:20 am

Re: [Antivirus] Failed to update virus definitions

Post by robtihanyi » Wed Apr 15, 2020 10:43 am

salvsalvo wrote:
Sun Apr 12, 2020 1:36 am
I have the same problem so I'm trying the solution posted by vel0x but it doesn't work for me.
I had to disable and re-enable my antivirus for it to work. Make sure you go to the Antivirus tab in the control panel, and apply the changes when you disable it. And then re-enable and apply again. It should start the update straight away.

Oceloman
First post
Posts: 1
Joined: Sat Nov 12, 2016 6:43 pm

Re: [Antivirus] Failed to update virus definitions

Post by Oceloman » Sun Apr 19, 2020 6:11 pm

Thank you for the solution vel0x, worked for me !

jb5ep
First post
Posts: 1
Joined: Thu Apr 23, 2020 5:29 am

Re: [Antivirus] Failed to update virus definitions

Post by jb5ep » Thu Apr 23, 2020 5:32 am

Thanks @vel0x! That worked for me also.

McAfee wasn't updating. All sorted after (didn't need to restart anything).

User avatar
scottdavidcarter
Getting the hang of things
Posts: 74
Joined: Fri Mar 11, 2016 12:03 am

Re: [Antivirus] Failed to update virus definitions

Post by scottdavidcarter » Sun May 17, 2020 7:13 am

Nice fix! I had the same problem here and was getting a warning that my definition update failed as well as storage volume not detected. I traced this back to a power failure, too. Using Putty to reset the default system volume and doing a restart and it's working again! Slowly I am getting the hang of keeping this system working.

""Severity Level Date Time Users Source IP Application Category Content
Warning 2020/05/16 12:04:41 System 127.0.0.1 Antivirus Settings [Antivirus] Failed to update virus definitions. No storage volume detected. Create a new volume.""

Thanks,
Scott
vel0x wrote:
Thu Jan 23, 2020 12:31 pm
Had the same issue.
Somehow my default system volume was not set in the config.
Using SSH:

Code: Select all

[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info

Fixed it using (you may need to adjust this if you use a different volume as your system volume):

Code: Select all

[/etc/config] # setcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/CACHEDEV1_DATA
After that it looked like this:

Code: Select all

[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info                      
/share/CACHEDEV1_DATA
And the updates started working again after this.
Two each QNAP TS-251 with 8GB & 2x6tb in RAID1 (Firmware 4.4.2.1270)
- Media and File Server, Download Station, SS/QVRPro with 3x ReoLink-420 5mp wired exterior security cams, PC & Mac backups

eTeukros
First post
Posts: 1
Joined: Fri Feb 14, 2014 7:05 am

Re: [Antivirus] Failed to update virus definitions

Post by eTeukros » Thu May 28, 2020 7:50 pm

It worked for me as well, straight away.

Thank you very much for your post.

User avatar
trevorklat
Starting out
Posts: 16
Joined: Thu Sep 20, 2018 9:10 am
Location: Great State of Texas

Re: [Antivirus] Failed to update virus definitions

Post by trevorklat » Mon Jun 01, 2020 2:09 am

Thanks vel0x! This code worked for me. I would be interested in how you came to know to do this.
Jesus Christ Saves!

ken05
New here
Posts: 4
Joined: Tue Sep 06, 2016 1:27 pm

Re: [Antivirus] Failed to update virus definitions

Post by ken05 » Mon Jun 01, 2020 3:38 pm

Hi
I tried those commands but nothing happened.
I was using putty.
also there is no etc/config directory's on my NAS ??
can you please provide a step by step instruction for me

User avatar
Briain
Experience counts
Posts: 1757
Joined: Tue Apr 20, 2010 11:56 pm
Location: Edinburgh (Scotland)

Re: [Antivirus] Failed to update virus definitions

Post by Briain » Sat Jun 13, 2020 11:28 pm

Hi Folks

For the past few days, I've been getting these failure warnings (and when I finally looked at it today, the QTS AV section showed that the last successful update had been achieved on the 6th June). I've just checked a number of previously discussed update failure issues (in this forum and including the above suggestion about the share) but everything looked just fine on my own Qnap. One of the threads showed how to run the Qnap process via the CLI, which I tried

Code: Select all

/bin/sh -xxxx /etc/init.d/antivirus.sh update_db

A few lines from the end was the dreaded 'Failed to update virus definitions' line, so that confirmed there was a problem (but not why it had happened).

The fix (which is the work of others - and who are both credited in the below text - was very easy to implement):

I then spotted a thread ended with tsberry561's suggestion to look at the clamav blog (viewtopic.php?f=345&t=154436&p=755872#p754143) and I noted that under 0.102.2, one of the issues that had been addressed (several months ago) was: 'Fixed an issue where freshclam failed to update if the database version downloaded is one version older than advertised' so that sounded rather promising.

Further back in that same thread (on May 25th) is a post by usefulvid (viewtopic.php?f=345&t=154436#p753626) explaining how he'd manually deleted the three files (daily.cvd, main.cvd and bytecode.cvd) then he'd used wget to download current versions and then he manually ran the CLI update command (freshclam -u admin). I followed his techniques and the process all ran smoothly, then when done, looking back at the QTS AV section showed the definitions as being dated today. :) The status still showed the previous attempt failure message (which is not surprising as I hadn't run the Qnap script to procure and install the update files) so to test whether it really was now fixed, via the QTS AV section I disabled then re-enabled the AV (which triggers it into checking for an update) and the status immediately changed to 'update complete'.

As the change was so fast (and with no 'checking' feedback) I wondered whether it had actually done anything, so I then tried hitting the 'update now' button and it all loked good (there was feedback via the QTS interface to show it was checking the repository) but just to be 100% super-sure that all was good, I then tried running the CLI variant of the Qnap update procedure (/bin/sh -xxxx /etc/init.d/antivirus.sh update_db ) and this time it contained the below success message (a few lines from the end) so I can confirm that everything now appears to be working just as it should.

Code: Select all

+ dbgprintf '    /sbin/setcfg Antivirus AntivirusStatus 4 -f /etc/config/antivirus.global (4:UpdateComplete)'
Others are due all the credit for the fixes, but I thought it could be useful (to others searching the forum for a fix) to pull it into a single post and add it to this thread as that other thread lists several other potential problems (and these were posted after the post by usefulvid).

Kind regards,
Briain
TS-119, 1 X Seagate ~~ TS-219, 2 X Seagate (R1) ~~ TS-453A, 2 X 3 TB WD Red (R1) ~~ TS-659, 5 X 1 TB Hitachi Enterprise (R6)
APC Smart-UPS 750

User avatar
Briain
Experience counts
Posts: 1757
Joined: Tue Apr 20, 2010 11:56 pm
Location: Edinburgh (Scotland)

Re: [Antivirus] Failed to update virus definitions

Post by Briain » Mon Jun 15, 2020 9:54 pm

Interestingly, the automatic update failed again both yesterday and today, so I just tried the 'Update now' button and that failed too. Odd; it was all working after I'd performed the other tricks, so I'll just give up for now (I don't run AV on my Debian machines and the Windows machine doesn't have access to my Qnaps, so I'm not that bothered about it).
Briain
TS-119, 1 X Seagate ~~ TS-219, 2 X Seagate (R1) ~~ TS-453A, 2 X 3 TB WD Red (R1) ~~ TS-659, 5 X 1 TB Hitachi Enterprise (R6)
APC Smart-UPS 750

Post Reply

Return to “NAS Management”