Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] [help] Suddenly get: php_network_getaddresses: getaddrinfo failed: No such host is known.

cocomangcocomang New
edited November 2014 in Vanilla 2.0 - 2.8

After 8 month without any problems my forum suddenly says:

Something has gone wrong. (We've run into a problem and are unable to handle this request right now.
Please check back in a little while).

I did not change anything, the site was still running at 2014-11-17 19:12:48
I set the debug to TRUE and get the detail error message:

Fatal Error in Gdn_Database.Connection();

An error occurred while attempting to connect to the database
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known.
The error occurred on or near: E:...\wwwroot\forum\library\database\class.database.php:

        64:             if ($Timeout)
        65:                throw new Exception(ErrorMessage('Timeout while connecting to the database', $this->ClassName, 'Connection', $ex->getMessage()), 504);
        67:             trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
        68:          }
        69:       }
        71:       return $this->_Connection;


    [E:\...\wwwroot\forum\library\database\class.database.php:67] PHP::trigger_error();
    [E:\...\wwwroot\forum\library\database\class.database.php:297] Gdn_Database->Connection();
    [E:\...\wwwroot\forum\library\database\class.sqldriver.php:1650] Gdn_Database->Query();
    [E:\...\wwwroot\forum\library\database\class.sqldriver.php:674] Gdn_SQLDriver->Query();
    [E:\...\wwwroot\forum\applications\dashboard\models\class.permissionmodel.php:524] Gdn_SQLDriver->Get();
    [E:\...\wwwroot\forum\applications\dashboard\models\class.permissionmodel.php:235] PermissionModel->PermissionColumns();
    [E:\...\wwwroot\forum\applications\dashboard\models\class.usermodel.php:786] PermissionModel->CachePermissions();
    [E:\...\wwwroot\forum\library\core\class.session.php:357] UserModel->DefinePermissions();
    [E:\...\wwwroot\forum\library\core\class.auth.php:41] Gdn_Session->Start();
    [E:\...\wwwroot\forum\bootstrap.php:207] Gdn_Auth->StartAuthenticator();
    [E:\...\wwwroot\forum\index.php:33] PHP::require_once();

Additional information for support personnel:

    Application: Vanilla
    Application Version: 2.1.3
    PHP Version: 5.3.26
    Operating System: WINNT
    Server Software: Microsoft-IIS/8.0
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
    Request Uri: /forum/
    Controller: Gdn_Database
    Method: Connection

Any idea what could go wrong and what I should do in this case?


Sign In or Register to comment.