• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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