When a cPanel and WHM update fails or seems stuck, the reason is almost always in the newest upcp log. upcp (short for “update cPanel”) is the script that runs every cPanel update, including the nightly one. When it fails, the server usually keeps working on the old version, so the problem is easy to ignore. It still matters, because a server that stops updating also stops getting security fixes. Read the first error in the log and fix that one cause. It is most often a full disk, a package manager in a bad state, or blocked network access. Then rerun upcp inside a screen session, so a dropped SSH connection cannot interrupt it, and confirm the version the server ends up on.
What you’ll accomplish
- Tell the difference between an update that is still running and one that really failed.
- Find the newest upcp log and the first error line that names the cause.
- Fix the common causes: a full disk, a locked or broken package manager, a conflicting third-party repository, blocked outbound access or a license problem.
- Rerun the update safely, so a dropped SSH connection cannot interrupt it.
- Confirm the installed version matches your update tier, and know when to hand the problem to cPanel support.
Prerequisites
You need root SSH access to the server. WHM alone is not enough for most of these checks. The commands assume a current cPanel version on AlmaLinux, Rocky Linux or CloudLinux 8 or 9, which use dnf as the package manager. On older CentOS 7 or CloudLinux 7 servers, replace dnf with yum; the subcommands shown here work the same way.
You also need screen or tmux, two tools that keep a terminal session alive after you disconnect. Check with which screen tmux. If neither prints a path, install one with dnf install screen.
It helps to know which update tier the server follows. A tier is the release channel, such as STABLE or RELEASE, that decides which version upcp installs. Our guide to cPanel update tiers explains each one.
How it works
Each night, a cron job (a scheduled task) in root’s crontab starts /usr/local/cpanel/scripts/upcp, also reachable as /scripts/upcp. It reads /etc/cpupdate.conf to learn the tier and whether automatic updates are on. It then downloads the new cPanel files from cPanel’s update servers at httpupdate.cpanel.net, installs updated system packages through the package manager, and runs a long list of maintenance scripts.
Every run writes its own log in /var/cpanel/updatelogs/, named update.<timestamp>.log. The timestamp is a Unix time, the number of seconds since 1970, so a higher number means a newer run. While it runs, upcp holds a lock so that a second copy cannot start on top of it.
Because upcp depends on disk space, the package manager, the network and a valid license, a problem in any of them can stop it. The diagram shows the order to check them in.
Step-by-step
1. Check whether upcp is still running. A full update can take 20 to 60 minutes, and longer on a busy server. What looks stuck may still be working.
ps aux | grep -E '[u]pcp|[u]pdatenow'
If you see lines that mention upcp (often shown as cPanel Update (upcp)), the update is still running. Leave it alone and follow the log from step 2 with tail -f. Do not start a second run. If the command prints nothing, no update is running and you can go on.
upcp also keeps a lock file with its process ID. On current versions it is /var/run/upcp.pid.
ls -l /var/run/upcp.pid 2>/dev/null && cat /var/run/upcp.pid
No output means no lock, which is normal when nothing runs. If the file exists but ps -p <PID> shows no such process, the lock is stale. upcp normally detects that on its next run. Only move the file aside (mv /var/run/upcp.pid /root/upcp.pid.stale) if a new run refuses to start and ps confirms nothing is running.
2. Open the newest log. List the logs, newest first.
ls -lt /var/cpanel/updatelogs/ | head -5
You should see files like update.1727150401.log. Take the top one and search it for errors.
LOG=$(ls -t /var/cpanel/updatelogs/update.*.log | head -1)
grep -inE 'error|fail|fatal|block' "$LOG" | head -20
tail -30 "$LOG"
Read the first error, not the last. Later errors are usually knock-on effects of the first one. A successful run ends with a completion message and no errors just before it. A failed run usually stops with a message that names a script, a package or a URL. Keep that line in front of you for the next steps.
3. Check disk space and inodes. The update downloads packages into /var, installs into /usr/local/cpanel, and uses /tmp while it works. A full disk is the most common cause of a failed update.
df -h / /usr /var /tmp
df -i / /usr /var /tmp
Look at the Use% column in both outputs. df -h shows space, and df -i shows inodes, the entries a filesystem uses to track files; you can run out of them while space remains. Anything at 95% or more is a problem. Aim for at least 5 GB free on each filesystem that holds these paths before you rerun. Often they all sit on /. If space is short, our guide on what to do when Linux says no space left on device walks through finding and clearing it safely.
4. Check the package manager. upcp installs system packages through dnf. If another dnf or rpm process holds the lock, or the package database is damaged, the update fails.
ps aux | grep -E '[d]nf|[y]um|[r]pm '
dnf check
The first command should print nothing. If it shows an old dnf process, find out what started it before you stop it. It may be another admin, or a stuck automatic update. dnf check prints nothing when the package database is consistent. Lines about duplicate or missing packages mean it needs repair.
Then clear the cached repository data and rebuild it.
dnf clean all
dnf makecache
Expected output is a line like 25 files removed, then Metadata cache created. An error that names a repository means that repository is broken or unreachable. That leads to the next check.
5. Look for third-party repository conflicts. Extra repositories can offer packages with the same names as cPanel’s, such as PHP, MySQL or Perl builds, and dnf may pick the wrong one.
dnf repolist enabled
Compare the list with the error from step 2. If the error names a package from a repository you added yourself, disable that repository for now. Open its file in /etc/yum.repos.d/ and set enabled=0. Rerun dnf makecache to confirm the error is gone.
6. Repair damaged cPanel packages. If the log mentions a damaged RPM database (errors such as rpmdb open failed), cPanel ships a repair script for it.
/usr/local/cpanel/scripts/find_and_fix_rpm_issues
It checks the RPM database and rebuilds it if needed. Then check the cPanel-managed packages themselves.
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
It reinstalls any cPanel package whose files are missing or altered. When it finishes without listing problems, the packages are clean.
7. Check network access and the license. upcp must reach cPanel’s update servers over HTTP on port 80, and the server must hold a valid license.
dig +short httpupdate.cpanel.net
curl -s -o /dev/null -w '%{http_code}\n' --max-time 15 http://httpupdate.cpanel.net/
The first command should print one or more IP addresses. The second should print a three-digit HTTP code such as 200 or 403; any code means the server was reached. 000 means the connection failed. Check your outbound firewall rules, including CSF (ConfigServer Security and Firewall) if you use it, and any upstream network firewall.
Then refresh the license.
/usr/local/cpanel/cpkeyclt
A healthy result ends with Update succeeded. If it reports that the license is invalid or expired, follow our cPanel license check and fix runbook before going further.
8. Check the update settings. Confirm the tier and schedule are what you expect.
cat /etc/cpupdate.conf
You will see lines such as CPANEL=release and UPDATES=daily. UPDATES=manual or UPDATES=never stops the nightly run, and that can explain why nothing seems to happen. If you want to change tier, read switching cPanel update tiers safely first, because a tier change can move you to a new major version.
9. Rerun the update inside screen. The update runs for a long time. If you start it in a plain SSH session and the connection drops, the update is cut off halfway. Start a named session first.
screen -S upcp
/scripts/upcp --force
--force runs the update even if upcp thinks the server is already current. Output scrolls for a long time. You can detach with Ctrl-a then d and reattach later with screen -r upcp. With tmux, use tmux new -s upcp, detach with Ctrl-b then d, and reattach with tmux attach -t upcp.
The run is done when the prompt comes back. A new update.<timestamp>.log appears in /var/cpanel/updatelogs/ for this run.
Validate it works
First, confirm the new log finished cleanly.
LOG=$(ls -t /var/cpanel/updatelogs/update.*.log | head -1)
grep -icE 'error|fatal' "$LOG"
tail -5 "$LOG"
The last lines should show the update completed. A count of 0 is ideal. A few harmless matches can appear in package names, so read any that show up.
Next, check the installed version.
/usr/local/cpanel/cpanel -V
cat /usr/local/cpanel/version
Output looks like 126.0 (build 26) and 11.126.0.26. Compare it with the version your tier currently offers.
curl -s http://httpupdate.cpanel.net/cpanelsync/TIERS | grep -i "$(grep ^CPANEL= /etc/cpupdate.conf | cut -d= -f2)"
The version on that line should match yours. Finally, log in to WHM and open a few pages. If WHM or cPanel behaves oddly after the update, restart the cPanel service daemon (cpsrvd, the process that serves WHM and cPanel).
/usr/local/cpanel/scripts/restartsrv_cpsrvd
It should end with a status line showing cpsrvd is running. Other services have matching scripts in the same folder, such as restartsrv_httpd for Apache.
Troubleshooting
The log says the update is blocked. upcp refuses to install a version that does not support your operating system. For example, cPanel version 110 was the last one to support CentOS 7. The log line names the reason. The fix is an operating system upgrade, or staying on a tier that still supports your system, not a forced run.
upcp dies partway and leaves cPanel half-updated. Rerun it with /scripts/upcp --sync. That reinstalls the files for the version already installed instead of moving to a newer one. Once it completes, run /scripts/upcp --force again.
The disk fills again during the update. Check what grows while it runs with du -sh /var/cache/dnf /usr/local/cpanel /tmp. A small /tmp or /var on its own partition is a common cause. Clear space there or move large files off it.
dnf fails with a GPG key or signature error. A GPG key is the signature a repository uses to prove its packages are genuine. The error names the repository. If it is a third-party repository, disable it as in step 5. If it is a cPanel or operating system repository, run dnf clean all and try again. A proxy that alters downloads can also cause this.
The same error comes back after every fix. Stop and open a ticket with cPanel technical support from WHM or at support.cpanel.net. Attach the newest log and the output of /usr/local/cpanel/cpanel -V. cPanel’s own documentation also covers each script used here. If a recent update broke a customer site rather than failing, see our guide on rolling back a cPanel update.
When this is the wrong approach
If the update succeeded but a customer site or plugin broke afterwards, this guide does not apply. The update did its job; the fix is on the application side.
If the server runs an operating system that cPanel no longer supports, forcing reruns will not help. Plan the operating system upgrade or a migration to a new server.
If the server is in the middle of an incident, such as a compromise or a failing disk, stabilize it first. An update adds changes you do not need during an incident.
Finally, if updates fail every few weeks, the real problem is usually capacity or drift, such as partitions that are too small or repositories nobody remembers adding. Fix that pattern once rather than treating each failure on its own.
If this is the kind of work you’d rather never own again, it’s the daily job of Managed Cloud Ops — book an infrastructure review.