magento2: Upgrade from 2.3.0 => 2.3.1 failed. "Unable to unserialize value"
Hey,
I was trying to upgrade from Magento 2.3.0 to Magento 2.3.1 via composer. While downloading all dependencies worked, the setup:upgrade command fails instantly. Any way to fix this? Details below:
Preconditions (*)
- Magento 2.3.0
- No changes made to any core code files
- PHP 7.2.16
- memory_limit 2G
Steps to reproduce (*)
- Change directory to the Magento root.
- Run
composer require magento/product-community-edition 2.3.1 --no-update - Run
composer update - Run
php bin/magento setup:upgrade
Expected result (*)
- The upgrade procedure should start
- After that you should be able to compile, deploy etc.
- Upgrade should succeed
Actual result (*)
- When running setup:upgrade the following error appears: Unable to unserialize value. Error: Syntax error
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 18 (4 by maintainers)
Clearing redis cache (
redis-cli flushall) resolved the issue for me.@abcpremium Flush your redis cache. And you should be all set. I am facing different error during compilation.
In Generator.php line 218:
Source class “\Magento\Elasticsearch6\Model\Adapter\FieldMapper\ProductField” for “Magento\Elasticsearch6\Model\Adapter\FieldMapper\P roductFieldMapper” generation does not exist.
This should be part of the steps outlined in the upgrade document (https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html). The command should be run after
composer updateand beforebin/magento cache:clean.The Magento team should take note of this.