Database_Exception [ 0 ]: pg_connect(): Unable to connect to PostgreSQL server: could not translate host name "institute.chqora5asvdb.ap-northeast-2.rds.amazonaws.com" to address: System error

MODPATH/kohana-postgresql/classes/Kohana/Database/PostgreSQL.php [ 84 ]

79 				? pg_connect($this->_config['connection']['info'], PGSQL_CONNECT_FORCE_NEW)
80 				: pg_pconnect($this->_config['connection']['info'], PGSQL_CONNECT_FORCE_NEW);
81 		}
82 		catch (ErrorException $e)
83 		{
84 			throw new Database_Exception(':error', array(':error' => $e->getMessage()));
85 		}
86 
87 		if ( ! is_resource($this->_connection))
88 			throw new Database_Exception('Unable to connect to PostgreSQL ":name"', array(':name' => $this->_instance));
89 
  1. MODPATH/kohana-postgresql/classes/Kohana/Database/PostgreSQL.php [ 157 ] » Kohana_Database_PostgreSQL->connect()

  2. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_PostgreSQL->query(arguments)

  3. APPPATH/views/sub/wr1.php [ 181 ] » Kohana_Database_Query->execute()

  4. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  7. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  8. APPPATH/classes/Controller/Main.php [ 395 ] » Kohana_Response->body(arguments)

  9. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Main->action_sub()

  10. {PHP internal call} » Kohana_Controller->execute()

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  13. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  14. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment