Magento2: magento 2.2 after update composer can't run Cli

Created on 28 Sep 2017  路  7Comments  路  Source: magento/magento2


Preconditions




    1. 2.

Steps to reproduce

  1. composer require magento/product-community-edition 2.2 --no-update
  2. composer update
    3.create file un_mask in root folder with value 022
  3. php bin/magento setup:upgrade

Expected result

  1. [InvalidArgumentException]
    Unable to unserialize value.

Actual result

  1. [Screenshot, logs]
    image

Format is valid non-issue

Most helpful comment

@orlangur you right. I flushed cache for redis via
redis-cli flushall
my problem resolved

All 7 comments

create file u_mask in root folder with value 022

Without such step there will be no error?

I have this problem as well. It happens without umask, adding a umask doesn't fix the problem for me.

Do you have any third-party extensions or customizations?

Please check https://devdocs.magento.com/guides/v2.2/release-notes/backward-incompatible-changes.html#database-data-format-changes in order to adopt your instance.

Thanks for pointing this out. This wasn't what was causing the issue, but this does effect some of my modules.

Solution for my problem was too simple, first run:
php bin/magento cache:flush

Oh, this is always first thing to try :) @tomnyson did cache clearing maybe solves your issue as well? Otherwise please confirm the problem not comes from any third-party extension or custom implementation.

@orlangur you right. I flushed cache for redis via
redis-cli flushall
my problem resolved

Ok, thanks for quick response, http://devdocs.magento.com/guides/v2.2/comp-mgr/cli/cli-upgrade.html#upgrade-cli-upgr currently covers only cache stored in file system, probably would be better to replace by php bin/magento cache:flush.

Was this page helpful?
0 / 5 - 0 ratings