Job for spamassassin.service

Hi,

I have Yunohost installed on Debian Jessie on a DigitalOcean droplet.
In my root mailbox, I receive those emails daily :

Cron <root@yunohost> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/spamassassin:
command 're2c -i -b -o scanner1.c scanner1.re' failed: exit 2
Job for spamassassin.service failed. See 'systemctl status spamassassin.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript spamassassin, action "reload" failed.

I’ve run :

# systemctl status spamassassin.service


* spamassassin.service - Perl-based spam filter using text analysis
   Loaded: loaded (/lib/systemd/system/spamassassin.service; disabled)
   Active: failed (Result: exit-code) since Sat 2015-07-25 10:05:57 EDT; 3 weeks 3 days ago
  Process: 4243 ExecStart=/usr/sbin/spamd -d --pidfile=/var/run/spamassassin.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 4245 (code=exited, status=255)

Aug 18 07:14:50 yunohost systemd[1]: Unit spamassassin.service cannot be reloaded because it is inactive.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

and :

# journalctl -xn
-- Logs begin at Mon 2015-08-17 01:24:06 EDT, end at Tue 2015-08-18 15:16:22 EDT. --
Aug 18 15:16:22 yunohost imap[3441]: antispam: plugin initialising (2.0-notgit)
Aug 18 15:16:22 yunohost imap[3441]: antispam: "SPAM" is exact match spam folder
Aug 18 15:16:22 yunohost imap[3441]: antispam: "Junk" is exact match spam folder
Aug 18 15:16:22 yunohost imap[3441]: antispam: no unsure folders
Aug 18 15:16:22 yunohost imap[3441]: antispam: "Trash" is exact match trash folder
Aug 18 15:16:22 yunohost imap[3441]: antispam: pipe backend spam argument = --spam
Aug 18 15:16:22 yunohost imap[3441]: antispam: pipe backend not-spam argument = --ham
Aug 18 15:16:22 yunohost imap[3441]: antispam: pipe backend program = /usr/bin/sa-learn-pipe.sh
Aug 18 15:16:22 yunohost imap[3441]: antispam: pipe backend tmpdir /tmp
Aug 18 15:16:22 yunohost dovecot[1700]: imap(tb): Disconnected: Logged out in=423 out=2870

Any idea?
Thanks,
t.

Hello,

I had almost the same message.

As I understand, the spamasssin dameon is deactivated :

$  grep -i ^enable /etc/default/spamassassin
ENABLED=0

I do not understand if postfix/amavis use spamassassin or not.

Because I think spamassassin is not used (am I wrong ?), I put exit 0 at the beginning of the file /etc/cron.daily/spamassassin.

I’am interested by an answer from someone who knows how spamassassin is used in yunohost.

Thanks


Bidroik

Salut,

c’est la commande reload qui pose problème. Il suffit de la remplacer par restart pour que le cron fonctionne correctement.

Éditer le fichier /etc/cron.daily/spamassassin
Trouver le paragraphe

# Tell a running spamd to reload its configs and rules.

Remplacer

invoke-rc.d spamassassin reload > /dev/null
else
/etc/init.d/spamassassin reload > /dev/null

par

invoke-rc.d spamassassin restart > /dev/null
else
/etc/init.d/spamassassin restart > /dev/null

Hello,

It works !

Thanks

It solved the problem, thanks!

Hi!
It also solved the problem for me.
Do we need to do a bug report?
(I have no idea about the whys and wherefores of this bug, whether it is related to YunoHost or not, …)