I worked out what I needed to do. In short, I had some free space left on my NAS. So, I followed the error message and created a volume:[Antivirus] Failed to update virus definitions. Please, create a volume and try again.
- Log onto NAS Web interface.
- Open Storage and Snapshots app.
- Click on Storage/Snapshots menu item on the left.
- Click on the "Create (New) ▾" button.
- Click on New Volume.
- Select Thick Volume.
- Location: Storage Pool 1
- Click Next.
- Volume Alias: SystemVol
- Volume capacity: 25GB.
- Bytes per inode: 4K.
- Click Next.
- Click Finish.
Watching the volume in Storage & Snapshots, I could see the volume being created and formatted. Its status changed to "Creating Default Folders..." for a while. I waited for this process to complete and the volume status to change to ✓ Ready.
Now I want to check on the antivirus app. You can close or minimize the Storage & Snapshots app using the task bar at the top of the QNAP Web page.
- Open Control Panel. For clarity, this is the NAS app in the QNAP Web interface.
- Click on the Applications menu.
- Click on the Antivirus menu option. This should start you on the Overview tab.
- I clicked on the Update now button. That took a while. But, eventually, it finished.
- I checked the box to Enable antivirus.
- In the Update section, I checked the box to Check and update automatically once a day.
- Click the Apply button at the bottom.
You might want to poke around in the Antivirus settings to see if everything is to your liking. I also checked on the scan schedule and started a full scan. But what I outlined above is basically it. Those steps fixed my issue.
Now, I had no idea what was meant by "Please, create a volume and try again," when I started. So, I actually went through a longer process of discovery before things made sense to me.
I started with this thread: TS-469U-RP Failed to update virus definition and, specifically, this post about tracing the antivirus update script was helpful.
If you are not familiar with SSH, try to search and learn some of the basics online. Basically, it is a command prompt for your NAS. One thing you will need is an SSH client. PuTTY works for me on Windows. On Mac and Linux, you should be able to use 'ssh' from a terminal.
- Enter the IP address for your NAS.
- Accept the fingerprint the first time you connect.
- Enter the same user name and password you use to access the Web interface.
From there, I followed the example in the post. It helps if you're familiar with what the terminal normally looks like.
I wasn't sure about the network connectivity. So, I started with this command:
Code: Select all
/sbin/curl --connect-timeout 10 -I clamav.net
That produced a 302 which seems fine for 'clamav.net'.
[~] # /sbin/curl --connect-timeout 10 -I clamav.net
HTTP/1.1 302 Moved Temporarily
Date: Fri, 21 Sep 2018 14:57:01 GMT
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from barracuda.my.domain
Via: 1.1 barracuda.my.domain (http_scan_byf/3.3.1)
Next, I moved on to stepping through the update script.
Code: Select all
/bin/sh -xxxx /etc/init.d/antivirus.sh update_db
[~] # /bin/sh -xxxx /etc/init.d/antivirus.sh update_db
+ export QNAP_QPKG=antivirus
++ /sbin/getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
+ local DEF_VOLMP=/share/CACHEDEV1_DATA
+ '[' '!' -z /share/CACHEDEV1_DATA ']'
+ '[' -d /share/CACHEDEV1_DATA ']'
+ return 1
+ '[' 1 '!=' 0 ']'
+ dbgprintf ' Uppdate failed: no default volume.'
+ '[' x1520524458 '!=' x0 ']'
+ /sbin/write_log '[Antivirus] Failed to update virus definitions. Please, create a volume and try again.' 1
+ return 1
These trailing lines about a default volume prompted me to search online. That turned up App Default volume does not exist and this post.
That suggested fix triggered my memory because I had gone through the System Logs in the Web interface earlier and saw a warning:
The default network shared folders (Public, Web) do not exist. These shared folders can be restored in "Control Panel > Shared Folders".
I tried to create the default folders following that post. But that failed with:
System default shares have already existed, or the disk volume is not formatted or unmounted.
That prompted me to see if I had any free space left over on my NAS. Since I had some free space, I created a volume. And that leads to my instructions above. Ultimately, I did not have to manually restore the default shared folders because that happened automatically after I created the empty volume. And that is how I figured things out.
Please post your questions below.