Bobcares

Plesk update error on CentOS 7 GCP – How to fix

by | Jun 15, 2021

Wondering how to fix Plesk update error on centos 7 GCP? We can help you.

Often CentOS 7 users with the Plesk panel report to us that they get errors while trying to update their Plesk. Thus preventing them to update their Plesk.

Here at Bobcares, we handle requests from our customers to fix similar errors as a part of our Server Management Services. Today we will see how our Support Engineers do this for our customers.

What causes Plesk update error on CentOS 7 GCP

At times while trying to update Plesk on CentOS 7 in Google Cloud platform we may end up with the following error message:

NoMoreMirrorsRepoError: failure: repodata/repomd.xml from google-cloud-sdk: [Errno 256] No more mirrors to try.
https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for google-cloud-sdk
Error: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
-------------------------------------------------------------------
NoMoreMirrorsRepoError: failure: repodata/repomd.xml from google-cloud-compute: [Errno 256] No more mirrors to try. https://packages.cloud.google.com/yum/repos/google-cloud-compute-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for google-cloud-compute Error: The Yum utility failed to install the required packages.
-------------------------------------------------------------------
NoMoreMirrorsRepoError: failure: repodata/repomd.xml from google-cloud-logging: [Errno 256] No more mirrors to try. https://packages.cloud.google.com/yum/repos/google-cloud-logging-el7-x86_64-all/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for google-cloud-logging Error: The Yum utility failed to install the required packages.

Now we will see what causes this error.

Cause:

One of the common causes for this update error is the Google Cloud SDK/Compute repository being misconfigured.

How to Fix This Error

We will see how our Support Engineers fix this error for our customers.

For fixing this error we must disable repository GPG key checking in the yum repo configuration.

We can do this by setting the following in the yum repo configuration.

repo_gpgcheck=0Copy Code

In supported Compute Engine base images, this setting might be found in the following file:

/etc/yum.repos.d/google-cloud.repoCopy Code

However, in the VM we can have this set in different repository configuration files or automation tools.

The yum repositories do not usually use GPG keys for repository validation. Instead, it uses

httpsCopy Code
endpoint as a trusted one.

Furthermore, for locating and updating this setting, we can use the following steps:

  1. Firstly, we must check for the setting in the
    /etc/yum.repos.d/google-cloud.repoCopy Code
     file.
  2. For checking we can use the following command:
    cat /etc/yum.repos.d/google-cloud.repo
    
    [google-compute-engine]
    name=Google Compute Engine
    baseurl=https://packages.cloud.google.com/yum/repos/google-compute-engine-el7-x86_64-stable
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
       https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    [google-cloud-sdk]
    name=Google Cloud SDK
    baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
       https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    Copy Code
  3. After that, we must replace all lines that have 
    repo_gpgcheck=1Copy Code
     to 
    repo_gpgcheck=0Copy Code
    .
  4. This can be easily done using the following command:
    sudo sed -i 's/repo_gpgcheck=1/repo_gpgcheck=0/g' /etc/yum.repos.d/google-cloud.repoCopy Code
  5. Finally, we can check once whether the changes made are updated.
    For this we can use the following command:

    cat /etc/yum.repos.d/google-cloud.repo
    
    [google-compute-engine]
    name=Google Compute Engine
    baseurl=https://packages.cloud.google.com/yum/repos/google-compute-engine-el7-x86_64-stable
    enabled=1
    gpgcheck=1
    repo_gpgcheck=0
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
       https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    [google-cloud-sdk]
    name=Google Cloud SDK
    baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
    enabled=1
    gpgcheck=1
    repo_gpgcheck=0
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
       https://packages.cloud.google.com/yum/doc/rpm-package-key.gpgCopy Code

[Need assistance? We can help you]

Conclusion

In short, we saw how our Support Techs fix Plesk update error on centos 7 GCP for our customers.

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Speed issues driving customers away?
We’ve got your back!