Bernard <[email protected]> writes:

> I got SpamAssassin on my server for a long time, and from time to time
> it was reporting errors now and then from the daily scheduled task.
>
> However, for the past week, the error is now constant.
>
> I get the following error by email:
> /etc/cron.daily/spamassassin:
> chmod: cannot access 'body_0.bs': No such file or directory
> make: *** [Makefile:465: body_0.bs] Error 1
> command 'make PREFIX=/tmp/.spamassassin22314pi2fCtmp/ignored
> INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.032/3.004006
>>>/tmp/.spamassassin22314pi2fCtmp/log' failed: exit 2
>
> Looking at the contents of /tmp/.spamassassin22314pi2fCtmp/log:
> Generating a Unix-style Makefile
> Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
> Writing MYMETA.yml and MYMETA.json
> cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
> Running Mkbootstrap for body_0 ()
> chmod 644 "body_0.bs"
>
> /var/lib/spamassassin seems to contain a lot of outdated stuff:
> drwxr-xr-x 3 debian-spamd debian-spamd 4096 Jun 18  2017 3.004000
> drwxr-xr-x 3 debian-spamd debian-spamd 4096 Nov 10  2018 3.004001
> drwxr-xr-x 3 debian-spamd debian-spamd 4096 Oct 16 04:47 3.004002
> drwxr-xr-x 3 debian-spamd debian-spamd 4096 Feb  4 07:08 3.004006
> drwxr-xr-x 3 debian-spamd debian-spamd 4096 Oct 16 17:32 compiled
> drwx------ 3 debian-spamd debian-spamd 4096 Feb  2 14:26 sa-update-keys
>
> I never really understood what I was doing with SpamAssassin...
>
> Bernard

I don't know the answer, but here's some steps I'd take to try to figure
it out.

I'd run "sh -x /etc/cron.daily/spamassassin"
to see what command in that file failed. I assume it is the sa-compile command.

If that didn't lead me to figuring it out, I'd probably make a fresh
chroot of your os with debootstrap, then chroot in, install
spamassassin, and see if it also fails there. If so, I'd definitely
report it as a bug.

- Ian

Reply via email to