Link to home
Start Free TrialLog in
Avatar of Kevin Mitchell
Kevin MitchellFlag for United States of America

asked on

Account “username”: Account Restore Failed: “Account failure: Failed to create the account: (XID dsdu3x) The domain “'domain.tld” already exists in the userdata.”

Avatar of Noah
Noah
Flag of Singapore image

Hi!

This error message suggests that the account you're trying to restore already exists on the VPS hosting and the domain associated with that account is already registered in the userdata. If the account is present, you will need to remove the account completely.

To remove the account, you can follow these steps:

  1. Log in to your VPS hosting.
  2. Navigate to the user account section.
  3. Locate the account you want to remove.
  4. Select the account and click on the remove or delete button.
  5. Follow the prompts to complete the account removal process.
Avatar of Kevin Mitchell

ASKER

Apparently I also cannot operate EE, I keep trying to add detail to the question and failing. THe account does not show up in List Accounts in WHM,  I have only seen one hint of it which I deleted from a line of text in one of the files after trying numerous bash commands in Terminal.  I have been googling this and pounding on it for days. Thanks

Do you still have that line of text from the file? What commands did you enter?

If you cannot operate EE, you may also want to consider contacting your hosting provider's support team for further assistance..

Thank You, EE wont let me put more than 200 chars in question is the issue and I find it hard to see the interface, I have tried 

/scripts/removeacct $cpuser 

/scripts/whoowns domain.tld
grep domain.tld /etc/userdomains
grep domain.tld /var/cpanel/accounting.log
cat passwd

Open in new window

grep -R domain.tld /var/cpanel/user*

Open in new window

  • /usr/local/cpanel/Cpanel/Validate/Username/Core.pm
  • /etc/aliases
  • /etc/localaliases

1) nano /etc/userdatadomains  THIS was the only one I found a line in, a bit of text then an identical line for each domain / user, I edited and removed it to no avail, all other tries netted a not found or does not exist result
Remove the domain from this file

2) cd /var/cpanel/databases
Remove all json files from that domain, including the grant_*** files

3) rm -r /var/cpanel/userdata/domain.tld
remove the domain dir (replace domain.tld with your own)

I have been on the phone with support 7 times for various issues for over 11 hours, the last 3 for this issue, on ealier issues they were very willing to help on this one they tell me its out of the scope of support even thought the thing that cause the issue with this account was what the first support guy suggested doing (whm to whm direct transfer)  I apologize for struggling here but I am also forced to be on the road away from any computer for weeks here and have little access.

K

I wound up here because one of my google searches showed a question that looked right having a verified answer on here, I had to sign up to see it, as soon as I committed and read the rest of the question it did not apply at all so I thought I would try to post a new question.

I ran this today before leaving and came home to same error message...

Repairing Corrupted User Data Files

To rebuild a corrupted user data file within cPanel, follow these steps:

  1. First, log in to your WHM/cPanel server as the root user using your username and password.
  2. Next, you’ll need to locate the user data files, which can be found at /var/cpanel. Make sure the userdata directory is present on the server.
  3. If the directory does exist, move it or rename it with the mv command. It should look something like this:

    mv /var/cpanel/userdata /var/cpanel/userdata_backup

  4. Now, create a new userdata directory with the command mkdir:

    mkdir /var/cpanel/userdata

  5. Now that we have a new userdata directory created, in order to rebuild the userdata files for all the accounts hosted on your cPanel server, run the script userdata_update with the –reset flag. This will rebuild the userdata files for all accounts hosted on your cPanel server.

    /usr/local/cpanel/bin/userdata_update –reset

  6. Next, you’ll need to fix the permissions for the newly generated user data files which can be done by running the command:

    /usr/local/cpanel/bin/fix_userdata_perms

  7. Since you’ve generated a new userdata file, you will need to update the system’s cache. This can be done using the command:

    /scripts/updateuserdatacache

  8. Now, rebuild the apache configuration in order to use the newly rebuilt userdata files with the command:

    /scripts/rebuildhttpdconf

  9. Lastly, restart the apache service with the command:

    /scripts/restartsrv_httpd

And there you have it!

You may need to contact your hosting provider for further assistance. They may be able to provide more specific guidance based on your server configuration.
ASKER CERTIFIED SOLUTION
Avatar of Kevin Mitchell
Kevin Mitchell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I see! Since you figured it out, do remember to officially mark your solution and close this thread :)