Page 1 of 1

Neuinstallation kein Start von Antivirus (ClamAV)

Posted: Tue 14. Apr 2020, 15:51
by hase
Hallo,
ich habe eine komplette Neuinstalltion auf einem neuen Server durchgeführt. Es wurde kein ERROR bei der Installation angezeigt, alles Okay.

Bei der Serverdienstverwaltung ist Antivirus (ClamAV) deaktiviert. Es lässt sich einfach nicht starten, egal was ich mache.

System ist: Debian 10.3 64bit
Hat jemand vielleicht ein Lösung für das Problem?

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Posted: Tue 14. Apr 2020, 15:57
by Jolinar
hase wrote: Tue 14. Apr 2020, 15:51 Es lässt sich einfach nicht starten
Fehlermeldungen?
Logfileauszüge?
Wieviel RAM steht dir auf der Kiste zur Verfügung?

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Posted: Tue 14. Apr 2020, 16:10
by hase
Hallo,
der Server hat 8GB RAM

service clamav-daemon status zeigt folgendes:
Condition: start condition failed at Tue 2020-04-14 16:00:02 CEST; 42s ago
└─ ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} was not met
Docs: man:clamd(8)
man:clamd.conf(5)
systemd[1]: Condition check resulted in Clam AntiVirus userspace daemon being skipped.


Logfile zeigt folgendes:
amavis[6700]: (06700-03) (!)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
Apr 14 15:57:05 web amavis[6700]: (06700-03) (!)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
Apr 14 15:57:05 web amavis[6700]: (06700-03) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!)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
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!)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 /$
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!)WARN: all primary virus scanners failed, considering backups
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib$
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="LibClamAV Error: cli_loaddbdir(): No supported database file$
Apr 14 15:57:11 web amavis[6700]: (06700-03) (!!)AV: ALL VIRUS SCANNERS FAILED

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Posted: Tue 14. Apr 2020, 18:14
by hase
Hallo,
ich habe nochmals eine Server-Neuinstallation vorgenommen.
Das Problem bleibt wie oben beschrieben :roll:

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Posted: Thu 27. Aug 2020, 15:04
by Muesli
Ich hatte das gleiche Problem. Es stellte sich dann heraus, dass es wohl an AppArmor lag (siehe /etc/apparmor.d/usr.sbin.clamd), denn ich hatte die clamav Verzeichnisse (/var/lib/clamav und /var/log/clamav) woanders hin verschoben und einen Symlink gesetzt. Da ich zu faul war, die AppArmor Konfiguration zu ändern, habe ich die Verzeichnisse wieder zurückverschoben. Danach lief's wieder.