Class: PDOException:
Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for rm-2zeu15h23144ugr5tro.mysql.rds.aliyuncs.com failed: Name or service not known
File=/var/www/loserhub/app/config/services.php
Line=39
#0 [internal function]: PDO->__construct('mysql:charset=u...', 'loserhub', Object(SensitiveParameterValue), Array)
#1 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->connect(Array)
#2 [internal function]: Phalcon\Db\Adapter\Pdo\AbstractPdo->__construct(Array)
#3 /var/www/loserhub/app/config/services.php(39): Phalcon\Db\Adapter\Pdo\Mysql->__construct(Array)
#4 [internal function]: Closure->{closure}()
#5 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))
#6 [internal function]: Phalcon\Di\Di->get('db', NULL)
#7 [internal function]: Phalcon\Di\Di->getShared('db')
#8 [internal function]: Phalcon\Mvc\Model\Manager->getConnection(Object(Loserhub\User\Models\UserGroupPosts), Array)
#9 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Loserhub\User\Models\UserGroupPosts))
#10 [internal function]: Phalcon\Mvc\Model->getReadConnection()
#11 [internal function]: Phalcon\Mvc\Model\Query->getReadConnection(Object(Loserhub\User\Models\UserGroupPosts), Array, Array, Array)
#12 [internal function]: Phalcon\Mvc\Model\Query->executeSelect(Array, Array, Array)
#13 [internal function]: Phalcon\Mvc\Model\Query->execute()
#14 /var/www/loserhub/app/modules/common/models/UserGroupPosts.php(631): Phalcon\Mvc\Model\Manager->executeQuery('SELECT UGP.id, ...', Array)
#15 /var/www/loserhub/app/modules/common/controllers/PostsController.php(191): Loserhub\Common\Models\UserGroupPosts->findHotWithUsingLanguage(6, Object(Carbon\Carbon), Array)
#16 /var/www/loserhub/app/modules/frontend/controllers/IndexController.php(67): Loserhub\Common\Controllers\PostsController->getAllHotsPostByDay(9999, 6, Array, NULL)
#17 [internal function]: Loserhub\Frontend\Controllers\IndexController->indexAction()
#18 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(Loserhub\Frontend\Controllers\IndexController), 'indexAction', Array)
#19 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#20 /var/www/loserhub/app/bootstrap_web.php(100): Phalcon\Mvc\Application->handle('/')
#21 /var/www/loserhub/public/index.php(17): require('/var/www/loserh...')
#22 {main}