1.3.12 update fails - Strings with code points over 0xFF may not be mapped into in-memory file handles

    • Ubuntu 14.04.5 Trusty Thar up-to-date
    • Updating from 1.3.10 -> 1.3.12


    I did read the errata. I am not using 10_apache2_dualstack.pl The only instance of that file is in the contrib/Listeners/Apache2 folders of my previous i-MSCP installations. I’m so frustrated. Every time I try to install an update I manage to break i-MSCP.


    The complete errors are:

    Code
    1. [WARN] iMSCP::Provider::Service::Upstart::_isEnabledPost090: Strings with code points over 0xFF may not be mapped into in-memory file handles
    2. [ERROR] Servers::httpd::apache_php_fpm::postinstall: Could not enable the `php5-fpm' service: Could not open in-memory file: Invalid argument at /usr/local/src/imscp-1.3.12/engine/PerlLib/iMSCP/Provider/Service/Upstart.pm line 464.

    ?( Suggestions?

    Regards,


    /\/\___


    “There are 10 kinds of people. Those who understand base-2 and those who do not.”

    Edited 3 times, last by innodapt ().

  • @innodapt


    Can you try the following:


    1 Edit the engine/PerlLib/iMSCP/Provider/Service/Upstart.pm file inside the 1.3.12 archive directory and replace line 464:


    Perl
    1. open my $fh, '<', $_ or die ( sprintf( 'Could not open in-memory file: %s', $! ) );


    by


    Perl
    1. open my $fh, '<:utf8', $_ or die ( sprintf( 'Could not open in-memory file: %s', $! ) );

    Once done, retry.

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

  • Thanks for getting back to me on this, Nuxwin.


    I made that revision, but the result is the same. :(

    Regards,


    /\/\___


    “There are 10 kinds of people. Those who understand base-2 and those who do not.”

  • I'll provide you a patch in few minutes ok ?

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

  • @innodapt


    So first, revert back the change you made above. Once done, apply the attached patch and then, retry:


    Pastbin version of the patch: http://pastebin.com/1dYec1Sz

    Files

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

  • VOILA!


    (Or, as we composer/conductors like to say, “VIOLA!”)

    Regards,


    /\/\___


    “There are 10 kinds of people. Those who understand base-2 and those who do not.”

  • @innodapt


    That ok now? I've tested too with Trusty Thar and the patch above. All goes fine ;)

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

  • A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…3704bacda29ce8edb099b19fe
    This fix will be part of next release.


    Thank you for your report.

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

  • It does! Thank you very much.


    Sorry it took me a few minutes to apply and test it. I had to check the man page for patch. I was spinning my wheels omiting the -p0

    Regards,


    /\/\___


    “There are 10 kinds of people. Those who understand base-2 and those who do not.”

  • @innodapt


    You're welcome.


    Thread closed.

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