Attempt to upgrade SolusVM to a new version with PHP 7.3 support fails on CentOS 6 node

Applicable to:

  • SolusVM

Symptoms 

Attempt to upgrade SolusVM to a new version with PHP 7.3 support using this article fails on CentOS 6 node:

CONFIG_TEXT: 2021-01-02 01:11:37 (10.6 MB/s) - `/usr/local/solusvm/tmp/updatemirrorlist.txt' saved [162/162]

Something went wrong, check /var/log/yum.log

The following errors in /tmp/update.log file

CONFIG_TEXT: Error: Cannot find a valid baseurl for repo: base

Cause

CentOS 6 reached its End-Of-Life and standard baseurls/mirrors are no longer available, as a result it causes issues with yum package manager

Resolution

Update repository settings and use CentOS Vault Repository

  1. Connect to CentOS 6 node via SSH
  2. Create a backup of the original file:

    # mv /etc/yum.repos.d/CentOS-Base.repo /root/

  3. Repalce CentOS-Base.repo file with Vault repository configured:

    # curl https://raw.githubusercontent.com/solusvm-support/svm_patches/master/CentOS-Base.repo --output /etc/yum.repos.d/CentOS-Base.repo

  4. Apply theses settings on all CentOS 6 nodes. After that continue with upgrade further.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.