FreePBX v15 to v16 upgrade fails every time

I’ve attempted to upgrade several different PBXs to v16 and all fail. freepbx 16-upgrade.log shows freepbx16.x86_64 0:16.1-1.sng7 is installed successfully, but then the updater fails when attempting to install modules:

Fri Mar 31 11:35:11 PDT 2023 Installing PBX 16 Framework module
Exception: SQLSTATE[HY000] [2002] No such file or directory::SQLSTATE[HY000] [2002] No such file or directory in file /var/www/html/admin/libraries/utility.functions.php on line 120

Caused by
PDOException: SQLSTATE[HY000] [2002] No such file or directory in file /var/www/html/admin/libraries/BMO/Database.class.php on line 144
Stack trace:

  1. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  2. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:150
  3. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  4. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  5. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:77
  6. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  7. require_once() /etc/freepbx.conf:11
  8. include_once() /var/lib/asterisk/bin/fwconsole:12

It appears mysql isn’t running, which causes the failure. I’ve rebooted and then run fwconsole ma updateall, but then I get impolsion errors or the rediscache.php error outlined here: [FREEPBX-21684] FreePBX redis cache throws error - Sangoma Issue Tracker

Any ideas would be well appreciated.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.