• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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