ERROR while main::setupRebuildCustomerFiles process (i-MSCP 1.2.17)

  • Debian Linux 8 X86
    I-MSCP : 1.2.17


    Got this error after updating from 1.2.16.
    i did the Nuxwin for "The network interface is unknown"
    Then the update to 1.2.17



    [ERROR] main::setupRebuildCustomerFiles:
    Error while rebuilding customers files: [FATAL] iMSCP::Debug::__ANON__: Wrong $data parameter. Hash expected at /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm line 274, <$fh> line 74.



    Tnx for helping :)

  • Will be fixed on next release. https://github.com/i-MSCP/imsc…a8728a15f13d03c38d5b8c274


    You could fix it by yourself.


    Open the file /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm and go to line 233 and change unless to if.


    Code
    1. change the entry:
    2. return 0 unless $self->{'ca_bundle_container_path'} eq '';
    3. to:
    4. return 0 if $self->{'ca_bundle_container_path'} eq '';
  • If i change it


    Source Code


    • change the entry:
    • return 0 unless $self->{'ca_bundle_container_path'} eq '';
    • to:
    • return 0 if $self->{'ca_bundle_container_path'} eq '';


    Then i run te update agean i get the same error
    An when i look at the file /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm


    I is changed to return 0 unless $self->{'ca_bundle_container_path'} eq ''; agean

  • Sorry, my fault. You have to change it on the downloaded i-MSCP 1.2.17 package.


    imscp-1.2.17/engine/PerlLib/iMSCP/OpenSSL.pm

  • Sorry it dont work :(


    Got the same error


    But the line return 0 if $self->{'ca_bundle_container_path'} eq ''; Is ok in /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm

    Edited once, last by Taz-Mania ().

  • Please check the output of cat /etc/imscp/imscp.conf | grep DEFAULT_ADMIN_ADDRESS


    On the output there should be an email address.

  • @Taz-Mania


    Did you read the announcement ----> i-MSCP version 1.2.17


    Here your problem comes from the DefaultServerPage plugin which use old API to generate SSL self-signed certificate...


    So now in order, you must:


    1. Disable the plugin manually:

    Code
    1. # mysql -u root -p<your_sql_root_password>
    2. > UPDATE plugin SET plugin_status = 'disabled', plugin_error = null WHERE plugin_name = 'ServerDefaultPage';
    3. > quit


    2. Apply fix as stated by @mrpink (point to another bug but is still a valid advise)
    3. Rerun i-MSCP installer
    4. Upload latest ServerDefaultPage plugin and re-enable it

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

  • After 2 X reboot -f
    and Source Code



    • change the entry:
    • return 0 unless $self->{'ca_bundle_container_path'} eq '';
    • to:
    • return 0 if $self->{'ca_bundle_container_path'} eq '';

    It works :huh:


    @Nuxwin yes i did read it and deinstallt it before updating tot 1.2.17



    Thnx for the tips and help again :thumbsup:

  • @Taz-Mania


    @Nuxwin yes i did read it and deinstallt it before updating tot 1.2.17


    Code
    1. [ERROR] main::setupRebuildCustomerFiles:
    2. Error while rebuilding customers files: [FATAL] iMSCP::Debug::__ANON__: Wrong $data parameter. Hash expected at /var/www/imscp/engine/PerlLib/iMSCP/OpenSSL.pm line 274, <$fh> line 74.


    Except that this bug can not occur without the old version of the plugin ServerDefaultPage ... Thus, you cannot make us believe that you have disabled the plugin ... :rolleyes: No grave. The problem is fixed on your side so...

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