• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue 'run-parts: /etc/cron.daily/60sa-update' in my mailbox today?

jmar83

Regular Pleskian
Why?

Screenshot here:


Unbenannt.jpg


What is "sa" from "60sa-update" ?

Thank you very much for your feedback.
 
Hi

Thank you for your feedback.

1.) I don't have that mail daily

2.) It has an exit code that not equals 0 which implies an error or at least a warning (which must not imply a problem in every case)

3.) The file /var/log/sa-update.log seems to be huge, but on the last line i see:

Unbenannt0.jpg
 
You can disable the sa-update execution by moving 60sa-update file from /etc/cron.daily to a different location:

# mv /etc/cron.daily/60sa-update /root
 
This is an OS notification. If you don't want it either move the /etc/cron.daily/60sa-update as Igor said or add an empty MAILTO="" in the script (this can be overwritten by an upcoming Plesk update):

Code:
#!/bin/bash
MAILTO=""
### Copyright 1999-2022. Plesk International GmbH. All rights reserved.

sa_update()
{
 
@maartenv : Thank you very much.

@IgorG : Regarding your link to the other thread with PERL source code: What do you think about that hotfix solution?

Perl:
sub read_content {
  my ($file_name, $binary_mode) = @_;
  my $content;

  my $file = IO::File->new;
 
 
  # Custom {
  if (-e $file_name) {
    #print "File $file_name exists!\n";
    
    
    # Original source code {
    $file->open($file_name, '<') or die "Cannot open file $file_name: $!";
  if ($binary_mode) {
    binmode $file;
  }
 
  my($number_of_bytes,$buffer);
  $content = '';
  while (($number_of_bytes = $file->read($buffer, 16384)) > 0) {
    $content .= $buffer;
  }
  defined $number_of_bytes or die "Error reading from file $file_name: $!";
  $file->close or die "Error closing $file_name: $!";
    # } Original source code
    
    
    
  }
  else {     
    #print "File $file_name does not exist!\n";
    my $logfile = '/var/log/sa-update-userlog.log';   
    my $str = "File $file_name does not exist!";       
    open(FH, '>', $logfile);
    print FH $str;
    close(FH);
  }
  # } Custom
 

  return $content;
}


if (-e $file_name) ... else ... is MY code and the code in "if" condition is still the same as original :)
 
Back
Top