Unable to get user id for user at /scripts/pkgacct

Unable to get user id
Sometimes, you may get the error ""Unable to get user id for user at /scripts/pkgacct" while restoring a cPanel backup. Here is the solution to fix this issue.

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!

Share this post

Services to Explore

Stay up to date!

Stay up to date with the Web Hosting, Cloud and Server Management Industry News and Tutorials!

We will send you only the relevant emails, and we respect your privacy. Please review our privacy policy for more info.

cPanel & WHM Management Services

Focus on your business, and let us take care of your cPanel Servers!
From what you are reading, it seems you are interested in cPanel/WHM and related technologies. If you have a moment to spare, please take a look at our cPanel Management Services plan, and which might interest you even more!
cPanel Management Plan

Value-Added Services

We have services that can help you run a successful business. With us, you don't have to worry about these areas because our experts will take care of it for you.

Introducing - WPHealers!

Complete WordPress Management, 24x7 Support & White Label Agency Plans!

WordPress migration service, security, white-label reseller services and lot more! Grab the introductory deals now!

WPHealers

ServerHealers uses cookies.