cancel
Showing results for 
Search instead for 
Did you mean: 

Обновление Magento 2 дало сбой (2.1.7 to 2.1.8)

SOLVED

Обновление Magento 2 дало сбой (2.1.7 to 2.1.8)

 

Здравствуйте! Помогите разобрать проблему, рухнуло все при попытке обновить Magento с 2.1.7 до 2.1.8:

совершил обновление через CLI (поэтапно)

bin/magento maintenance:enable
composer require magento/product-community-edition 2.1.8 --no-update
composer update
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf var/generation/*
chmod +x bin/magento
bin/magento setup:upgrade
bin/magento maintenance:disable

после данных действий при заходе на главную получаем:

1 exception(s):Exception #0 (Exception): Warning: SessionHandler::read(): Session data file is not created by your uid in /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
Exception #0 (Exception): Warning: SessionHandler::read(): Session data file is not created by your uid in /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/ua0nqF...', 22, Array)
#1 /var/www/ua0nqF/ua.teplo.com/vendor/oyejorge/less.php/lessc.inc.php(177): file_put_contents('/var/www/ua0nqF...', '.banner-gruod {...')
#2 /var/www/ua0nqF/ua.teplo.com/app/code/Plazathemes/Layout/Block/Layout.php(43): lessc->compileFile('/var/www/ua0nqF...', '/var/www/ua0nqF...')
#3 /var/www/ua0nqF/ua.teplo.com/app/design/frontend/bigone/bigone3/Plazathemes_Layout/templates/html/header.phtml(1): Plazathemes\Layout\Block\Layout->renderFileLessToCss()
#4 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/ua0nqF...')
#5 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Element/Template.php(255): Magento\Framework\View\TemplateEngine\Php->render(Object(Plazathemes\Layout\Block\Layout), '/var/www/ua0nqF...', Array)
#6 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Element/Template.php(279): Magento\Framework\View\Element\Template->fetchView('/var/www/ua0nqF...')
#7 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Element/AbstractBlock.php(659): Magento\Framework\View\Element\Template->_toHtml()
#8 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Element\AbstractBlock->toHtml()
#9 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(518): Magento\Framework\View\Layout->_renderBlock('custom_header')
#10 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('custom_header')
#11 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout->renderElement('custom_header')
#12 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('page.wrapper')
#13 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#14 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(569): Magento\Framework\View\Layout->renderElement('page.wrapper')
#15 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(520): Magento\Framework\View\Layout->_renderContainer('root')
#16 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(472): Magento\Framework\View\Layout->renderNonCachedElement('root')
#17 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Layout.php(938): Magento\Framework\View\Layout->renderElement('root')
#18 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Framework\View\Layout->getOutput()
#19 /var/www/ua0nqF/ua.teplo.com/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#20 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Result/Page.php(243): Magento\Framework\View\Layout\Interceptor->getOutput()
#21 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/View/Result/Layout.php(164): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#22 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#23 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)
#24 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderResult', Object(Magento\Framework\View\Result\Page\Interceptor), Array, 'result-varnish-...')
#25 /var/www/ua0nqF/ua.teplo.com/vendor/magento/module-page-cache/Model/Controller/Result/VarnishPlugin.php(74): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#26 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\Controller\Result\VarnishPlugin->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#27 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'renderResult', Object(Magento\Framework\View\Result\Page\Interceptor), Array, 'result-builtin-...')
#28 /var/www/ua0nqF/ua.teplo.com/vendor/magento/module-page-cache/Model/Controller/Result/BuiltinPlugin.php(67): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#29 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\Controller\Result\BuiltinPlugin->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor))
#30 /var/www/ua0nqF/ua.teplo.com/var/generation/Magento/Framework/View/Result/Page/Interceptor.php(26): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#31 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#32 /var/www/ua0nqF/ua.teplo.com/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#33 /var/www/ua0nqF/ua.teplo.com/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#34 {main}

откат обратно ничего не дал:

php bin/magento setup:rollback -c 1520440464_filesystem_code.tgz -m 1520440464_filesystem_media.tgz -d 1520440464_db.sql

при выполнении: комманды  php bin/magento --version
получаем ответ Magento CLI version 2.1.7

т.е. откатило на старое, но по факту имеем ошибку... очистка кэша в ручную и изменение прав на папки и файлы ситуацию не поправило...

Я столько не выпью...)))

1 REPLY

Re: Обновление Magento 2 дало сбой (2.1.7 to 2.1.8)

Протанцевав с бубном пару дней решил вопрос удалением темы. Обновление проходит нормально на дефолтной.