Hello,
I am facing a problem after move my i-mscp server to new KVM VPS. Both are using i-mscp 1.2.17 on ubuntu 14.04. But old server was on OpenVZ. After completing all the steps when I tried to run this command:
Error message:
Code
- [ERROR] main::setupRebuildCustomerFiles:Error while rebuilding customers files: [ERROR] main::_process: Error while processing 1, XXXXX.com, tochange.main::_process: See /var/log/imscp/Domain_module_XXXXX.com.log for more details.Modules::Domain::_loadData: Domain with ID 1 has not been found or is in an inconsistent state
But I can see the domain exist in the database. Also I have check the other table & I found domain_id 1 is exist. In where I am doing wrong? Any suggestion?
Note: I was following this procedure:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Migrate i-mscp to a new server | |
#the new imscp is already installed and does have a different IP than the old one | |
#1. Dump the DB and copy the i-MSCP backup to new server: | |
rsync -rave "ssh -l root" /var/www/imscp/backups 10.0.0.3:/var/tmp/imscp_old_backups | |
#2.Install the old config DB | |
#3. Copy all customer data: | |
rsync -rave "ssh -l root " /var/www/virtual/ 10.0.0.3:/var/www/virtual | |
rsync -rave "ssh -l root " /var/mail/virtual/ 10.0.0.3:/var/mail/virtual | |
#4. Copy all cusomer DB's | |
(use phpmyadmin or mysqldump to move customers db's) | |
#5. Remove all unix user related fields into the admin table before re-running the installer (on new server) | |
#- Edit your /etc/passwd file and remove any vuXXXX user | |
#- Edit your /etc/group file and remove any vuXXXX group | |
#- Edit your /etc/shadow file and remove any vuXXXX user | |
#Execute the following SQL queries: | |
# mysql -u root -p<password> | |
use imscp; #your imscp config | |
update domain set domain_status = 'ok'; | |
update subdomain set subdomain_status = 'ok'; | |
update domain_aliasses set alias_status = 'ok'; | |
update subdomain_alias set subdomain_alias_status = 'ok'; | |
update mail_users set status = 'ok'; | |
update admin set admin_status = 'ok', admin_sys_name = null, admin_sys_uid = 0, admin_sys_gname = null, admin_sys_gid = 0; | |
#5. Run again the setup script: | |
perl /var/www/imscp/engine/setup/imscp-setup -d | |
#6. If you need to change the default IP address run: | |
perl /var/www/imscp/engine/setup/imscp-setup --reconfigure ips | |
#if it happens that you can not delete the old IP address, check the IP's used by reseller. | |
# Anything else ????? | |