Several 15 to 16 upgrade failing

Hello All,

I have done several 15 to 16 upgrades without issue, but this one particular case, I seem to not be able to complete.

The log probably does a better job of explaining it, but bottom line is DB never comes back, so things can’t continue in the process.

I will attach my steps and the log.
Did this 6 times, each time being careful, even trying a little bit older version of the PBX to see if anything was different within the process.
My Steps - All command line:

Blockquotefwconsole ma uninstall queuemetrics
fwconsole ma uninstall restapi
fwconsole ma uninstall pbdirectory
fwconsole ma uninstall pbdirectory
fwconsole ma uninstall campon
fwconsole ma uninstall digiumaddoninstaller
fwconsole ma uninstall speeddial
fwconsole ma uninstall digium_phones
fwconsole ma uninstall digiumaddoninstaller
fwconsole ma uninstall sangomacrm
fwconsole ma uninstall vega
fwconsole ma uninstall restapi
fwconsole ma uninstall restapps
fwconsole ma upgradeall
fwconsole ma downloadinstall versionupgrade
fwconsole chown
fwconsole reload
fwconsole versionupgrade --check
fwconsole versionupgrade --upgrade
fwconsole chown
fwconsole reload
reboot

LOG:

Blockquote
[[email protected] ~]# tail -f /var/log/pbx/freepbx16-upgrade.log
Install 1 Package
Total download size: 500 M
Installed size: 1.2 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : freepbx16-16.1-1.sng7.x86_64 1/1
Verifying : freepbx16-16.1-1.sng7.x86_64 1/1
Installed:
freepbx16.x86_64 0:16.1-1.sng7
Complete!
Wed Jun 1 15:46:54 EDT 2022 freepbx16 installed successfully…
Wed Jun 1 15:46:54 EDT 2022 Installing Sangoma release RPM
Wed Jun 1 15:46:54 EDT 2022 Installing Sangoma PBX RPM
Wed Jun 1 15:47:01 EDT 2022 All PBX 16 dependent RPMs installed successfully
Wed Jun 1 15:47:01 EDT 2022 Asterisk Manager password reverted back successfully
Wed Jun 1 15:47:01 EDT 2022 Reverting the astDB
Wed Jun 1 15:47:01 EDT 2022 Reverting the /etc/asterisk files
/etc/asterisk/extconfig_custom.conf file not found!.Creating dummy file
Wed Jun 1 15:47:01 EDT 2022 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: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:9
  8. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Installing PBX 16 Certificate manager 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:
  9. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  10. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  11. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  12. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  13. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  14. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  15. require_once() /etc/freepbx.conf:9
  16. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Installing PBX 16 Pm2 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:
  17. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  18. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  19. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  20. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  21. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  22. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  23. require_once() /etc/freepbx.conf:9
  24. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Installing PBX 16 Sysadmin manager 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:
  25. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  26. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  27. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  28. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  29. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  30. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  31. require_once() /etc/freepbx.conf:9
  32. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Running chown…
    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:
  33. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  34. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  35. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  36. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  37. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  38. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  39. require_once() /etc/freepbx.conf:9
  40. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Running reload
    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:
  41. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  42. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  43. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  44. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  45. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  46. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  47. require_once() /etc/freepbx.conf:9
  48. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Activating the system with deploymentID
    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:
  49. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  50. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  51. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  52. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  53. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  54. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  55. require_once() /etc/freepbx.conf:9
  56. 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
    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:
  57. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  58. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  59. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  60. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  61. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  62. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  63. require_once() /etc/freepbx.conf:9
  64. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Updating all the modules
    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:
  65. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  66. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  67. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  68. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  69. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  70. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  71. require_once() /etc/freepbx.conf:9
  72. 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
    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:
  73. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  74. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  75. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  76. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  77. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  78. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  79. require_once() /etc/freepbx.conf:9
  80. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Running chown…
    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:
  81. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  82. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  83. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  84. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  85. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  86. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  87. require_once() /etc/freepbx.conf:9
  88. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:01 EDT 2022 Running reload
    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:
  89. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  90. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  91. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  92. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  93. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  94. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  95. require_once() /etc/freepbx.conf:9
  96. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:02 EDT 2022 Running fwconsole restart
    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:
  97. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  98. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  99. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  100. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  101. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  102. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  103. require_once() /etc/freepbx.conf:9
  104. include_once() /var/lib/asterisk/bin/fwconsole:12
    Wed Jun 1 15:47:02 EDT 2022 sng-php74-repository uninstalled successfully…
    Wed Jun 1 15:47:02 EDT 2022 System upgrade completed successfully.
    ^C
    .
    .
    .
    fwconsole chown
    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:
  105. Exception->() /var/www/html/admin/libraries/utility.functions.php:120
  106. die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:149
  107. PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
  108. PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
  109. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
  110. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
  111. require_once() /etc/freepbx.conf:9
  112. include_once() /var/lib/asterisk/bin/fwconsole:12

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