Topic: Clamd: Segmentationfault/Malformed database -> e-mail delays
==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySQL
- Linux/BSD distribution name and version: CentOS 6.4 x64
- Related log if you're reporting an issue:
====
My mailserver has delays in sending/receiving e-mails. Checked the logs and encountered the following:
/var/log/maillog
Oct 27 03:41:13 mail amavis[2240]: (02240-05) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to UNIX socket /tmp/clamd.socket: Verbinding is geweigerd
Oct 27 03:41:13 mail amavis[2240]: (02240-05) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (All attempts (1) failed connecting $
Oct 27 03:41:13 mail amavis[2240]: (02240-05) (!)WARN: all primary virus scanners failed, considering backups
Oct 27 03:41:14 mail amavis[2241]: (02241-05) (!)connect to /tmp/clamd.socket failed, attempt #1: Can't connect to UNIX socket /tmp/clamd.socket: Verbinding is geweigerd
Oct 27 03:41:14 mail amavis[2241]: (02241-05) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (All attempts (1) failed connecting $
Oct 27 03:41:14 mail amavis[2241]: (02241-05) (!)WARN: all primary virus scanners failed, considering backups
Oct 27 03:41:18 mail amavis[2240]: (02240-05) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan DIED, signal 11 (008b) at (eval 115) line 897.
Oct 27 03:41:18 mail amavis[2240]: (02240-05) (!!)AV: ALL VIRUS SCANNERS FAILED
Oct 27 03:41:18 mail amavis[2241]: (02241-05) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan DIED, signal 11 (008b) at (eval 115) line 897.
Oct 27 03:41:18 mail amavis[2241]: (02241-05) (!!)AV: ALL VIRUS SCANNERS FAILED
/var/log/clamav/freshclam.log-20131027
ClamAV update process started at Sun Oct 27 03:41:07 2013
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily-18014.cdiff [100%]
Downloading daily-18015.cdiff [100%]
Downloading daily-18016.cdiff [100%]
Downloading daily-18017.cdiff [100%]
WARNING: [LibClamAV] cli_loadhash: Invalid value for the size field
WARNING: [LibClamAV] cli_loadhash: Problem parsing database at line 303578
WARNING: [LibClamAV] Can't load daily.mdb: Malformed database
WARNING: [LibClamAV] cli_tgzload: Can't load daily.mdb
WARNING: [LibClamAV] Can't load /var/lib/clamav/clamav-1df775b2b9bf46a0680580f75bc51819.tmp/clamav-f3294835893a1550cb5792a0995b80c5$
ERROR: Failed to load new database: Malformed database
ERROR: During database load : ERROR: Failed to load new database: Malformed database
WARNING: Database load exited with status 55
ERROR: Failed to load new database
Service clamd start gave me the following error:
Service clamd start
Starting Clam AntiVirus Daemon: /bin/bash: rule 1: 4835 Segmentationfault clamd [FAILED]
Then I tried the following:
freshclam
ClamAV update process started at Mon Oct 28 01:45:48 2013
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily-18014.cdiff [100%]
Downloading daily-18015.cdiff [100%]
Downloading daily-18016.cdiff [100%]
Downloading daily-18017.cdiff [100%]
Downloading daily-18018.cdiff [100%]
Downloading daily-18019.cdiff [100%]
Downloading daily-18020.cdiff [100%]
Downloading daily-18021.cdiff [100%]
Downloading daily-18022.cdiff [100%]
Downloading daily-18023.cdiff [100%]
ERROR: During database load : WARNING: [LibClamAV] hm_addhash_str: invalid hash 690c99ca2b345c2bd522db36acaff58 [...] ERROR: Failed to load new database: Malformed database
WARNING: Database load exited with status 55
ERROR: Failed to load new database
Hope to get a solution for this problem.
Thanks in advance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.