Neuinstallation kein Start von Antivirus (ClamAV)

Locked
hase
Posts: 250
Joined: Fri 29. Sep 2017, 16:18

Neuinstallation kein Start von Antivirus (ClamAV)

Post 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?
viele Grüße
Andi
User avatar
Jolinar
Community Moderator
Posts: 4004
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Post 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?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
hase
Posts: 250
Joined: Fri 29. Sep 2017, 16:18

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Post 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
viele Grüße
Andi
hase
Posts: 250
Joined: Fri 29. Sep 2017, 16:18

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Post by hase »

Hallo,
ich habe nochmals eine Server-Neuinstallation vorgenommen.
Das Problem bleibt wie oben beschrieben :roll:
viele Grüße
Andi
User avatar
Muesli
Posts: 30
Joined: Sun 16. Aug 2020, 18:07

Re: Neuinstallation kein Start von Antivirus (ClamAV)

Post 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.
Locked