CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1129] Host '172.31.32.82' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

/var/www/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /var/www/html/SiteOfertas/views/site/especiais/festivaldabeleza.php(20): CActiveRecord->findAll(array("condition" => "id_of_situacao = 1 and id_of_oferta IN (4637,4667,4564,4663,4561...", "order" => "id_of_oferta DESC"))
15     <?php $ofertas = OfOferta::model()->findAll(array(
16                 'condition' => 'id_of_situacao = 1 and id_of_oferta IN ('.  implode(',', array(
17                     4637,4667,4564,4663,4561,4654,4664,4673,4674,4631,4668,4670,4629,4630,4665,4559,4675,4639,4641,4566,4567,4671, 4682
18                 )).')',
19                 'order' => 'id_of_oferta DESC'
20         ));
21         shuffle($ofertas);
22          ?>
23     
24     <?php
25 
#12
+
 /var/www/html/SiteOfertas/controllers/SiteController.php(228): CController->render("especiais/festivaldabeleza")
223     }
224     public function actionLanches(){
225         $this->render('especiais/festivaldolanche');
226     }
227     public function actionfestivaldabeleza(){
228         $this->render('especiais/festivaldabeleza');
229     }
230     public function actionespecialgastronomico(){
231         $this->render('especiais/especialgastronomico');
232     }
233     public function action8tentaculos(){
#20
+
 /var/www/html/ofertas.php(92): CApplication->run()
87 //    'condition' => 'id_ofc_situacao = 1',
88 //    'order' => 'porcentagem DESC'
89 //    ));
90 //Yii::app()->user->setState('desconto', $modelOfc->porcentagem);
91 
92 $app->run();
2024-03-28 08:32:59 Apache/2.4.52 (Amazon) OpenSSL/1.0.2k-fips PHP/5.4.45 Yii Framework/1.1.15