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 directoryThis error is typically caused when the dnf process is interrupted — for example, by rebooting the server during elevation, which should never be done.
Solution
Section titled “Solution”Confirm the brotli library is missing:
stat /lib64/libbrotlidec.so.1.0.6If 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.rpmrpm -Uvh --force --nodeps brotli-1.0.6-3.el8.x86_64.rpmThen resume the ELevate process:
/scripts/elevate-cpanel --continue