Updated info (01/23): Problem with /etc/cron.daily/spamassassin

I apologize for casting my shadow in the forum so soon after my last issue, but this is one that I have no idea how to fix.

I get mail every day from the Cron Daemon.

/etc/cron.daily/logrotate:
[Sun Jan 18 01:20:08 2015] [warn] NameVirtualHost 127.0.0.2:80 has no VirtualHosts
/etc/cron.daily/spamassassin:
channel: attempt to rm channel cf file failed, attempting to continue anyway at /usr/bin/sa-update line 825.
error: can't remove file /var/lib/spamassassin/3.003002/updates_spamassassin_org/20_uri_tests.cf: Permission denied
channel: attempt to rm channel directory failed, attempting to continue anyway at /usr/bin/sa-update line 828.
error: failed to open /var/lib/spamassassin/3.003002/updates_spamassassin_org/10_default_prefs.cf for write: Permission denied at /usr/bin/sa-update line 1118.
channel: archive extraction failed, channel failed
error: can't remove file /var/lib/spamassassin/3.003002/updates_spamassassin_org/20_uri_tests.cf: Permission denied
channel: attempt to clean up failed extraction also failed!
sa-update failed for unknown reasons

Does anyone know what this is about and how to fix it for the cron job to complete?

Thanks,
Cowboy

Howdy,

It looks like the SpamAssassin cron job isn’t completing properly.

What is the output of this command:

ls -la /var/lib/spamassassin/3.003002/updates_spamassassin_org/

Hi andreychek:

