YunoHost / packages_old

[not used anymore] YunoHost Debian package sources
http://yunohost.org
8 stars 7 forks source link

Spamassassin cron fails #11

Closed julienmalik closed 10 years ago

julienmalik commented 10 years ago
/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/10_default_prefs.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/10_default_prefs.cf: Permission denied
channel: attempt to clean up failed extraction also failed!
sa-update failed for unknown reasons
julienmalik commented 10 years ago

I have :

admin@yunohost:/var/log$ ll /var/lib/spamassassin/3.003002/updates_spamassassin_org/10_default_prefs.cf
-rw-r--r-- 1 root root 8698 Mar  5 09:41 /var/lib/spamassassin/3.003002/updates_spamassassin_org/10_default_prefs.cf
ghost commented 10 years ago

Normal qu'il y ai un problème: Le cron spamassassin est lancé par debian-spamd, et /var/lib/spamassassin/3.003002 appartient à root. Il suffit de donner les droit à deboan-spamd (on lui "donne" le dossier") :

Il faut lancé un: sudo chown -R debian-spamd:debian-spamd /var/lib/spamassassin/

Pour que /var/lib/spamassassin appartiennent à debian-spamd et que le cron fonctionne ;)

beudbeud commented 10 years ago

je viens de faire un nouveau paquet il est dispo dans le repo test avec la correction des droits. Pouvez vous me dire si ça corrige le problème?

Kloadut commented 10 years ago

Guys english please ;)

julienmalik commented 10 years ago

With the latest packaging update, I now have :

admin@yunohost:~$ ll /var/lib/spamassassin/3.003002/updates_spamassassin_org/10_default_prefs.cf
-rw-r--r-- 1 debian-spamd debian-spamd 8698 Mar 28 12:01 /var/lib/spamassassin/3.003002/updates_spamassassin_org/10_default_prefs.cf
julienmalik commented 10 years ago

But I don't see anything related in the commit history

julienmalik commented 10 years ago

Works for me. No more noisy crons since a few days now. Thank.