Il 16/11/2010 17:27, John Hardin ha scritto:
On Tue, 16 Nov 2010, Francesco Acchiappati wrote:
Il 16/11/2010 15:11, John Hardin ha scritto:
I'd suggest the most likely problem is sa-compile is failing for some
reason. Try running it interactively.
You could run this:
bash -x /etc/cron.daily/spamassassin 2>&1 | tee /tmp/log.txt
As you suggested here is the output
# bash -x /etc/cron.daily/spamassassin 2>&1 | tee /tmp/log.txt
+ set -e
+ CRON=0
+ test -f /etc/default/spamassassin
+ . /etc/default/spamassassin
++ ENABLED=1
++ OPTIONS='-q -x -u tomcat4'
++ PIDFILE=/var/run/spamd.pid
++ NICE='--nicelevel 15'
++ CRON=1
+ test -x /usr/bin/sa-update
+ test -x /etc/init.d/spamassassin
+ '[' 1 = 0 ']'
+ RANGE=3600
++ od -vAn -N2 -tu4
+ number=' 62039'
++ expr 62039 % 3600
+ number=839
+ sleep 839
+ umask 022
+ sa-update
+ exit 0
Heh. Okay, that looks even more like sa-compile is failing for some
reason. Unfortunately you're up-to-date so it's not getting to that
part of the script.
You'd have to shut down SA, delete the last update script, and run
this again, which would be fairly intrusive. Instead, you may want to
stick some "echo" statements into the script to log the progress, or
put "set -x" at the top so that it generates output similar to the
above in the message that cron mails to root.
You also might want to run sa-compile manually and see what happens.
/bin/sh: cc: command not found
make: *** [body_0.o] Error 127
command failed: exit 2
heh... i think this may be the reason.. sa-compile returns this error..
now i have to figure out how a dependency like cc is missing on my
system... mmmhhhh this will be a loong night..
thank you very much to everyone who helped me out.