Topic: Clamav daemon not starting
==== Required information ====
- iRedMail version 0.9.5
- Debian GNU/Linux 8 (jessie)
- Store mail accounts in which backend: MySQL
- Web server Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled)
Active: failed (Result: exit-code) since Tue 2016-07-19 06:59:13 UTC; 11s ago
Docs: man:clamd(8)
man:clamd.conf(5)
http://www.clamav.net/lang/en/doc/
Process: 29700 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
Main PID: 29700 (code=exited, status=1/FAILURE)
Jul 19 06:59:13 domain.com systemd[1]: Started Clam AntiVirus userspace daemon.
Jul 19 06:59:13 domain.com clamd[29700]: ERROR: Parse error at line 2: Unknown option NotifyClamd
Jul 19 06:59:13 domain.com clamd[29700]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
Jul 19 06:59:13 domain.com systemd[1]: clamav-daemon.service: main process exited, code=exited, status=1/FAILURE
Jul 19 06:59:13 domain.com systemd[1]: Unit clamav-daemon.service entered failed state.
Logs:
Jul 19 06:25:07 sv01 amavis[4142]: (04142-11) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 98) line 172.
Jul 19 06:25:07 sv01 amavis[4142]: (04142-11) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jul 19 06:25:08 sv01 amavis[4142]: (04142-11) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jul 19 06:25:08 sv01 amavis[4142]: (04142-11) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jul 19 06:25:14 sv01 amavis[4142]: (04142-11) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jul 19 06:25:14 sv01 amavis[4142]: (04142-11) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 103) line 613.\n
Jul 19 06:25:14 sv01 amavis[4142]: (04142-11) (!)WARN: all primary virus scanners failed, considering backups
Not sure why it's failing to connect to that specific file, thoughts?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.