• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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

Phantasia

Basic 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