Symptoms
When creating cPanel backups over NFS, the cPanel backup script will fail to generate a backup with Permission denied at bin/pkgacct.pl line 2037.
CONFIG_TEXT: [2026-06-22 13:00:13 -0500] Copy userdata...[2026-06-22 13:00:13 -0500] mkdir /backupnfs/2026-06-22/accounts/username/userdata/scope/ui_prefs: Permission denied at bin/pkgacct.pl line 2037.
[2026-06-22 13:00:13 -0500] warn [backup] (XID nzxr6y) “/usr/local/cpanel/bin/pkgacct” reported error code “1” when it ended:
Cause
The cPanel pkgacct script is unable to copy the scope folder within a cPanel user's userdata folder. We have opened a case for our development team to review further. The cPanel case ID is CPANEL-54133.
Resolution
- Access your WHM server as the
rootuser via the WHM or through a terminal application. Back up the userdata folder.
# cp -Rav /var/cpanel/userdata{,.backup
Move the user scope files.
# for d in /var/cpanel/userdata/*/; do u=$(basename "$d"); [ -e "${d}scope" ] && mkdir -p "/root/user_scope/$u" && mv "${d}scope" "/root/user_scope/$u/"; done
Run a new backup
# /usr/local/cpanel/bin/backup --force
Comments
0 comments
Article is closed for comments.