When trying to upgrade from CentOS to AlmaLinux, cPanel 110 and earlier might experience the following error:
[INFO] E Sysup: Needed system packages were not installed: ea-cpanel-tools, ea-profiles-cpanel
2023-01-07 15:33:16 (3929) [INFO]
2023-01-07 15:33:16 (3410) [WARN] /scripts/sysup failed, please fix it and rerun it before upgrading.
2023-01-07 15:33:16 (2727) [WARN] *** Elevation Blocker detected: ***
This is caused by the following script:
The issue is invalid JSON in the package manifest.
Edit /etc/cpanel/ea4/profiles/pkg-manifest.json and remove the extra comma at the end of any list, for example:
<snip> "ea4-legacy", "yum-plugin-universal-hooks", "ea-php82-php-sourceguardian", <---- that comma ],
Then re-run Elevate and it should proceed.