• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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