TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[08006] [7] could not connect to server: No route to host Is the server running on host "10.1.1.19" and accepting TCP/IP connections on port 5432?

Source File

/var/www/pps/forumpps/trunk/framework/Data/TDbConnection.php (166)

0155:         if($this->_pdo===null)
0156:         {
0157:             try
0158:             {
0159:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0160:                                     $this->getPassword(),$this->_attributes);
0161:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0162:                 $this->_active=true;
0163:             }
0164:             catch(PDOException $e)
0165:             {
0166: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0167: } 0168: } 0169: } 0170: 0171: /** 0172: * Closes the currently active DB connection. 0173: * It does nothing if the connection is already closed. 0174: */ 0175: protected function close() 0176: { 0177: $this->_pdo=null; 0178: $this->_active=false;

Stack Trace

#0 /var/www/pps/forumpps/trunk/framework/Data/TDbConnection.php(143): TDbConnection->open()
#1 /var/www/pps/forumpps/trunk/framework/Caching/TDbCache.php(126): TDbConnection->setActive(true)
#2 /var/www/pps/forumpps/trunk/framework/pradolite.php(8740): TDbCache->init(Object(TXmlElement))
#3 /var/www/pps/forumpps/trunk/framework/pradolite.php(8770): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#4 /var/www/pps/forumpps/trunk/framework/pradolite.php(8447): TApplication->initApplication()
#5 /var/www/pps/forumpps/trunk/index.php(7): TApplication->run()
#6 {main}
2024-10-03 23:53 Apache PRADO/3.1.0RC