• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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.

Resolved system update fail daily

Keiesu

New Pleskian
Hello,

I fail daily scheduled system safe update.
Error Description: [Errno 256] No more mirrors to try.
Update from Plesk GUI also fail.

Plesk auto-update is off.

I run the below command.
(1) rm -fr /var/cache/yum/*
(2) yum clean all
Then when I check for update, all applications are reported as up to date.
However, the next day's automatic update fails.
The application to be updated is the same as the previous day.
It seems that the manual update was not possible either.

The repository of the application to be updated is (PLESK_18_0_29-dist).
The repository for the latest version of the application is (PLESK_18_0_29-extras).
(PLESK_18_0_29-extras) is created by "yum clean all".

OS and Plesk Version:
CentOS Linux 7.8.2003 (Core)
Plesk Obsidian 18.0.29 Update #1

Thank you in advance.
 
Try to add to /etc/hosts line

46.46.180.72 autoinstall.plesk.com
 
I set /etc/hosts yesterday.
There were no system update errors today.
But there is a new error.

/etc/cron.daily/drweb-update:
ERROR: Dr.Web Updater: failed to download files !


I checked for updates from Plesk GUI.
The following error was displayed.

Internal error
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->


Today's update check date and time was a few hours later than usual.
I think today's update was also timed out.

Thank you in advance.
 
#/etc/cron.daily/drweb-update:
ERROR: Dr.Web Updater: failed to download files !

Please try this:
Code:
/opt/drweb/update.pl

You should see then something like this:
Code:
Dr.Web update details:
Update server: http://update.drweb.com/plesk/700/unix
Update has begun at Tue Sep  1 07:41:53 2020
Update has finished at Tue Sep  1 07:42:01 2020

Following files have been updated:
        /var/drweb/bases/drwtoday.vdb
        /var/drweb/bases/dwmtoday.vdb
        /var/drweb/bases/dwntoday.vdb
        /var/drweb/bases/dwrtoday.vdb
        /var/drweb/bases/timestamp
        /var/drweb/updates/timestamp
 
Thank you m3lezZ.

The results are as follows.
Code:
Dr.Web update details:
Update server: http://update.drweb.com/plesk/700/unix
Update has begun at Tue Sep  1 15:43:03 2020
Update has finished at Tue Sep  1 15:43:12 2020

Following files have been updated:
        /var/drweb/bases/drw700f5.vdb
        /var/drweb/bases/drwdaily.vdb
        /var/drweb/bases/drwtoday.vdb
        /var/drweb/bases/dwmtoday.vdb
        /var/drweb/bases/dwntoday.vdb
        /var/drweb/bases/dwrtoday.vdb
        /var/drweb/bases/timestamp
        /var/drweb/updates/timestamp

Registering with cron is not a problem.
/etc/cron.daily/drweb-update:
Code:
#!/bin/sh

update_scr="/opt/drweb/update.pl"

outfile=`mktemp /tmp/drweb-update.XXXXXX`
[ -x "${update_scr}" ] || exit 0

trap 'rm -f $outfile;' TERM INT EXIT

"${update_scr}" >$outfile 2>&1
rc=$?

[ $rc -eq 0 ] || cat $outfile
exit $rc

Is it due to the plesk update timeout?
 
Hm, i dont think so, could you please check if it runs succesfully while the next shleuded task and leave a feedback here if this sloved the problem?
 
It's from Plesk GUI.
There were no issues with system updates for a few days after updating to "18.0.29 Update #1".
 
Have you tried to install latest micro-updates via CLI?

Run
Code:
plesk installer
 
Does it update plesk?
I don't want to update plesk any more.
I want to update non-plesk packages (called system packages).
 
To update system packages manually:

  1. Go to Tools & Settings > Server Management > System Updates > Available Updates.
    For each package in the list, you can view the following details:
    • The details about an available update. To view it, click this update in the Updates column.
    • The details about a package. To view it, click this package name in the Package column.
  2. Update all or selected packages
    • To update all packages for which updates are available, click Update All.
    • To update specific packages, select one or more packages in the list and click Update.
To update locked packages:

If some packages are locked, you can still update them:

  1. In System Updates, click Update (to update only the selected packages) or Update All.
  2. Select the option Unlock the packages to allow this update only in the Update Packages window.
To lock packages to prevent them from updating:

In Tools & Settings > System Updates, select one or more packages and click Lock.

Locked packages are not updated automatically in System Updates during automatic updating. However, you can update them manually. To do so, select them and click Update and then select Unlock the packages to allow this update only. Another way to update such packages is by using the native operating system means.

If there are other packages that depend on a locked package, Plesk will ask you if you allow the update of a locked package.

To unlock packages for updates:

In Tools & Settings > System Updates, select one or more locked packages and click Unlock.



The log of system package updates is located in /var/log/plesk/systemupdatestool.log
 
Last edited:
@Keiesu Great, accurate advice from @m3lezZ as always.
FWIW & depending on the number of servers you are running, an alternative is to do all updates (that's both OS and Plesk) via CLI
Go to https://**Your-Domain**:8443/admin/pum/settings and deselect the two "automatically install XYZ" options & save those changes. Then via CLI, you can; at any time to suit you / after you've taken a full back up or server snapshot in advance / choose to run OS and Plesk updates in which ever order you wish.

If you're happy & have sufficient previous experience using CLI, it's often faster than the GUI alternative. Not for everyone but a valid alternative.
 
Thank you m3lezZ.

On my Plesk GUI, that way updates will show a timeout.
systemupdate.jpg


There were no Dr. Web Updater errors today.

The log for today's automatic update is attached.
In the logs, it seems that the automatic update was successful.
However, it seems that the php that was excluded by "yum.conf" is also included in the update.
/etc/yum.conf
exclude=kernel* php* libsmbios smbios-utils-bin

Thank you in advance.
 

Attachments

  • systemupdatestool.zip
    100.3 KB · Views: 1
Hello @Keiesu

To install all available updates within the current Plesk version, including updates for components such as MySQL or PHP, use the following command:

Code:
plesk installer install-all-updates

If you want to install only Plesk updates, use the following command:

Code:
plesk installer install-panel-updates

In this case, components such as MySQL and PHP will not be updated unless it is required for proper Plesk functioning.
 
Thank you m3lezZ.

I don't want to update Plesk or PHP from the current version.
I want to auto-update CentOS and related packages for security.

The "yum.conf" exclusion setting (kernel* php*) was added by me as intended.

In the logs, it seems like PHP is included in the update target.
Doesn't the "yum.conf" exclusion setting work in Plesk?
 
Plesk does not do any release upgrades for OS.
In case of CentOS, it supports only package updates in the same release.
For Example, it is possible to update CentOS 6 version up to 6.9 and CentOS 7 up to 7.4, 7.8 by running 'yum update'
 
Othervise you can use yum-cron. The yum-cron package allows you to automatically run the yum command as a cron job to check for, download, and apply updates.
Code:
sudo yum install yum-cron
Once the installation is complete, enable and start the service:
Code:
sudo systemctl enable
yum-cronsudo systemctl start yum-cron
To verify that the service is running, type the following command:
Code:
systemctl status yum-cron
yum-cron comes with two configuration files that are stored in the /etc/yum directory. One is the hourly configuration-file the other the daily configuration file. by default daily cron is set to downlaod and install the updates, hourly cron is configured to do nothing by default.
 
Back
Top