craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 627 forks source link

craft\web\ServiceUnavailableHttpException on initial load #7494

Closed kylerits closed 3 years ago

kylerits commented 3 years ago

Description

I am having issues with the initial load of my craft site. I am not able to access to home page by directly link, however I login through /admin and link to the homepage via the 'View Site' button, the site loads just fine. The stack trace is shown below:

craft\web\ServiceUnavailableHttpException in <project-path>/craft/vendor/craftcms/cms/src/web/Controller.php:165
Stack trace:
#0 <project-path>/craft/vendor/craftcms/cms/src/controllers/TemplatesController.php(71): craft\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 <project-path>/craft/vendor/yiisoft/yii2/base/Controller.php(178): craft\controllers\TemplatesController->beforeAction(Object(yii\base\InlineAction))
#2 <project-path>/craft/vendor/craftcms/cms/src/web/Controller.php(190): yii\base\Controller->runAction('render', Array)
#3 <project-path>/craft/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('render', Array)
#4 <project-path>/craft/vendor/craftcms/cms/src/web/Application.php(274): yii\base\Module->runAction('templates/rende...', Array)
#5 <project-path>/craft/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('templates/rende...', Array)
#6 <project-path>/craft/vendor/craftcms/cms/src/web/Application.php(259): yii\web\Application->handleRequest(Object(craft\web\Request))
#7 <project-path>/craft/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#8 <project-path>/craft/web/index.php(22): yii\base\Application->run()
#9 /Users/kylerits/.composer/vendor/laravel/valet/server.php(214): require('/Users/kylerits...')
#10 {main}

Steps to reproduce

  1. Directly rout to site url
  2. Enjoy error

Additional info

kylerits commented 3 years ago

Adding 'isSystemLive' => true to craft/config/general.php seems to have resolved this issue.

brandonkelly commented 3 years ago

Had it been set to false ?