[Antivirus] Failed to update virus definitions
-
- First post
- Posts: 1
- Joined: Thu Jan 09, 2020 12:27 am
[Antivirus] Failed to update virus definitions
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.
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.
- Toxic17
- Ask me anything
- Posts: 6469
- Joined: Tue Jan 25, 2011 11:41 pm
- Location: Planet Earth
- Contact:
Re: [Antivirus] Failed to update virus definitions
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.
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
Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following
NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following
NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
-
- First post
- Posts: 1
- Joined: Thu Jan 23, 2020 12:27 pm
Re: [Antivirus] Failed to update virus definitions
Had the same issue.
Somehow my default system volume was not set in the config.
Using SSH:
Fixed it using (you may need to adjust this if you use a different volume as your system volume):
After that it looked like this:
And the updates started working again after this.
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
Code: Select all
[/etc/config] # setcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/CACHEDEV1_DATA
Code: Select all
[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
/share/CACHEDEV1_DATA
-
- First post
- Posts: 1
- Joined: Tue Sep 03, 2019 10:53 pm
Re: [Antivirus] Failed to update virus definitions
Thank you for that vel0x, that did it for me! ![Wink ;-)](./images/smilies/icon_wink.gif)
Curious though as to where/how you found this solution?
Thanks again,
Michel
![Wink ;-)](./images/smilies/icon_wink.gif)
Curious though as to where/how you found this solution?
Thanks again,
Michel
-
- Know my way around
- Posts: 128
- Joined: Wed Feb 10, 2016 9:19 am
- Location: Canada
Re: [Antivirus] Failed to update virus definitions
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.
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,
45 TB total RAID 6 storage pool, 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 .
Firmware Version:Always updated
TS-873 32GB Ram, 8 x 8TB Seagate IronWolf NAS Model: ST8000VN0022,
45 TB total RAID 6 storage pool, 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 .
-
- Starting out
- Posts: 18
- Joined: Sat Jun 11, 2016 9:55 pm
Re: [Antivirus] Failed to update virus definitions
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?
I also rebooted the NAS.
many thanks
S.
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?
I also rebooted the NAS.
many thanks
S.
You do not have the required permissions to view the files attached to this post.
-
- New here
- Posts: 7
- Joined: Sun Apr 08, 2012 8:20 am
Re: [Antivirus] Failed to update virus definitions
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.
-
- First post
- Posts: 1
- Joined: Sat Nov 12, 2016 6:43 pm
Re: [Antivirus] Failed to update virus definitions
Thank you for the solution vel0x, worked for me !
-
- First post
- Posts: 1
- Joined: Thu Apr 23, 2020 5:29 am
Re: [Antivirus] Failed to update virus definitions
Thanks @vel0x! That worked for me also.
McAfee wasn't updating. All sorted after (didn't need to restart anything).
McAfee wasn't updating. All sorted after (didn't need to restart anything).
- scottdavidcarter
- Getting the hang of things
- Posts: 85
- Joined: Fri Mar 11, 2016 12:03 am
Re: [Antivirus] Failed to update virus definitions
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
""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:Fixed it using (you may need to adjust this if you use a different volume as your system volume):Code: Select all
[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
After that it looked like this:Code: Select all
[/etc/config] # setcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/CACHEDEV1_DATA
And the updates started working again after this.Code: Select all
[/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/CACHEDEV1_DATA
Two each QNAP TS-251 with 8GB (Firmware 5.0.1.2277)
- Media/File Server, QVRPro with 7x ReoLink-410 5mp wired security cams, PC & Mac backups
- Media/File Server, QVRPro with 7x ReoLink-410 5mp wired security cams, PC & Mac backups
-
- First post
- Posts: 1
- Joined: Fri Feb 14, 2014 7:05 am
Re: [Antivirus] Failed to update virus definitions
It worked for me as well, straight away.
Thank you very much for your post.
Thank you very much for your post.
- 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
Thanks vel0x! This code worked for me. I would be interested in how you came to know to do this.
Jesus Christ Saves!
-
- New here
- Posts: 4
- Joined: Tue Sep 06, 2016 1:27 pm
Re: [Antivirus] Failed to update virus definitions
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
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
- Briain
- Experience counts
- Posts: 1749
- Joined: Tue Apr 20, 2010 11:56 pm
- Location: Edinburgh (Scotland)
Re: [Antivirus] Failed to update virus definitions
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
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.
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
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.
![Smile :)](images/smilies/icon_smile.gif.pagespeed.ce.nuZG_6txEH.gif)
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)'
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
APC Smart-UPS 750
- Briain
- Experience counts
- Posts: 1749
- Joined: Tue Apr 20, 2010 11:56 pm
- Location: Edinburgh (Scotland)
Re: [Antivirus] Failed to update virus definitions
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
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
APC Smart-UPS 750