Free bpx Exception SQL

Help me !!!

Exception thrown with message “SQLSTATE[HY000] [2002] No such file or directory::SQLSTATE[HY000] [2002] No such file or directory”

Stacktrace:
#7 Exception in /var/www/html/admin/libraries/utility.functions.php:204
#6 die_freepbx in /var/www/html/admin/libraries/BMO/Database.class.php:142
#5 PDOException in /var/www/html/admin/libraries/BMO/Database.class.php:137
#4 PDO:__construct in /var/www/html/admin/libraries/BMO/Database.class.php:137
#3 FreePBX\Database:__construct in /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
#2 FreePBX:__construct in /var/www/html/admin/bootstrap.php:153
#1 require_once in /etc/freepbx.conf:9
#0 include_once in /var/www/html/admin/config.php:100

GET Data empty

POST Data empty

Files empty

Cookies

lang pt_BR
_ga GA1.1.1671520960.1534536506
_gid GA1.1.729292427.1539798243
PHPSESSID 76p46oakmd0ohr2ss8idsvlmi0

Session

langdirection ltr
module_name sipsettings
module_page sipsettings
AMP_user ampuser Object ( [username] => admin [id] => [password:ampuser:private] => 7c4a8d09ca3762af61e59520943dc26494f8941b [extension_high:ampuser:private] => [extension_low:ampuser:private] => [sections:ampuser:private] => Array ( [0] => * ) [mode:ampuser:private] => database [opmode:ampuser:private] => [lang] => [tz] => => [timeformat] => => [_lastactivity] => 1539865954 )
fwmsg Array ( [last_dest] => from-did-direct,33333,1 )

Server/Request Data

UNIQUE_ID [email protected]
SCRIPT_URL /admin/config.php
SCRIPT_URI http://192.168.100.53/admin/config.php
HTACCESS on
HTTP_HOST 192.168.100.53
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
HTTP_DNT 1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_COOKIE lang=pt_BR; _ga=GA1.1.1671520960.1534536506; _gid=GA1.1.729292427.1539798243; PHPSESSID=76p46oakmd0ohr2ss8idsvlmi0
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (Sangoma) OpenSSL/1.0.1e-fips PHP/5.6.32
SERVER_NAME 192.168.100.53
SERVER_ADDR 192.168.100.53
SERVER_PORT 80
REMOTE_ADDR 192.168.100.128
DOCUMENT_ROOT /var/www/html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /var/www/html/admin/config.php
REMOTE_PORT 19050
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /admin/config.php
SCRIPT_NAME /admin/config.php
PHP_SELF /admin/config.php
REQUEST_TIME_FLOAT 1539866216.335
REQUEST_TIME 1539866216

Environment Variables empty

Registered Handlers

  1. Whoops\Handler\PrettyPageHandler

Stack frames (8)
7 Exception/var/www/html/admin/libraries/utility.functions.php 204

6 die_freepbx/var/www/html/admin/libraries/BMO/Database.class.php 142

5 PDOException /var/www/html/admin/libraries/BMO/Database.class.php 137

4 PDO__construct /var/www/html/admin/libraries/BMO/ Database.class.php 137

3 FreePBX \Database__construct/var/www/html/admin/libraries/BMO/FreePBX.class.php 71

2FreePBX __construct /var/www/html/admin/bootstrap.php 153

1 require_once /etc/freepbx.conf 9

0 include_once /var/www/html/admin/ config.php 100

make sure you have in /etc/hosts

127.0.0.1   localhost.localdomain localhost localhost4 localhost4.localdomain4 freepbx.sangoma.local
::1         localhost.localdomain localhost6 localhost6.localdomain6

after restarting a few times it worked again. and after a while back to give problem.

something is rewriting your hosts file probably

1 Like

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