4

When i doing sudo bin/magento indexer:reindex, there's 2 error showed like in error below.

Error :

Design Config Grid index has been rebuilt successfully in 00:00:00
Customer Grid index has been rebuilt successfully in 00:00:00
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:02
Product EAV index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Catalog rule indexing failed. See details in exception log.
Catalog rule indexing failed. See details in exception log.
Catalog Search index has been rebuilt successfully in 00:00:01

And when i check the exception log, there's an error like in the code below.

Exception :

[2017年12月07日 04:34:17] main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): Unable to unserialize value. at /var/www/html/myshop.com/public_html/vendor/magento/framework/Serialize/Serializer/Json.php:39)"} []
[2017年12月07日 04:34:17] main.CRITICAL: Catalog rule indexing failed. See details in exception log. {"exception":"[object] (Magento\\Framework\\Exception\\LocalizedException(code: 0): Catalog rule indexing failed. See details in exception log. at /var/www/html/myshop.com/public_html/vendor/magento/module-catalog-rule/Model/Indexer/IndexBuilder.php:286)"} []

How can i fix this?

asked Dec 7, 2017 at 4:44
1
  • In 2.2 Magento switched from php serialize function to json. For some reasons, your instance contains invalid conditions or actions in catalog rules. I suggest to recreate catalog rules and run the same cli command again. Commented Jan 5, 2018 at 16:29

2 Answers 2

0

I believe it may be a permissions issue, where Magento is setting permissions for generated files that are restricted on whatever sever you're operating on.

I think you could solve this by creating magento_umask file in the root directory with the appropriate umask for the server.

SRC: http://devdocs.magento.com/guides/v2.2/install-gde/install/post-install-umask.html best of luck.

answered Jan 5, 2018 at 13:38
0

Have you try to run following command

php bin/magento indexer:reset catalogrule_rule May be you need to reset those indexer which you have issue.

answered Jul 17, 2020 at 6:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.