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:
- Exception->() /var/www/html/admin/libraries/utility.functions.php:120
- die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:150
- PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
- PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
- FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:77
- FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
- require_once() /etc/freepbx.conf:11
- 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 15.0.16.63 redis cache throws error - Sangoma Issue Tracker
Any ideas would be well appreciated.