[Antivirus] Failed to update virus definitions

Q'center app, Helpdesk app
cabman
New here
Posts: 6
Joined: Mon Dec 12, 2016 11:33 am

Re: [Antivirus] Failed to update virus definitions

Post by cabman »

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.
I am having this issue now after a power failure. I cannot understand how to enter this using SSH. Do I enter each line, press enter then do the next line and so on until all 3 lines are entered? I have never used SSH before. I figured out how to logon to my QNAP using SSH. When I put these lines of code in it appears that nothing happens. Which part of the code would be the volume...."defVolMP"? Any clarification would be appreciated. Is it possible to provide instructions as if someone has never done this before?

Thanks
ecoen
New here
Posts: 6
Joined: Fri Nov 22, 2013 7:28 am

Re: [Antivirus] Failed to update virus definitions

Post by ecoen »

cabman wrote: Wed Apr 21, 2021 10:41 pm
I am having this issue now after a power failure. I cannot understand how to enter this using SSH. Do I enter each line, press enter then do the next line and so on until all 3 lines are entered? I have never used SSH before. I figured out how to logon to my QNAP using SSH. When I put these lines of code in it appears that nothing happens. Which part of the code would be the volume...."defVolMP"? Any clarification would be appreciated. Is it possible to provide instructions as if someone has never done this before?

Thanks
The volume portion of the command is in the 2nd line of commands... in his example (and on my NAS), it is /share/CACHEDEV1_DATA .

If you are ssh'ed in, you can find the volume by figuring out where your NAS user homes directory lives:

Code: Select all

ls -al /share/homes
lrwxrwxrwx 1 admin administrators 20 2021-05-04 08:46 /share/homes -> CACHEDEV1_DATA/homes/

As you can see, in my example the volume that I want to use is going to be /share/CACHEDEV1_DATA .
surfdude
First post
Posts: 1
Joined: Sat Feb 26, 2011 6:58 am

Re: [Antivirus] Failed to update virus definitions

Post by surfdude »

Hi! Have a same problem.
For me, the advice above didn't work. What am I doing wrong?
[~] # ls -al /share/homes
lrwxrwxrwx 1 admin administ 14 Jul 8 14:10 /share/homes -> MD0_DATA/homes/
[~] # [/etc/config] # getcfg SHARE_DEF dfVolMP -f /etc/config/def_share.info
-sh: [/etc/config]: No such file or directory
[~] # [/etc/config] # setcfg SHARE_DEF defVolMP -f /etc/config/def_share.info /share/MD0_DATA
-sh: [/etc/config]: No such file or directory
[~] # [/etc/config] # getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
-sh: [/etc/config]: No such file or directory
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: [Antivirus] Failed to update virus definitions

Post by dolbyman »

probably a device that uses cachedevx and not MDx_data

without information, impossible to say
User avatar
daNutz
Getting the hang of things
Posts: 72
Joined: Mon May 07, 2012 10:04 pm
Location: London, UK

Re: [Antivirus] Failed to update virus definitions

Post by daNutz »

Hi,

Ive had this in the past and manually downloading the latest .cvd from https://database.clamav.net/daily.cvd, importing and then running

Code: Select all

freshclam -u admin -v
in the console and brought everything up to date.
TS-1079Pro - 30TB - RAID 6 - FW: 4.3.6.2232 - MultiMedia
TS-453 Pro - 12TB - RAID 5 - OS: Ubuntu Server 22.04.2 / Docker
SelfHosted
NAS Migration Compatibility

ImageImageImageImageImageImageImageImageImageImageImageImageImage
cachi
New here
Posts: 4
Joined: Sat Apr 26, 2014 10:20 pm

Re: [Antivirus] Failed to update virus definitions

Post by cachi »

daNutz wrote: Sat Aug 07, 2021 11:08 pm Ive had this in the past and manually downloading the latest .cvd from https://database.clamav.net/daily.cvd, importing and then running
Thanks!!! That saved me right now!! I've bookmarked that URL!

Regards
mafabio
Starting out
Posts: 22
Joined: Tue Dec 11, 2012 2:38 am

Re: [Antivirus] Failed to update virus definitions

Post by mafabio »

Great vel0x! Your fix worked after a reboot. Thank you!
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.
brxxm
New here
Posts: 6
Joined: Sat Dec 17, 2016 6:42 pm

Re: [Antivirus] Failed to update virus definitions

Post by brxxm »

I had this problem since beginning this week - following a power failure my TS-453A would not reboot. It turned out disk 1 was damaged. Disk 1 is part of a RAID 1 volume (i.e. mirrored) with disk 2. This RAID 1 volume is the system volume.

After removing disk 1 the NAS booted successfully. I put a spare disk in slot 1 and waited for the NAS to rebuild the volume. The rebuild completed and all was good again except antivirus did not update and raised the missing volume warning.

The fix of vel0x solved this. I can not explain why the defVolMP setting was not restored with the rebuild.
ensignvorik
Easy as a breeze
Posts: 362
Joined: Sat Jul 14, 2012 8:24 pm

Re: [Antivirus] Failed to update virus definitions

Post by ensignvorik »

Someone else suffering this issue after a power failure, and as others have reported, doing the below seems to sort it.

Thanks
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.
Unless I'm being blind, I can't find the setting to change what kind of QNAP I have on my profile. I now own a TS-253A
Flynnstones
First post
Posts: 1
Joined: Tue May 30, 2017 1:57 am

Re: [Antivirus] Failed to update virus definitions

Post by Flynnstones »

I am also having the same issue as Surfdude.

Getting this after each line entered:

-sh: [/etc/config]: No such file or directory

My volume is /share/CACHEDEV1_DATA.

Has anyone any idea what the issue could be? I fixed it using this method in the past and it has come back after a power cut unfortunately.
Locked

Return to “NAS Management”