An Error occurred while handling another error:
exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php:600
Stack trace:
#0 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(600): PDO->__construct('mysql:host=127....', 'duoshitong_yule', 'n7HGt8Za7eL5xpt...', NULL)
#1 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(542): yii\db\Connection->createPdoInstance()
#2 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(861): yii\db\Connection->open()
#3 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(848): yii\db\Connection->getMasterPdo()
#4 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(219): yii\db\Connection->getSlavePdo()
#5 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(894): yii\db\Command->prepare(true)
#6 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(362): yii\db\Command->queryInternal('fetchAll', NULL)
#7 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Query.php(210): yii\db\Command->queryAll()
#8 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#9 /www/wwwroot/yule.duoshitong.com/common/models/Sites.php(84): yii\db\ActiveQuery->all()
#10 /www/wwwroot/yule.duoshitong.com/common/libs/Resource.php(101): common\models\Sites::getAllSites()
#11 /www/wwwroot/yule.duoshitong.com/common/core/front/FrontView.php(37): common\libs\Resource::getHomeTheme()
#12 /www/wwwroot/yule.duoshitong.com/common/core/base/BaseView.php(29): common\core\front\FrontView->setTheme()
#13 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/web/ErrorHandler.php(241): common\core\base\BaseView->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler))
#14 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#15 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\db\Exception))
#16 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\db\Exception))
#17 {main}

Next exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [1040] Too many connections' in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php:547
Stack trace:
#0 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(861): yii\db\Connection->open()
#1 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(848): yii\db\Connection->getMasterPdo()
#2 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(219): yii\db\Connection->getSlavePdo()
#3 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(894): yii\db\Command->prepare(true)
#4 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(362): yii\db\Command->queryInternal('fetchAll', NULL)
#5 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Query.php(210): yii\db\Command->queryAll()
#6 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#7 /www/wwwroot/yule.duoshitong.com/common/models/Sites.php(84): yii\db\ActiveQuery->all()
#8 /www/wwwroot/yule.duoshitong.com/common/libs/Resource.php(101): common\models\Sites::getAllSites()
#9 /www/wwwroot/yule.duoshitong.com/common/core/front/FrontView.php(37): common\libs\Resource::getHomeTheme()
#10 /www/wwwroot/yule.duoshitong.com/common/core/base/BaseView.php(29): common\core\front\FrontView->setTheme()
#11 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/web/ErrorHandler.php(241): common\core\base\BaseView->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler))
#12 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#13 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\db\Exception))
#14 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\db\Exception))
#15 {main}
Additional Information:

Previous exception:
exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php:600
Stack trace:
#0 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(600): PDO->__construct('mysql:host=127....', 'duoshitong_yule', 'n7HGt8Za7eL5xpt...', NULL)
#1 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(542): yii\db\Connection->createPdoInstance()
#2 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(861): yii\db\Connection->open()
#3 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(848): yii\db\Connection->getMasterPdo()
#4 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(219): yii\db\Connection->getSlavePdo()
#5 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(894): yii\db\Command->prepare(true)
#6 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(362): yii\db\Command->queryInternal('fetchAll', NULL)
#7 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Query.php(210): yii\db\Command->queryAll()
#8 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#9 /www/wwwroot/yule.duoshitong.com/common/models/Sites.php(84): yii\db\ActiveQuery->all()
#10 /www/wwwroot/yule.duoshitong.com/frontend/web/index.php(44): common\models\Sites::getAllSites()
#11 {main}

Next exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [1040] Too many connections' in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php:547
Stack trace:
#0 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(861): yii\db\Connection->open()
#1 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Connection.php(848): yii\db\Connection->getMasterPdo()
#2 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(219): yii\db\Connection->getSlavePdo()
#3 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(894): yii\db\Command->prepare(true)
#4 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Command.php(362): yii\db\Command->queryInternal('fetchAll', NULL)
#5 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/Query.php(210): yii\db\Command->queryAll()
#6 /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#7 /www/wwwroot/yule.duoshitong.com/common/models/Sites.php(84): yii\db\ActiveQuery->all()
#8 /www/wwwroot/yule.duoshitong.com/frontend/web/index.php(44): common\models\Sites::getAllSites()
#9 {main}
Additional Information:

Warning: file_put_contents(/www/wwwroot/yule.duoshitong.com/common/runtime/debug/5f0262a7e8cbf.data): failed to open stream: Permission denied in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2-debug/LogTarget.php on line 57

Warning: touch(): Utime failed: Permission denied in /www/wwwroot/yule.duoshitong.com/vendor/yiisoft/yii2-debug/LogTarget.php on line 75