root@dfwit:~# ls -la /var/lib/spamassassin/3.003002/updates_spamassassin_org/
total 1000
drwxr-xr-x 2 root root   4096 Jan 14 01:28 .
drwxr-xr-x 3 root root   4096 Jan 14 01:28 ..
-rw-r--r-- 1 root root   8698 Jan 14 01:28 10_default_prefs.cf
-rw-r--r-- 1 root root   2447 Jan 14 01:28 10_hasbase.cf
-rw-r--r-- 1 root root   7607 Jan 14 01:28 20_advance_fee.cf
-rw-r--r-- 1 root root   9111 Jan 14 01:28 20_aux_tlds.cf
-rw-r--r-- 1 root root   7002 Jan 14 01:28 20_body_tests.cf
-rw-r--r-- 1 root root   1889 Jan 14 01:28 20_compensate.cf
-rw-r--r-- 1 root root   9612 Jan 14 01:28 20_dnsbl_tests.cf
-rw-r--r-- 1 root root  15050 Jan 14 01:28 20_drugs.cf
-rw-r--r-- 1 root root  11497 Jan 14 01:28 20_dynrdns.cf
-rw-r--r-- 1 root root   8512 Jan 14 01:28 20_fake_helo_tests.cf
-rw-r--r-- 1 root root   3012 Jan 14 01:28 20_freemail.cf
-rw-r--r-- 1 root root  41016 Jan 14 01:28 20_freemail_domains.cf
-rw-r--r-- 1 root root   4475 Jan 14 01:28 20_freemail_mailcom_domains.cf
-rw-r--r-- 1 root root  26358 Jan 14 01:28 20_head_tests.cf
-rw-r--r-- 1 root root  10675 Jan 14 01:28 20_html_tests.cf
-rw-r--r-- 1 root root   5285 Jan 14 01:28 20_imageinfo.cf
-rw-r--r-- 1 root root   2662 Jan 14 01:28 20_mailspike.cf
-rw-r--r-- 1 root root   3325 Jan 14 01:28 20_meta_tests.cf
-rw-r--r-- 1 root root   1875 Jan 14 01:28 20_net_tests.cf
-rw-r--r-- 1 root root  15848 Jan 14 01:28 20_pdfinfo.cf
-rw-r--r-- 1 root root   8225 Jan 14 01:28 20_phrases.cf
-rw-r--r-- 1 root root   2057 Jan 14 01:28 20_porn.cf
-rw-r--r-- 1 root root  15965 Jan 14 01:28 20_ratware.cf
-rw-r--r-- 1 root root   5747 Jan 14 01:28 20_uri_tests.cf
-rw-r--r-- 1 root root  19266 Jan 14 01:28 20_vbounce.cf
-rw-r--r-- 1 root root   2751 Jan 14 01:28 23_bayes.cf
-rw-r--r-- 1 root root   1542 Jan 14 01:28 25_accessdb.cf
-rw-r--r-- 1 root root   1534 Jan 14 01:28 25_antivirus.cf
-rw-r--r-- 1 root root   1542 Jan 14 01:28 25_asn.cf
-rw-r--r-- 1 root root   2325 Jan 14 01:28 25_dcc.cf
-rw-r--r-- 1 root root   4405 Jan 14 01:28 25_dkim.cf
-rw-r--r-- 1 root root   2927 Jan 14 01:28 25_hashcash.cf
-rw-r--r-- 1 root root   1308 Jan 14 01:28 25_pyzor.cf
-rw-r--r-- 1 root root   3387 Jan 14 01:28 25_razor2.cf
-rw-r--r-- 1 root root  11330 Jan 14 01:28 25_replace.cf
-rw-r--r-- 1 root root   3424 Jan 14 01:28 25_spf.cf
-rw-r--r-- 1 root root   1766 Jan 14 01:28 25_textcat.cf
-rw-r--r-- 1 root root  13124 Jan 14 01:28 25_uribl.cf
-rw-r--r-- 1 root root  27760 Jan 14 01:28 30_text_de.cf
-rw-r--r-- 1 root root  20467 Jan 14 01:28 30_text_fr.cf
-rw-r--r-- 1 root root   1856 Jan 14 01:28 30_text_it.cf
-rw-r--r-- 1 root root  21536 Jan 14 01:28 30_text_nl.cf
-rw-r--r-- 1 root root  17853 Jan 14 01:28 30_text_pl.cf
-rw-r--r-- 1 root root  45446 Jan 14 01:28 30_text_pt_br.cf
-rw-r--r-- 1 root root  38178 Jan 14 01:28 50_scores.cf
-rw-r--r-- 1 root root   9234 Jan 14 01:28 60_adsp_override_dkim.cf
-rw-r--r-- 1 root root   1314 Jan 14 01:28 60_awl.cf
-rw-r--r-- 1 root root   2178 Jan 14 01:28 60_shortcircuit.cf
-rw-r--r-- 1 root root   5809 Jan 14 01:28 60_whitelist.cf
-rw-r--r-- 1 root root   6194 Jan 14 01:28 60_whitelist_dkim.cf
-rw-r--r-- 1 root root   3582 Jan 14 01:28 60_whitelist_spf.cf
-rw-r--r-- 1 root root   1912 Jan 14 01:28 60_whitelist_subject.cf
-rw-r--r-- 1 root root 247591 Jan 14 01:28 72_active.cf
-rw-r--r-- 1 root root  13678 Jan 14 01:28 72_scores.cf
-rw-r--r-- 1 root root   2674 Jan 14 01:28 73_sandbox_manual_scores.cf
-rw-r--r-- 1 root root 101479 Jan 14 01:28 languages
-rw-r--r-- 1 root root   2213 Jan 14 01:28 local.cf
-rw-r--r-- 1 root root    718 Jan 14 01:28 MIRRORED.BY
-rw-r--r-- 1 root root   2770 Jan 14 01:28 regression_tests.cf
-rw-r--r-- 1 root root   4777 Jan 14 01:28 sa-update-pubkey.txt
-rw-r--r-- 1 root root   1497 Jan 14 01:28 STATISTICS-set0-72_scores.cf.txt
-rw-r--r-- 1 root root   1499 Jan 14 01:28 STATISTICS-set1-72_scores.cf.txt
-rw-r--r-- 1 root root      0 Jan 14 01:28 STATISTICS-set2-72_scores.cf.txt
-rw-r--r-- 1 root root      0 Jan 14 01:28 STATISTICS-set3-72_scores.cf.txt
-rw-r--r-- 1 root root   1869 Jan 14 01:28 user_prefs.template
root@dfwit:~# 

Hope this helps.

~Cowboy