Migrating i-MSCP 1.2.5 to a new server

  • Hello,


    after i have update my old server to i-mscp 1.2.5 i would migrate to a new server.


    I've copy the /var/www/imscp, /var/www/virtual, /etc/imscp, /var/mail to the new server. Dump the mysql database and restore at the new server


    After this i start perl ./imscp-autoinstall -f and after the error with -r


    The setup Dialog has the folling error:

    Code
    1. main::setupRebuildCustomerFiles:
    2. [Error} main::_process: Error while processing 6, Domain.de, tochange.
    3. main::_process: See /var/log/imscp/User_module_domain.de.log for more Details.
    4. Modules:: User::add: usermod: User 'vu2006' does not exist.


    Is there a way to ignore (disable) this Domain at the setup?


    Thanks and regards
    Detlev

  • @detlevp



    Disabling that domain will not solve your problem. Here the problem is that the virtual user doesn't exists on the new server. Thus, you must force it creation. Below, you'll find the procedure to follow:


    1. Remove any i-MSCP virtual user (vu****) from the /etc/passwd, /etc/shadow and /etc/group files
    2. Execute the following SQL queries:


    SQL
    1. # mysql -u root -p<your_password>
    2. > use imscp;
    3. > UPDATE admin SET admin_sys_name = null, admin_sys_uid = 0, admin_sys_gname = null, admin_sys_gid = 0, admin_status = 'ok';
    4. > UPDATE domain SET domain_status = 'ok';
    5. > UPDATE subdomain SET subdomain_status = 'ok';
    6. > UPDATE domain_aliasses SET alias_status = 'ok';
    7. > UPDATE subdomain_alias SET subdomain_alias_status = 'ok';
    8. > UPDATE mail_users SET status = 'ok';


    3. Rerun the i-MSCP installer (perl imscp-autoinstall -d)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello Nuxwin,

    thanks for this fast answer. I've do this and the setup runs without any error.


    Change the setup-script automaticle the new ip-addresse for the new server, or must i change this in the database?

  • Re ;


    You can normally change it by running:


    Code
    1. # perl imscp-autoinstall -dasr ips


    -d enable debug mode
    -a skip addon packages update
    -s skip distro packages installation/update
    -r reconfiguration mode - ips item to reconfigure

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206