• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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