Knowledgebase

Cloudlinux servers that rolled back to snapshot after failed elevate have their channel switched Print

  • 0

Symptom

Package updates fail with the following error after an attempted ELevate fails, and the system is rolled back to a snapshot.

Error: Invalid version flag: if

 

Description

When the system is rolled back, the release channel and cloudlinux-release package remain on CloudLinux 8.

 

Workaround

  1. Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. Install the CloudLinux 7 cloudlinux-release package.
    rpm -Uvh --oldpackage https://repo.cloudlinux.com/cloudlinux/7.9/updates-testing/x86_64/Packages/cloudlinux-release-7.9-2.9.el7.x86_64.rpm
  3. Change the release channel to CloudLinux 7.
    /usr/sbin/cln-switch-channel -t 7 -o -f
  4. Reregister the server in CLN.
    clnreg_ks --force

     

Additional Resources:

How to log into server using SSH?

How do I access the terminal within WHM?


Was this answer helpful?
Back

Send Message