Skip to main content

Elevate process and DNSONLY servers

Answered

Comments

11 comments

  • cPRex Jurassic Moderator

    Hey there!  I wouldn't bother with any of that, as upgrading a DNSOnly system in that way is not supported.  I would just create new DNSOnly servers, add them to the cluster.  You can then remove the old servers and completely shut them off once you know the cluster is working.

    0
  • User404

    Elevate script doesn't support DNSONLY upgrades? I read this thread earlier and the user said it worked fine. Is something changed after that?

    https://support.cpanel.net/hc/en-us/community/posts/21800746897047-Using-ELevate-on-a-DNSOnly-server-in-a-DNS-cluster

    --------------

    If I create a new DNSONLY server and add it to the DNS cluster. After that I have to add the new DNS server to all our domains, right? That's out of the question. Or am I missing something how the process goes? Every domain has two NS records.

    My goal is to replace the old cpns1.domain.tld and cpns2.domain.tld DNSONLY servers:

    - keeping the old IP-addresses
    - keeping the old server names
    - keeping the data (all the zones)
    - everything should change behind the scenes, no changes required to the domains.

    If the Elevate script is able to upgrade a DNSONLY server. Please answer the questions in my first post.

    0
  • cPRex Jurassic Moderator

    I did confirm with the ELevate team that a DNSOnly upgrade should work just fine!  I'm also going to see if we can get that added to the documentation somewhere to avoid future confusion.

    For your specific questions:

    1 - The only reason you may want to remove it is to avoid slowness of DNS queries.  If a query gets directed to the server during the ELevate process it will just bounce to the next one, but of course there would be a slight delay there.

    2 - I wouldn't expect this one to matter. DNSOnly machines could go offline for other reasons besides ELevate - in fact, that's the entire point of running a DNS cluster.  There may be a brief period where things our out of sync when it first comes back online, but the cluster will handle that gracefully and will resync soon.

    3 - Yes

    4 - Yes - you could run syncall command as outlined here:

    https://support.cpanel.net/hc/en-us/articles/4419555120407-How-to-Syncronize-DNS-records-to-a-cPanel-DNS-Cluster

    0
  • User404

    Thank you cPRex. And thanks to the Elevate team. They have done a superior job with the script.

    I've successfully upgraded the first DNSONLY server (cpns1.domain.tld, running CentOS 7) to Almalinux 8. I had one blocker. After that, Elevate script worked fine. Everything seemed fine after the upgrade. The DNS cluster is answering and working.

    A few keynotes:
    - I did not remove the cpns1.domain.tld server from the cluster
    - I made a firewall rule to block access on cPanel port 2083. Just in case. I had that option.
    - Upgrade process was fast. Downtime was minimal.

    The second server is waiting next.

    0
  • cPRex Jurassic Moderator

    Nice - glad to hear it went so well!

    0
  • Benito

    Hi! I wanted to run Elevate on a DNSONLY server to avoid a full reinstallation. If it fails, well, then I'll do the reinstall. I'm reaching out because I can’t move forward, I think it’s because it’s asking me for MySQL, but I’m not sure, and a DNSONLY server doesn’t have MySQL. Do you know how to solve this?

    root@ns2:~# /scripts/elevate-cpanel --check
    * 2025-11-26 14:27:22 [INFO] Running: /usr/local/cpanel/scripts/check_cpanel_pkgs --list-only
    * 2025-11-26 14:27:22 [INFO]
    * 2025-11-26 14:27:35 [INFO]
    * 2025-11-26 14:27:35 [WARN] MySQL is disabled. This must be enabled for the upgrade to succeed.
      We temporarily will enable it when it is needed to be enabled,
      but we recommend starting the process with MySQL enabled.
    * 2025-11-26 14:27:35 [INFO] Running: /usr/bin/apt-get clean
    * 2025-11-26 14:27:35 [INFO]
    * 2025-11-26 14:27:35 [INFO]
    * 2025-11-26 14:27:35 [INFO] Running: /usr/bin/apt-get update
    * 2025-11-26 14:27:35 [INFO]
    * 2025-11-26 14:27:35 [INFO] Get:1 https://repo.mysql.com/apt/ubuntu focal InRelease [12.8 kB]
    * 2025-11-26 14:27:35 [INFO] Err:1 https://repo.mysql.com/apt/ubuntu focal InRelease
    * 2025-11-26 14:27:35 [INFO]   The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
    * 2025-11-26 14:27:36 [INFO] Hit:2 https://mirror.hetzner.com/ubuntu/packages focal InRelease
    * 2025-11-26 14:27:36 [INFO] Hit:3 https://mirror.hetzner.com/ubuntu/packages focal-updates InRelease
    * 2025-11-26 14:27:36 [INFO] Hit:4 https://mirror.hetzner.com/ubuntu/packages focal-backports InRelease
    * 2025-11-26 14:27:36 [INFO] Hit:5 https://mirror.hetzner.com/ubuntu/security focal-security InRelease
    * 2025-11-26 14:27:36 [INFO] Get:6 http://httpupdate.cpanel.net/ea4-u20-mirrorlist Mirrorlist
    * 2025-11-26 14:27:36 [INFO] Hit:7 http://208.74.123.61/cpanelsync/repos/Ubuntu/20/EA4 ./ InRelease
    * 2025-11-26 14:27:36 [INFO] Get:8 http://httpupdate.cpanel.net/cpanel-plugins-u20-mirrorlist Mirrorlist
    * 2025-11-26 14:27:36 [INFO] Hit:9 http://63.247.64.58/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease
    * 2025-11-26 14:27:39 [INFO] Fetched 15.2 kB in 1s (19.5 kB/s)
    * 2025-11-26 14:27:40 [INFO] Reading package lists...
    * 2025-11-26 14:27:40 [INFO] W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
    * 2025-11-26 14:27:40 [INFO] W: Failed to fetch https://repo.mysql.com/apt/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
    * 2025-11-26 14:27:40 [INFO] W: Some index files failed to download. They have been ignored, or old ones used instead.
    * 2025-11-26 14:27:40 [INFO]
    * 2025-11-26 14:27:40 [ERROR] '/usr/bin/apt' failed to return cleanly. This could be due to a temporary
      mirror problem, or it could indicate a larger issue, such as a broken
      list. Since this script relies heavily on apt, you will need to address this
      issue before upgrading.

      If you need assistance, open a ticket with cPanel Support, as outlined here:

      https://docs.cpanel.net/knowledge-base/technical-support-services/how-to-open-a-technical-support-ticket/
    * 2025-11-26 14:27:40 [ERROR] W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
      W: Failed to fetch https://repo.mysql.com/apt/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
      W: Some index files failed to download. They have been ignored, or old ones used instead.
    * 2025-11-26 14:27:40 [INFO] Running: /usr/bin/apt-mark showhold
    * 2025-11-26 14:27:40 [INFO]
    * 2025-11-26 14:27:40 [INFO]
    * 2025-11-26 14:27:40 [INFO] Checking EasyApache profile compatibility with Ubuntu 22.04.
    * 2025-11-26 14:27:40 [WARN] Skipping EA4 backup. EA4 does not appear to be enabled on this system
    * 2025-11-26 14:27:41 [WARN] Please fix the detected issues before performing the elevation process.
      Read More: https://cpanel.github.io/elevate/blockers/
    root@ns2:~#

    0
  • cPRex Jurassic Moderator

    In general, I would think creating a new DNSOnly system, adding it to the cluster, and removing the previous system would be quicker than performing ELevate, plus you'd ensure everything was fresh and new.  The update *should* work alright, but there really shouldn't be any customizations on a DNSOnly machine that would require ELevate instead of a new system.

    Have you tried the workaround mentioned here?

    https://support.cpanel.net/hc/en-us/articles/4419382481815-MySQL-GPG-keys-expired-preventing-installation-upgrade-of-MySQL-packages-from-the-official-repository

     

    0
  • Benito

    Yes, I understand, but I wanted to avoid it. Do you have any guide to do it while preserving the IP and name?

    0
  • cPRex Jurassic Moderator

    Fixing the MySQL issues will be the best plan to move forward.

    0
  • Benito

    Yes, I managed to solve the MySQL issue with this help.

    Apt update falling with error: The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com> – cPanel

     It seems that everything is ready to elevate now. I’ll try it over the weekend.

    0
  • cPRex Jurassic Moderator

    Glad to hear it!

    0

Please sign in to leave a comment.