Magento 2 Error Can’t run this operation: deployment configuration is absent.

We all know that Magento has CLI command. You can call Magento CLI commands using shortcuts instead of the full command name. For example, you can call

bin/magento setup:upgrade

using bin/magento

If you sees this error:

 Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options.

Please check whether your two files are exist:

1. app/etc/env.php
2. app/etc/config.php

Next, check the settings of dababase and redis connection information, credentials are correct.

Once the above are correctly set, rerun the command

bin/magento setup:upgrade

You might face another error


Fatal error: Uncaught Error: Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface

When seeing this error, do run another command below:

php -dmemory_limit=-1 bin/magento setup:di:compile

Note, using “-dmemory_limit=-1″ is so that you won’t get “Allowed memory size of 134217728 bytes exhausted” error.

Hope this helped someone out there.

By Keenlio, January 5, 2021

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


seven × 4 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>