One of our customers was migrated from another cPanel host. While restoring his account to our cPanel server, we received the following error.
Error Message
Account Restore Failed: “Account failure: Failed to create the account: A database owner with the name “cpaneluser” already exists.”
Solution
Step 1: Log in to the cPanel server via SSH with root privileges.
Step 2: Navigate to directory /var/cpanel/databases.
Step 3: Locate the file, namely cpaneluser.json and cpaneluser.json.lock, and move them to another folder.
Step 4: Try to restore the cPanel account. In several cases, moving cpaneluser.cache and cpaneluser.yaml files to some other folder also fixed the problem.
Note: Here, cpaneluser is the symbolic cPanel user. While you follow the above steps, you should look for the files with your actual cPanel username.
Facing an issue with the cPanel update? Please refer to cPanel > Rebuild RPM for more details.
