Issue when transfering accounts

tsak

Member
Nov 21, 2010
6
0
51
Hello. I dont know if this is the correct section so please transfer it to the correct one.

I am trying to transfer cpanel accounts from one cpanel server to an other. Both servers are running WHM 11.32.2 (build 18).

All are good except the part with the DNS Zone and the subdomains.
I am getting the following error:
Restoring Addon Domain...domain.com (domain.com)...Sorry, An error occurred while adding dns zone.....Done

Is this a known issue? Or how i can fix it.
I need to transfer around 1000 cpanel accounts really fast because the old server is going to expire in 24hours.

Thanks for your help
 

tsak

Member
Nov 21, 2010
6
0
51
I am transfering the accounts from my old server to a new cpanel server i just got. There are no accounts on the new server
 

Huib

Registered
Mar 6, 2011
4
0
51
Í'm currently busy with moving all our dedicated servers to a cloud and we get the same error, but all DNS zones are created as they should... So I guess all is fine?
 

matrafox

Member
Apr 21, 2012
5
0
51
cPanel Access Level
Root Administrator
Please check the thread "Can't migrate accounts" If anyone find a solution should post it here/there. This is a bug and is annoying.

"huib" have you check apache conf also ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

I'm terribly sorry for the inconvenience this is causing. Please note that this only occurs when copying an account through WHM. As such, you could instead loop packaging on the source machine and then loop restoring on the destination machine:

1. Package the accounts in screen in a loop:

Code:
screen
cat /etc/trueuserdomains | cut -d: -d' ' -f2- > /root/usernames
for i in `cat /etc/trueuserdomains | cut -d: -d' ' -f2-` ;do /usr/local/cpanel/scripts/pkgacct $i ;done
2. Copy over the files to the new machine:

Code:
scp -pr /root/usernames [email protected]:/root
scp -pr /home/cpmove-* [email protected]:/home
3. Restore the files on the new machine:

Code:
screen
for i in `cat /root/usernames` ;do /usr/local/cpanel/scripts/restorepkg $i ;done
Thanks!
 

Brian

Well-Known Member
Dec 1, 2010
117
3
68
Texas
cPanel Access Level
Root Administrator
I wanted to further clarify that this bug only occurs if the cPanel Dns Admin Cache Service is enabled on the server and the migration is performed through WHM.

Accordingly, a temporary work around for this bug is to temporarily disable the cPanel Dns Admin Cache Service on the Destination cPanel server, transfer the account(s) desired, and then turn that service back on.

In other words:

[1] On the DESTINATION server, go to WHM -> Service Manager
[2] Uncheck both boxes for "cPanel Dns Admin Cache Service" (remember what you had checked, though)
[3] Transfer the account(s) desired
[4] Go back and re-check your previously checked boxes for that service.

Alternatively, you can choose to use /scripts/pkgacct and /scripts/restorepkg to manually copy accounts without having to touch the Dns Admin Cache Service settings (just as cPanelTristan has already outlined).
 

Brian

Well-Known Member
Dec 1, 2010
117
3
68
Texas
cPanel Access Level
Root Administrator
Do you see the process 'dnsadmin - server mode' in the server's process list? If so, it is indeed still running. If it is running, you can stop it with:

/scripts/restartsrv_dnsadmin --stop

If that process is NOT running on your server and you are still experiencing this error, please open a ticket (see my signature) and cite this forum post so we can further investigate. Thus far the only situation in which we've reproduced this error is with the dnsadmin caching service running. If it is occurring under different circumstances, we'd definitely like to know and be able to gather more information on it.
 

earthrat

Well-Known Member
Nov 8, 2010
51
3
58
Bend, OR
cPanel Access Level
Root Administrator
I get my cPanel/WHM through SingleHop so I cannot open a ticket but I am having the same issue and my dnsadmin was never running. I am on WHM 11.32.5 (build 11) though so not sure if this has been fixed but I am having major problems.

I have 160 sites to move if anyone is interested I am willing to pay for this as I am by no means qualified to work with SSH and need help bad!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you have root WHM and root SSH access on the machine, you should be able to open up a ticket with us. There should be an option in WHM > Support Center called Contact cPanel there. If there isn't, please use the link in my signature to submit a ticket.

Of note, we cannot transfer your entire machine to another one, but we can help to troubleshoot one or two accounts transferring to determine what is happening and correct it.