Migration from ispCP 1.1.0 database key files corrupted

  • Edit: Instructions updated again.

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

  • Code
    1. root@ispcp:/var/www/imscp/engine/setup# cat /var/log/imscp/imscp-migrate-from-ispcp.log
    2. [Wed Dec 10 13:37:22 2014] [debug] iMSCP::Debug::verbose: Debug mode off
    3. [Wed Dec 10 13:37:23 2014] [error] iMSCP::Crypt::decrypt_db_password: KEY or IV has invalid length
    4. [Wed Dec 10 13:37:23 2014] [error] iMSCP::Crypt::decrypt_db_password: KEY or IV has invalid length
    5. [Wed Dec 10 13:37:30 2014] [error] main::checkDbPassword:
    6. Unable to connect to the ispCP database using the /etc/ispcp/ispcp-keys.conf file
    7. Unable to connect to the ispCP database using the /var/www/ispcp/engine/ispcp-db-keys.pl file
    8. Unable to connect to the ispCP database using the /var/www/ispcp/gui/include/ispcp-db-keys.php file
    9. [Wed Dec 10 13:37:42 2014] [error] iMSCP::Debug::END: Exit code: 1
    10. root@ispcp:/var/www/imscp/engine/setup#


    Adding your SSH Key ;-)
    Do you want to use the server in its state now or should I revert to an older snapshot?

  • Revert it as it will be on your live system before doing the migration if possible.

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

  • @-bk-


    Ok, I don't see any problem there (CHUCKLES)


    1. I've updated your sources.list file which was wrong as follow:

    Code
    1. deb http://ftp.debian.org/debian squeeze main contrib non-freedeb-src http://ftp.debian.org/debian squeeze main contrib non-freedeb http://ftp.debian.org/debian/ squeeze-updates main contrib non-freedeb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-freedeb http://security.debian.org/ squeeze/updates main contrib non-freedeb-src http://security.debian.org/ squeeze/updates main contrib non-free


    2. I've updated your system

    Shell-Script
    1. # aptitude update# aptitude dist-upgrade


    Note: A warning about a missing APT key was shown but this has been solved by the aptitude dist-upgrade ;)


    3. I've Downloaded the 1.1.x version ( because a bug in the 1.1.18 which prevent db update )

    Shell-Script
    1. # cd /usr/src# mkdir nuxwin && cd nuxwin# wget https://github.com/i-MSCP/imscp/archive/1.1.x.zip# unzip 1.1.x.zip# cd imscp-1.1.x/


    4. I've run the i-MSCP installer ( I've selected the build option and for the servers, I've selected the default options )

    Shell-Script
    1. # perl imscp-autoinstall -d


    5. I've run the following commands to copy the i-MSCP files on the system, and I've run the migration script

    Shell-Script
    1. # cp -fR /tmp/imscp/* /# cd /var/www/imscp/engine/setup# perl imscp-migrate-from-imscp


    Result: Migration done without any errors.


    So now, repeat the steps above and once it's done, run the following command to finalize the i-MSCP setup:


    Shell-Script
    1. # perl /var/www/imscp/engine/setup/imscp-setup -d

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

  • Donations are always welcome ;) You can done what you want on my paypal account ---> [email protected]


    Thanks you ;)

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