Clamd failed to start zimbra 8.8 |
Article original Publié le : 09 novembre2019
Mise a jour le : – |
Ce n’est pas vraiment lié à la version, mais au fil des évolutions Zimbra est de plus en plus gourmand en ressource.
Ma serveur ayant subi une panne, une fois le service rétabli, je réceptionne tous les mails avec l’objet ***UNCHECKED***
un rapide état des services me donne l’origine du problème.
1 |
$ zmcontrol status |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Host serveur-mail.domain.tld amavis Running antispam Running antivirus Stopped zmclamdctl is not running dnscache Running imapd Running ldap Running logger Running mailbox Running memcached Running mta Running opendkim Running proxy Running service webapp Running snmp Running spell Running stats Running zimbra webapp Running zimbraAdmin webapp Running zimlet webapp Running zmconfigd Running |
Le service antivirus clamav refuse de démarrer
1 |
$ zmclamdctl start |
1 |
Starting clamd...failed. |
Dans les logs il apparaît un soucis de mémoire
1 |
$ tail -f /opt/zimbra/log/clamd.log |
1 2 3 4 5 6 7 |
Nov 8 11:10:41 serveur-mail clamd[9716]: Loaded 6185142 signatures. Nov 8 11:10:43 serveur-mail clamd[9716]: TCP: Bound to [127.0.0.1]:3310 Nov 8 11:10:43 serveur-mail clamd[9716]: TCP: Setting connection queue length to 200 Nov 8 11:10:43 serveur-mail clamd[9716]: LOCAL: Unix socket file /opt/zimbra/data/clamav/clamav.sock Nov 8 11:10:43 serveur-mail clamd[9716]: LOCAL: Setting connection queue length to 200 <strong>Nov 8 11:10:43 serveur-mail clamd[9716]: daemonize() failed: Cannot allocate memory</strong> Nov 8 11:10:43 serveur-mail clamd[9716]: Socket file removed. |
Les recommandations de clamav tourne autour de 1 a 2GO de ram minimum
https://www.clamav.net/documents/introduction
Pour ma modeste vm Zimbra, 4GO de ram ne semble plus trop efficace pour faire tourner tous les services
1 2 3 4 |
$ free -m total used free shared buff/cache available Mem: 3854 2400 920 217 534 1014 Swap: 0 0 0 |
J’ai donc ajouté une swap a la vm, celle ci en étant dépourvu, j’ai fait un article il y a quelque temps.
https://it.izero.fr/linux-ajouter-swap-vps-ovh/
Apres l’ajout, le service a bien démarré
1 |
$ zmclamdctl start |
1 |
Starting clamd...started. |
Vérification de la ram
1 2 3 4 |
free -m total used free shared buff/cache available Mem: 3854 3051 433 131 368 459 Swap: 1023 286 737 |
État des services
1 |
$ zmcontrol status |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Host serveur-mail.domain.tld amavis Running antispam Running antivirus Running dnscache Running imapd Running ldap Running logger Running mailbox Running memcached Running mta Running opendkim Running proxy Running service webapp Running snmp Running spell Running stats Running zimbra webapp Running zimbraAdmin webapp Running zimlet webapp Running zmconfigd Running |
Merci beaucoup !
np