Upgrade from Freepbx 15 to Freepbx 16 - SQLSTATE[HY000] [2002] No such file or directory

I am following the Wiki to a T and the upgrade goes perfectly smooth. Then you cannot get into the gui when it completes, even after a reboot.

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:149
  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:71
  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
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

When I’ve had SQL errors in the past it’s often the HDD running out of space or lack of RAM. Might be worth checking that first.

Checked space. All good

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