Stack trace during upgrade 3.1.13 >> 3.1.13p1

Discussion in 'General' started by crazyivan, Mar 5, 2019.

  1. crazyivan

    crazyivan New Member

    While running
    Code:
    ispconfig_update.sh
    I encounter the following stack trace. Any suggestions welcome.

    Code:
    >> Update
    
    Operating System: Ubuntu 18.04.2 LTS (Bionic Beaver)
    
    This application will update ISPConfig 3 on your server.
    
    Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]:
    
    Creating backup of "/usr/local/ispconfig" directory...
    Creating backup of "/etc" directory...
    PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_connect() in /tmp/update_stable.sh.1MI5BNjH48/ispconfig3_install/install/update.php:239
    Stack trace:
    #0 {main}
      thrown in /tmp/update_stable.sh.1MI5BNjH48/ispconfig3_install/install/update.php on line 239
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.2 LTS
    Release: 18.04
    Codename: bionic

    PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies

    Server version: 10.1.38-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
     
    Last edited: Mar 5, 2019
  2. crazyivan

    crazyivan New Member

    Running
    Code:
    root@mail:~# /usr/local/ispconfig/server/server.sh
    Throws this error:
    Code:
    05.03.2019-16:50 - WARNING - There is already a lockfile set, but no process running with this pid (10327). Continuing.
    PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:78
    Stack trace:
    #0 /usr/local/ispconfig/server/lib/app.inc.php(46): db->__construct()
    #1 /usr/local/ispconfig/server/lib/app.inc.php(208): app->__construct()
    #2 /usr/local/ispconfig/server/server.php(51): require('/usr/local/ispc...')
    #3 {main}
      thrown in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78
    PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:78
    Stack trace:
    #0 /usr/local/ispconfig/server/lib/app.inc.php(46): db->__construct()
    #1 /usr/local/ispconfig/server/lib/app.inc.php(208): app->__construct()
    #2 /usr/local/ispconfig/security/check.php(32): require('/usr/local/ispc...')
    #3 {main}
      thrown in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if your PHP does not support MySQL. Install the php mysql package.
     
  4. crazyivan

    crazyivan New Member

    Apparently during the OS upgrade (a few weeks back) from 16.04.x to 18.04.x not all php packages were upgraded to their php 7.2 versions. I had to explicitly install them next to their 7.0 counter parts. This solved both my above mentioned errors.
     
  5. crazyivan

    crazyivan New Member

    Hello Till, yes indeed. This seems to be the case. Thanks for your reply.
     
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    After you do an OS upgrade like that, go through the Perfect Server guide for the new OS (18.0.4) and run all the commands to install packages, to make sure you don't miss anything. You will also need to update the default php settings in server config.
     
  7. crazyivan

    crazyivan New Member

    Jesse, this is indeed exactly how I solved this issue. Thank you.
     

Share This Page