Skip to content

cPanel ELevate fails on stage four: libbrotlidec.so.1 not found

During the cPanel ELevate process, stage four fails with a dnf error including:

ImportError: libbrotlidec.so.1: cannot open shared object file: No such file or directory

This error is typically caused when the dnf process is interrupted — for example, by rebooting the server during elevation, which should never be done.

Confirm the brotli library is missing:

stat /lib64/libbrotlidec.so.1.0.6

If you see No such file or directory, manually install the brotli package:

wget http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/brotli-1.0.6-3.el8.x86_64.rpm
rpm -Uvh --force --nodeps brotli-1.0.6-3.el8.x86_64.rpm

Then resume the ELevate process:

/scripts/elevate-cpanel --continue