• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Spam Assassin - 60sa-update exited with return code 2

Phantasia

New Pleskian
As the title says I receive an e-mail with subject: Cron <root@mail> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Content:
Code:
run-parts: /etc/cron.daily/60sa-update exited with return code 2

How can I fix this or can it be ignored?
 
Do you have any related error messages in /var/log/sa-update.log ?
 
There are many lines, maybe these give som hint:
Mar 21 05:15:00.109 [14559] dbg: generic: lint check of site pre files succeeded, continuing with channel updates
Mar 21 05:15:00.109 [14559] dbg: channel: protocol family available: inet,inet6
Mar 21 05:15:00.109 [14559] dbg: channel: file /var/lib/spamassassin/3.004002/updates_spamassassin_org/MIRRORED.BY is too old, refreshing mirrors file
Code:
Mar 21 05:15:00.110 [14559] dbg: channel: DNS lookup on mirrors.updates.spamassassin.org
Mar 21 05:15:00.111 [14559] dbg: http: url: http://spamassassin.apache.org/updates/MIRRORED.BY
Mar 21 05:15:00.111 [14559] dbg: http: downloading to: /var/lib/spamassassin/3.004002/updates_spamassassin_org/MIRRORED.BY, replace
Mar 21 05:15:00.111 [14559] dbg: util: executable for curl was found at /usr/bin/curl
Mar 21 05:15:00.111 [14559] dbg: http: /usr/bin/curl -s -L -O --remote-time -g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY -- http://spamassassin.apache.org/updates/MIRRORED.BY
Mar 21 05:15:00.166 [14559] dbg: http: process [14565], exit status: exit 0
Mar 21 05:15:00.167 [14559] dbg: channel: MIRRORED.BY file for channel updates.spamassassin.org retrieved
Mar 21 05:15:00.167 [14559] dbg: channel: parsing MIRRORED.BY file for channel updates.spamassassin.org
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.dnswl.org/ weight=3
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://www.sa-update.pccc.com/ weight=5
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.space-pro.be/ weight=1
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.ena.com/ weight=5
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.razx.cloud/ weight=5
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.fossies.org/ weight=1
Mar 21 05:15:00.167 [14559] dbg: channel: found mirror http://sa-update.verein-clean.net/ weight=10
Mar 21 05:15:00.168 [14559] dbg: channel: found mirror http://sa-update-asf.snb.it/ weight=5
Mar 21 05:15:00.168 [14559] dbg: channel: found mirror http://sa-update.spamassassin.org/ weight=10
Mar 21 05:15:00.171 [14559] dbg: channel: selected mirror http://sa-update.verein-clean.net
Mar 21 05:15:00.171 [14559] dbg: http: url: http://sa-update.verein-clean.net/1899079.tar.gz
Mar 21 05:15:00.171 [14559] dbg: http: downloading to: /var/lib/spamassassin/3.004002/updates_spamassassin_org/1899079.tar.gz, new
Mar 21 05:15:00.171 [14559] dbg: util: executable for curl was found at /usr/bin/curl
Mar 21 05:15:00.171 [14559] dbg: http: /usr/bin/curl -s -L -O --remote-time -g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o 1899079.tar.gz -- http://sa-update.verein-clean.net/1899079.tar.gz
Mar 21 05:15:00.230 [14559] dbg: http: process [14568], exit status: exit 22
Cannot open file /var/lib/spamassassin/3.004002/updates_spamassassin_org/1899079.tar.gz: No such file or directory at /usr/bin/sa-update line 1599.

Line 1599 in sa-update is:
Code:
  my $file = IO::File->new;
  $file->open($file_name, '<') or die "Cannot open file $file_name: $!";
  if ($binary_mode) {
    binmode $file;
  }
 
Edit: 1899079.tar.gz is actually not present in the folder /var/lib/spamassassin/3.004002/updates_spamassassin_org/
The folder permissions are set to rwxr-xr-x, group: root, owner: root
 
If you have SpamAssassin version 3.4.2 or older is in use:
Code:
# spamassassin -V
SpamAssassin version 3.4.2
running on Perl version 5.22.1
it is a SpamAssassin bug with ID #7662.

As soon as the bug is fixed on SpamAssassin and a newer version is available for your OS it will be installed by Plesk.
Until then please ignore these emails.
 
Thanks for the information! Yes, I'm running SpamAssassin version 3.4.2, I will wait until the update.
 
Self-cite: 'What do you think? "Proper" solution or not?'

-> Seems to work at least... :)

Output in file /var/log/sa-update-userlog.log when the SpamAssasin update fails (which happens sometimes due to unknown reasons for me!?):

Code:
root@xxx:~# cat /var/log/sa-update-userlog.log
File /var/lib/spamassassin/3.004002/updates_spamassassin_org/1899193.tar.gz does not exist!

So everything seems to be ok now... :)
 
Back
Top