You may get the following error while restoring a cPanel backup.
"Unable to get user id for user at /scripts/pkgacct line 138."
Don’t panic. It’s a simple one. You are getting this error because cPanel cannot find the user ID of the specified user, which means the user ID you provided with the “/scripts/pkgacct” is wrong.
Please run the below command to get your domain user ID.
grep your-domain-name /etc/trueuserdomains | awk '{print $2}'
There you go! You got the User ID. Now run the restoration command with this user ID, and that’s it!