[clamav-users] failed to write to

ratatouille ratatouille at bitclusive.de
Sun Dec 8 12:03:53 UTC 2019


ratatouille via clamav-users <clamav-users at lists.clamav.net> schrieb am 07.12.19 um 19:21:16 Uhr:

> I don't know if this solved the problem but for now it's gone. I'll keep track
> on this and report back if it occurs still.

The problem remains.

Dec  8 12:06:36 bitmachine1 freshclam[5059]: mkdir_and_chdir_for_cdiff_tmp: Can't create directory /usr/local/share/clamav/tmp/clamav-31af67dd9f97642f2d9534175fe304fc.tmp
Dec  8 12:06:36 bitmachine1 freshclam[5059]: Incremental update failed, trying to download daily.cvd
Dec  8 12:06:36 bitmachine1 freshclam[5059]: downloadFile: Can't create new file /usr/local/share/clamav/tmp/clamav-050e079f76697162073f8287eadb5b84.tmp in /usr/local/share/clamav
Dec  8 12:06:36 bitmachine1 freshclam[5059]: getcvd: Can't download daily.cvd from https://database.clamav.net/daily.cvd
Dec  8 12:06:36 bitmachine1 freshclam[5059]: Unexpected error when attempting to update database: daily
Dec  8 12:06:36 bitmachine1 freshclam[5059]: fc_update_databases: fc_update_database failed: Failed to read/write file to database directory (10)
Dec  8 12:06:36 bitmachine1 freshclam[5059]: Database update process failed: Failed to read/write file to database directory (10)
Dec  8 12:06:36 bitmachine1 freshclam[5059]: Update failed.

I killed freshclam so that clamd was still running and executed
freshclam -v --config-file=/usr/local/etc/freshclam.conf

ClamAV update process started at Sun Dec  8 12:57:06 2019
Current working dir is /usr/local/share/clamav/
Querying current.cvd.clamav.net
TTL: 570
fc_dns_query_update_info: Software version from DNS: 0.102.1
Current working dir is /usr/local/share/clamav/
check_for_new_database_version: Local copy of daily found: daily.cld.
query_remote_database_version: daily.cvd version from DNS: 25657
daily.cld database is up to date (version: 25657, sigs: 2036324, f-level: 63, builder: raynman)
fc_update_database: daily.cld already up-to-date.
Current working dir is /usr/local/share/clamav/
check_for_new_database_version: Local copy of main found: main.cld.
query_remote_database_version: main.cvd version from DNS: 59
main.cld database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
fc_update_database: main.cld already up-to-date.
Current working dir is /usr/local/share/clamav/
check_for_new_database_version: Local copy of bytecode found: bytecode.cld.
query_remote_database_version: bytecode.cvd version from DNS: 331
bytecode.cld database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
fc_update_database: bytecode.cld already up-to-date.

If I create the tmp folder manually it is removed next time freshclam runs and cannot
be created by freshclam/vscan again. That's the reason the run fails.
I don't understand why. The permissions seem to be correct.

I set the immunteable bit to the tmp folder but that gave more warnings.

  Andreas



More information about the clamav-users mailing list