• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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