Switcher 5.0.1 compile errors & > 5.0.2 Upg Error

  • Debian 8

    Current I-mscp 1.5.3

    mysql Ver 14.14 Distrib 5.7.27



    5.0.2 Upgrade of php-switcher Error on upgrade


    Code
    1. Plugin update has failed: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'version_version'



    ----
    5.0.1 Errors on compile


    Code
    1. I: forking: rm -rf /var/cache/pbuilder/build/cow.5749
    2. [ERROR] main: An error occurred while setup of PHP build environment: cp: cannot create regular file '/var/cache/pbuiow.5749/etc/hosts': No such file or directory
    3. E: pbuilder update failed


    found some errors online with other pbuilder, related to cowbuilder --create needing to be executed

    on execution found this error:


    Code
    1. I: Validating zlib1g 1:1.2.11.dfsg-1+b1
    2. I: Chosen extractor for .deb packages: dpkg-deb
    3. I: Extracting libacl1...
    4. E: debootstrap failed
    5. W: Aborting with an error
    6. E: pbuilder create failed


    (probably something specific to this system


    tested 5.0.1 on a Deb 9 System (that was updated from Deb8 a few months ago) - and everything worked smoothly

    compile and updates all, no issue - think the Deb 8 above, has other issues Unrelated to i-MSCP

    But wanted to update on errors just in case others have them as well.


    :thumbsup:

  • 5.0.2 Upgrade of php-switcher Error on upgrade

    Upgrade from which PhpSwitcher version?


    I: forking: rm -rf /var/cache/pbuilder/build/cow.5749
    [ERROR] main: An error occurred while setup of PHP build environment: cp: cannot create regular file '/var/cache/pbuiow.5749/etc/hosts': No such file or directory
    E: pbuilder update failed

    Shouldn't occurs... Please purge the pbuilder package, remove also the /var/cache/pbuilder directory, then reinstall the package and retry...

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

  • Nuxwin

    Added the Label to be investigated
  • 5.0.1 installed fine


    had errors as shown about pbuilder

    played a bit with the other items and still no resolution


    went to update to 5.0.2 and got the upgrade error


    doing as you mentioned now....


    apt purge pbuilder

    apt autoremove

    rm -f /pbuilder (was in /var/cache/)


    re-attempt update plugins no change still maintains error on phpswitcher


    Code
    1. Plugin update has failed: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'version_version'



    package-5.0.2.JPG

  • viper_iii


    I'll check for the duplicate key (SQL issue) with the MySQL/5.7 SQL server.


    Don't forget to reinstall pbuilder ;)

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

  • viper_iii


    I cannot reproduce the problem. Maybe you could give me an access to that server for further investigation.


    My test environment:

    Code
    1. root@jessie64:/# lsb_release -a
    2. No LSB modules are available.
    3. Distributor ID: Debian
    4. Description: Debian GNU/Linux 8.11 (jessie)
    5. Release: 8.11
    6. Codename: jessie
    Code
    1. root@jessie64:/# mysql --version
    2. mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper
    3. root@jessie64:/#
    Code
    1. root@jessie64:/# cat /etc/imscp/imscp.conf |grep -e 'Version\|Build'
    2. Version = 1.5.3
    3. Build = 2018120800

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

  • Nuxwin

    Set the Label from to be investigated to unreproducible
  • Code
    1. No LSB modules are available.
    2. Distributor ID: Debian
    3. Description: Debian GNU/Linux 9.11 (stretch)
    4. Release: 9.11
    5. Codename: stretch

    humm....

    apparently I'm on V9 and didn't even notice...

    I'm wondering if there is some serious issues in there now!!!!


    don't remember that upgrade ever working - my documentation (poor as it is) shows I reverted to a snapshot to get back online...

    ...



    Code
    1. mysql --version
    2. mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper
    Code
    1. Version = 1.5.3
    2. Build = 2018120800
  • went into imscp_user to edit database and remove messed up phpswitcher

    and associated switcher tables completely

    copied data to be able to correct domains later


    This allowed me to re-upload 5.0.2 and install correctly


    now testing php installs


    purge pbuilder

    cd /var/cache

    rm -rf pbuilder

    install pbuilder

    install cowbuilder


    Code
    1. perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register 7.2

    processing as expected now - monitoring for any issues.

    Highly suspect my own configuration issues vs any programming bugs!

    Edited once, last by viper_iii ().