• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Cron problem

R

RonnyG

Guest
Hi,

I have a problem with the cronjob:

run-parts: /etc/cron.daily/60sa-update exited with return code 1

I already fixed header (missing !#) nethertheless, it still does not work.
sa-learn is available and while executing 60sa-update manually, it works.
Any ideas left ?

Thanks
Ronny
 
sa-update returns 1

Yeah, saw the same problem after fixing the #! shebang in the 60sa-update script. It's returning a 1 because that is what sa-update is configured to do if there are no updates pending.

The last 2 lines of sa-update --debug output:
[17443] dbg: channel: current version is 895075, new version is 895075, skipping channel
[17443] dbg: diag: updates complete, exiting with code 1

Also from the sa-update man page:
EXIT CODES
An exit code of 0 means an update was available, and was downloaded and installed successfully if --checkonly was not specified.
An exit code of 1 means no fresh updates were available.

I don't know why the spamassassin project decided to return an exit of 1 for sa-update when no updates are available. But that's what is happening -- it's not an error, but the Plesk script doesn't know any better and sends an alert email anyway.
 
Back
Top