Open fisben opened 4 years ago
Здравствуйте, у меня не открывается сайт, в логах апач пишет:
[Sat Oct 05 23:05:38.029224 2019] [:error] [pid 23866] [client 10.10.10.10:63945] An Error occurred while handling another error:\nyii\base\InvalidArgumentException: Invalid path alias: @webroot/assets in /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php:154\nStack trace:\n#0 /opt/cbackup/vendor/yiisoft/yii2/web/AssetManager.php(211): yii\BaseYii::getAlias('@webroot/assets')\n#1 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\web\AssetManager->init()\n#2 [internal function]: yii\base\BaseObject->__construct(Array)\n#3 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(383): ReflectionClass->newInstanceArgs(Array)\n#4 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('yii\\web\\AssetMa...', Array, Array)\n#5 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('yii\\web\\AssetMa...', Array, Array)\n#6 /opt/cbackup/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)\n#7 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('assetManager', true)\n#8 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(608): yii\base\Module->get('assetManager')\n#9 /opt/cbackup/vendor/yiisoft/yii2/web/View.php(225): yii\base\Application->getAssetManager()\n#10 /opt/cbackup/vendor/yiisoft/yii2/web/View.php(285): yii\web\View->getAssetManager()\n#11 /opt/cbackup/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('app\\assets\\Alph...')\n#12 /opt/cbackup/views/layouts/plain.php(27): yii\web\AssetBundle::register(Object(yii\web\View))\n#13 /opt/cbackup/vendor/yiisoft/yii2/base/View.php(336): require('/opt/cbackup/vi...')\n#14 /opt/cbackup/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/opt/cbackup/vi...', Array)\n#15 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/opt/cbackup/vi...', Array, Object(app\controllers\SiteController))\n#16 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('<section class=...')\n#17 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorAction.php(139): yii\base\Controller->render('error', Array)\n#18 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorAction.php(118): yii\web\ErrorAction->renderHtmlResponse()\n#19 [internal function]: yii\web\ErrorAction->run()\n#20 /opt/cbackup/vendor/yiisoft/yii2/base/Action.php(94): call_user_func_array(Array, Array)\n#21 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\Action->runWithParams(Array)\n#22 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('error', Array)\n#23 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorHandler.php(108): yii\base\Module->runAction('site/error')\n#24 /opt/cbackup/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\base\InvalidConfigException))\n#25 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\InvalidConfigException))\n#26 {main}\nPrevious exception:\nyii\base\InvalidConfigException: The table does not exist: {{%user}} in /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php:353\nStack trace:\n#0 /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php(374): yii\db\ActiveRecord::getTableSchema()\n#1 /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php(177): yii\db\ActiveRecord::primaryKey()\n#2 /opt/cbackup/vendor/yiisoft/yii2/db/BaseActiveRecord.php(112): yii\db\ActiveRecord::findByCondition('ADMIN')\n#3 /opt/cbackup/models/User.php(199): yii\db\BaseActiveRecord::findOne('ADMIN')\n#4 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(579): app\models\User::findIdentity('ADMIN')\n#5 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(298): yii\web\User->getIdentityAndDurationFromCookie()\n#6 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(694): yii\web\User->loginByCookie()\n#7 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(192): yii\web\User->renewAuthStatus()\n#8 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(344): yii\web\User->getIdentity()\n#9 /opt/cbackup/vendor/yiisoft/yii2/base/Component.php(139): yii\web\User->getIsGuest()\n#10 /opt/cbackup/behaviors/LanguageBehavior.php(40): yii\base\Component->get('isGuest')\n#11 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(109): app\behaviors\LanguageBehavior->init()\n#12 [internal function]: yii\base\BaseObject->construct(Array)\n#13 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(375): ReflectionClass->newInstanceArgs(Array)\n#14 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('app\\behaviors\\L...', Array, Array)\n#15 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('app\\behaviors\\L...', Array, Array)\n#16 /opt/cbackup/vendor/yiisoft/yii2/base/Component.php(191): yii\BaseYii::createObject(Array)\n#17 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(546): yii\base\Component->set('beforeRequest', Array)\n#18 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\web\Application), Array)\n#19 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->construct(Array)\n#20 /opt/cbackup/web/index.php(38): yii\base\Application->construct(Array)\n#21 {main}\n$_SERVER = [\n 'HTTP_HOST' => 'cbackup.domain.ru',\n 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0',\n 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8',\n 'HTTP_ACCEPT_LANGUAGE' => 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',\n 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',\n 'HTTP_DNT' => '1',\n 'HTTP_CONNECTION' => 'keep-alive',\n 'HTTP_COOKIE' => '_ym_uid=1536034104217284985; _ym_d=1560735892; utma=253463051.2089322560.1536034105.1545630924.1560735892.28; __utmz=253463051.1544751244.26.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.2089322560.1536034105; _identity=cb7b543804dda950281c355d9a9be3a02d7d285908729067e04b0f58fbcd5cdba%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A52%3A%22%5B%22ADMIN%22%2C%22hlzD7dWaXYA3o2doLOW4vUCyelyfhr2D%22%2C2592000%5D%22%3B%7D; PHPSESSID=cgcdir6q79s8s3s3qi72rc2922; _csrf=10a98092e155d5d30d178558bd8a8c6a05aabc6940bad755a826998970d743c8a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22HPpBGMz66uN9u-gFkXnxOwr_h7IgiABn%22%3B%7D; language=18349af6644bab8d1de2bfd4211705353d6f65fd38cb58af2de2fed2352900a0a%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22language%22%3Bi%3A1%3Bs%3A5%3A%22en-US%22%3B%7D',\n 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',\n 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'SERVER_SIGNATURE' => '',\n 'SERVER_SOFTWARE' => 'Apache/2.4.25 (Debian)',\n 'SERVER_NAME' => 'cbackup.domain.ru',\n 'SERVER_ADDR' => '10.10.10.7',\n 'SERVER_PORT' => '80',\n 'REMOTE_ADDR' => '10.10.10.10',\n 'DOCUMENT_ROOT' => '/opt/cbackup',\n 'REQUEST_SCHEME' => 'http',\n 'CONTEXT_PREFIX' => '',\n 'CONTEXT_DOCUMENT_ROOT' => '/opt/cbackup',\n 'SERVER_ADMIN' => 'root@domain.ru',\n 'SCRIPT_FILENAME' => '/opt/cbackup/web/index.php',\n 'REMOTE_PORT' => '63945',\n 'GATEWAY_INTERFACE' => 'CGI/1.1',\n 'SERVER_PROTOCOL' => 'HTTP/1.1',\n 'REQUEST_METHOD' => 'GET',\n 'QUERY_STRING' => '',\n 'REQUEST_URI' => '/web/index.php',\n 'SCRIPT_NAME' => '/web/index.php',\n 'PHP_SELF' => '/web/index.php',\n 'REQUEST_TIME_FLOAT' => 1570284338.023,\n 'REQUEST_TIME' => 1570284338,\n
Как это исправить?
Здравствуйте, у меня не открывается сайт, в логах апач пишет:
Как это исправить?