I have a newly installed FreePBX Distro (ver 5.211.65) deployment and every time the server loses power and isn’t shut down gracefully (I realize this shouldn’t happen, but it does) the DB never seems to come back on restart. I get the following error when trying to log into the GUI:
FATAL ERROR
DB Error: connect failed
Trace Back
/var/www/html/admin/libraries/db_connect.php:63 die_freepbx()
[0]: DB Error: connect failed
/var/www/html/admin/bootstrap.php:98 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php
/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php
/var/www/html/admin/config.php:109 include_once()
[0]: /etc/freepbx.conf
I am way out of practice with Linux, Asterisk, etc and was at a moderate skill level to begin with, so as I look online for support, I am able to get certain things working and then run into more roadblocks - permissions denied, etc.
Is it normal that I would so consistently have this issue? I’ve tried re-installing and then as soon as I pull power, the same thing happens. I’m now doing it on purpose because reality is that in real life, this could lose power and I rather resolve the issue now, before the system is in full deployment.
I’ve already searched the forums and there are threads that address pieces of this, but following those steps doesn’t fix this specific issue.
Am I messing something up during install? Thoughts?
Any direction is greatly appreciated!