Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 503 – Service Unavailable after upgrade to RC2 #5463

Closed
faradaytrs opened this issue Jan 20, 2020 · 6 comments
Closed

HTTP 503 – Service Unavailable after upgrade to RC2 #5463

faradaytrs opened this issue Jan 20, 2020 · 6 comments

Comments

@faradaytrs
Copy link

faradaytrs commented Jan 20, 2020

Description

HTTP 503 – Service Unavailable – craft\web\ServiceUnavailableHttpException

Steps to reproduce

Upgraded from last craft 3.3 version using composer and made composer update
Admin panel is also unaccessible with error:
Unknown Property – yii\base\UnknownPropertyException
Setting unknown property: craft\events\TemplateEvent::templateMode

Additional info

  • Craft version: 3.4.0-RC2
  • PHP version: PHP 7.4.1
  • Database driver & version: mysqlnd 7.4.1
  • Plugins & versions:
    "acoustep/craft-easymde": "0.1.3",
    "aelvan/imager": "v2.3.1",
    "bolden/htmlcache": "1.0.15",
    "codemonauts/craft-instagram-feed": "^1.0",
    "craftcms/cms": "3.4.0-RC2",
    "craftcms/redactor": "2.5.0",
    "ether/seo": "3.6.3",
    "putyourlightson/craft-entry-count": "^2.0",
    "rynpsc/craft-phone-number": "^1.2",
    "superbig/craft3-http2serverpush": "1.0.1",
    "topshelfcraft/wordsmith": "^3.1",
    "vlucas/phpdotenv": "^3.4.0"

Log

craft\web\ServiceUnavailableHttpException in /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/Application.php:651
Stack trace:
#0 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/Application.php(222): craft\web\Application->_processUpdateLogic(Object(craft\web\Request))
#1 /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#2 /Users/imax/PhpstormProjects/globus/web/index.php(21): yii\base\Application->run()
#3 {main}

Admin panel log:

yii\base\UnknownPropertyException: Setting unknown property: craft\events\TemplateEvent::templateMode in /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/base/BaseObject.php:163
Stack trace:
#0 /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/BaseYii.php(558): yii\base\BaseObject->__set('templateMode', 'cp')
#1 /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(craft\events\TemplateEvent), Array)
#2 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/View.php(1605): yii\base\BaseObject->__construct(Array)
#3 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/View.php(435): craft\web\View->beforeRenderPageTemplate('_special/dbupda...', Array, 'cp')
#4 /Users/imax/PhpstormProjects/globus/plugins/magic/vendor/craftcms/cms/src/web/Controller.php(243): craft\web\View->renderPageTemplate('_special/dbupda...', Array)
#5 /Users/imax/PhpstormProjects/globus/plugins/magic/vendor/craftcms/cms/src/controllers/TemplatesController.php(128): craft\web\Controller->renderTemplate('_special/dbupda...')
#6 [internal function]: craft\controllers\TemplatesController->actionManualUpdateNotification()
#7 /Users/imax/PhpstormProjects/globus/plugins/magic/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#8 /Users/imax/PhpstormProjects/globus/plugins/magic/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#9 /Users/imax/PhpstormProjects/globus/plugins/magic/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('manual-update-n...', Array)
#10 /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('manual-update-n...', Array)
#11 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/Application.php(290): yii\base\Module->runAction('templates/manua...', Array)
#12 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/Application.php(634): craft\web\Application->runAction('templates/manua...')
#13 /Users/imax/PhpstormProjects/globus/vendor/craftcms/cms/src/web/Application.php(222): craft\web\Application->_processUpdateLogic(Object(craft\web\Request))
#14 /Users/imax/PhpstormProjects/globus/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#15 /Users/imax/PhpstormProjects/globus/web/index.php(21): yii\base\Application->run()
#16 {main}
@andris-sevcenko
Copy link
Contributor

Can you try nuking the vendor folder, running composer dump-autoload and then running composer update again?

@faradaytrs
Copy link
Author

Can you try nuking the vendor folder, running composer dump-autoload and then running composer update again?

i did and it had no effect

@andris-sevcenko
Copy link
Contributor

Is your vendor/craftcms/cms/src/events/TemplateEvent.php file the same as https://github.com/craftcms/cms/blob/3.4/src/events/TemplateEvent.php?

@andris-sevcenko
Copy link
Contributor

@faradaytrs what ended up being the issue?

@faradaytrs
Copy link
Author

@faradaytrs what ended up being the issue?

There was a plugin which directly depended on craftcms 3.3. I found out that removing that and running composer update solved the issue.

@andris-sevcenko
Copy link
Contributor

Perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants