Upgrade 1.3.0 to 1.3.9 failed (Could not load database parameters)

  • Hi!,


    I tried the Upgrade from 1.3.0 to 1.3.9 today and at the end it fails with the error:


    FATAL: Could not to load database parameters at /var/www/imscp/engine/imscp_common_code.pl line 66.


    I saw, it fails during the decrytion of the MySQL database params. The imscp-db-keys in /etc/imscp/ is there and has current time.


    Full Error Message: [ERROR] main::setupDbTasks: FATAL: Could not to load database parameters at /var/www/imscp/engine/imscp_common_code.pl line 66.
    Compilation failed in require at /var/www/imscp/engine/imscp-sw-mngr line 27. at /usr/local/src/imscp-1.3.9/engine/PerlLib/iMSCP/DbTasksProcessor.pm line 330.


    Environment:


    - Debian 8.6
    - Apache 2.4 with php-fpm


    Latest I-MSCP (1.3.9.zip) downloaded today from the official repo.


    Can someone help here ?

    I-MSCP 1.3.9 on Debian Linux 8

  • It looks to me, like the imscp-sw-mngr still calls the old setup_db_vars function in imscp_common_methods.pl and there it tries to decrypt the database pw using the old blowfish encryption.
    I was successfully able to finish the upgrade by simply skipping the software-manager parts of the i-mscp setzp, but I think there is actually a bug.


    Best regards


    Koren

    I-MSCP 1.3.9 on Debian Linux 8

  • Bug confirmed.

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

  • @Koren


    Could you give a try with the attached patch?


    Thank you for your report.

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

  • @Nuxwin


    Now it breaks, because the variable $data is not set in imscp_common_methods.pl for the decode_base64:


    Code
    1. )->decrypt(
    2. decode_base64( $data )
    3. );

    I-MSCP 1.3.9 on Debian Linux 8

  • @Koren


    My fault. I should avoid to create a patch in 10 seconds... See the new patch attached.

    Files

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

  • A fix has been added in the 1.3.x branch. See https://github.com/i-MSCP/imsc…83b389b90abf4c9998097fda9
    This fix will be part of next i-MSCP version.


    Thank you for your report.
    Thread closed.

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