Le service rspamd ne se lance pas

Bonjour à tous,
Je viens de voir que le service rspamd ne démarre pas sur mon système, j’ai tenté un
yunohost service regen-conf rspamd --force en pensant que c’était dû à un bug lors de la migration.
Mais rien y fait rspamd ne se lance pas.
Avez-vous rencontré ce problème et comment l’avez-vous résolu?
Merci pour vos réponses

Est-ce que tu peux montrer les logs de par exemple systemctl status rspamd et journalctl -u rspamd ?

Le retour de systemctl status rspamd

systemctl status rspamd

● rspamd.service - rapid spam filtering system
Loaded: loaded (/lib/systemd/system/rspamd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-07-01 19:29:26 CEST; 1h 49min ago
Docs: https://rspamd.com/doc/
Process: 30545 ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f (code=exited, status=1/FAILURE)
Main PID: 30545 (code=exited, status=1/FAILURE)
CPU: 13ms

juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:26 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Start request repeated too quickly.
juil. 01 19:29:26 yunohost-pc systemd[1]: Failed to start rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.

J’ai posté que les dernières lignes du journalctl -u rspamd

juil. 01 19:29:25 yunohost-pc systemd[1]: Started rapid spam filtering system.
juil. 01 19:29:25 yunohost-pc rspamd[30536]: 2018-07-01 19:29:25 #30536(main) cfg; rspamd_config_read: failed to load config: ucl parser error: cannot open file /etc/rspamd/override.d/antivirus.conf: Permission n
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:25 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:25 yunohost-pc systemd[1]: Started rapid spam filtering system.
juil. 01 19:29:25 yunohost-pc rspamd[30539]: 2018-07-01 19:29:25 #30539(main) cfg; rspamd_config_read: failed to load config: ucl parser error: cannot open file /etc/rspamd/override.d/antivirus.conf: Permission n
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:25 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:25 yunohost-pc systemd[1]: Started rapid spam filtering system.
juil. 01 19:29:25 yunohost-pc rspamd[30541]: 2018-07-01 19:29:25 #30541(main) cfg; rspamd_config_read: failed to load config: ucl parser error: cannot open file /etc/rspamd/override.d/antivirus.conf: Permission n
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:25 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:26 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: Started rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:26 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: Started rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc rspamd[30545]: 2018-07-01 19:29:26 #30545(main) cfg; rspamd_config_read: failed to load config: ucl parser error: cannot open file /etc/rspamd/override.d/antivirus.conf: Permission n
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Main process exited, code=exited, status=1/FAILURE
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 19:29:26 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Start request repeated too quickly.
juil. 01 19:29:26 yunohost-pc systemd[1]: Failed to start rapid spam filtering system.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 19:29:26 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.

Visiblement ily a un problème de droits sur le fichier /etc/rspamd/override.d/antivirus.conf
J’ai installé clamav sur mon instance

Hmmm est-ce qu’un yunohost service regen-conf rspamd --force aide ?

la reconfiguration de rspamd ne donne rien non plus

service regen-conf rspamd --force

regen-conf: unrecognized service

Je crois que tu as oublié de mettre yunohost devant la commande ? :s

en effet j’avais oublié ynohost mais la reconfiguration de rspamd n’a rien changé.
J’ai tenté de relancer le service après le yunohost service regen-conf rspamd --force mais aucun changement pour le moment

systemctl start rspamd.service

systemctl status rspamd

root@yunohost-pc:/etc/rspamd/override.d# systemctl status rspamd
● rspamd.service - rapid spam filtering system
Loaded: loaded (/lib/systemd/system/rspamd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-07-01 23:35:56 CEST; 6s ago
Docs: https://rspamd.com/doc/
Process: 6563 ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f (code=exited, status=1/FAILURE)
Main PID: 6563 (code=exited, status=1/FAILURE)
CPU: 12ms

juil. 01 23:35:56 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.
juil. 01 23:35:56 yunohost-pc systemd[1]: rspamd.service: Service hold-off time over, scheduling restart.
juil. 01 23:35:56 yunohost-pc systemd[1]: Stopped rapid spam filtering system.
juil. 01 23:35:56 yunohost-pc systemd[1]: rspamd.service: Start request repeated too quickly.
juil. 01 23:35:56 yunohost-pc systemd[1]: Failed to start rapid spam filtering system.
juil. 01 23:35:56 yunohost-pc systemd[1]: rspamd.service: Unit entered failed state.
juil. 01 23:35:56 yunohost-pc systemd[1]: rspamd.service: Failed with result ‘exit-code’.

Bonjour à tous,
Je viens de dé-installer clamav et rspamd se lance normalement.
Ce soir soir je retente une installation de clamav il était peu-être mal configuré.
Bonne journée à vous

1 Like

La ré-installation de clamav a réglé le bug.
@Aleks merci d’avoir prit le temps de me répondre

1 Like