CDbException

CDbConnection failed to open the DB connection: SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: FATAL: the database system is starting up

/data/www/hosting/yii/framework/db/CDbConnection.php(399)

387                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
388             try
389             {
390                 Yii::trace('Opening DB connection','system.db.CDbConnection');
391                 $this->_pdo=$this->createPdoInstance();
392                 $this->initConnection($this->_pdo);
393                 $this->_active=true;
394             }
395             catch(PDOException $e)
396             {
397                 if(YII_DEBUG)
398                 {
399                     throw new CDbException('CDbConnection failed to open the DB connection: '.
400                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
401                 }
402                 else
403                 {
404                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
405                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
406                 }
407             }
408         }
409     }
410 
411     /**

Stack Trace

#8
+
 /data/www/hosting/directorio.uc.edu.ve/directorio/themes/chame_blue/views/site/index.php(97): CActiveRecord->__construct("search")
092             <div>
093             <div class =  "altura2">
094             <div  id ="testDiv" >
095                      <?php 
096                          
097                          $model      =    new Personas('search');
098                          $cadena     =    ""; 
099                          $letra      =    "";
100                          if(isset($_GET['letra'])) 
101                          {
102                              $letra  =  strtolower($_GET['letra']);
#13
+
 /data/www/hosting/directorio.uc.edu.ve/directorio/protected/controllers/SiteController.php(99): CController->render("index", "6516")
094             {
095                     if(isset($_GET['id']))
096                     {
097                              $id   = $_GET['id'];
098                              $cond = $id;
099                              $this->render($viewindex,$cond);
100                              //$this->redirect(array("index",'id'=>$id));
101                     }
102                     else
103                     {
104                             $model        =    new  Vfichapersona;
#21
+
 /data/www/hosting/directorio.uc.edu.ve/directorio/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-18 22:36:34 Apache/2.4.52 (Ubuntu) Yii Framework/1.1.19