[clamav-users] failed to write to
G.W. Haywood
clamav at jubileegroup.co.uk
Sat Dec 7 16:13:52 UTC 2019
Hi there,
On Sat, 7 Dec 2019, ratatouille via clamav-users wrote:
> Since the recent update of clamav I have the following problem when freshclam
> automatically tries to update the db.
>
> Dec 7 11:20:43 bitmachine1 freshclam[783]: Unexpected error when attempting to update database: daily
> Dec 7 11:20:43 bitmachine1 freshclam[783]: fc_update_databases: fc_update_database failed: Failed to read/write file to database directory (10)
> Dec 7 11:20:43 bitmachine1 freshclam[783]: Database update process failed: Failed to read/write file to database directory (10)
>
> # ls -al
> drwxr-xr-x 2 vscan vscan 4096 7. Dez 12:44 .
> drwxr-xr-x 6 root root 4096 22. Jan 2019 ..
> -rw-r--r-- 1 vscan vscan 1458176 19. Sep 19:58 bytecode.cld
> -rw-r----- 1 vscan vscan 167019008 7. Dez 12:44 daily.cld
> -rw-r--r-- 1 vscan vscan 307403264 25. Nov 22:31 main.cld
> -rw------- 1 vscan vscan 896 25. Nov 21:08 mirrors.dat
>
> # ps aux |grep clam
> vscan 783 0.0 0.0 91040 232 ? Ss Nov28 0:00 /usr/local/bin/freshclam -d
> vscan 2091 0.0 39.3 1055172 808732 ? Ssl Nov28 2:18 /usr/local/sbin/clamd
>
> It fails to create the tmp-folder. No problem when I call freshclam
> from a terminal.
>
> What is wrong and how can I fix this issue?
It isn't easy to see what's wrong without more information.
You could tell freshclam to log verbosely, that might shed some light
on the issue.
What version of ClamAV are you using?
How much disc space is available? How much memory is in the machine?
Please post the freshclam configuration and the exact terminal command
which you used. I wonder if you are not using the same configuration
for the freshclam daemon that you're using when you run freshclam from
the terminal. I suggest you stop the freshclam daemon, and restart it
with the path to its configuration file specified explicitly on the
command line. You could also specify the path when you run freshclam
from the command line, to be sure it's the same.
The database read timeout in the freshclam configuration supplied with
recent releases is I believe 60 seconds. This is not long enough in
many cases, I recommend increasing it to something like 600 seconds,
although this is probably not the issue you're facing here.
--
73,
Ged.
More information about the clamav-users
mailing list