• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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