If I call php bin/magento setup:upgrade I get:

“The store that was requested wasn't found. Verify the store and try again.”

What can I do?

4 Answers 4


It's likely that one of your setup scripts is failing. Check system.log,debug.log or exception.log in var/log directory to see if you can get a stack trace to find the problematic script.

  • Nothing in the logs.
    – Black
    Commented Feb 8, 2023 at 9:20

Please check the below possible solution for this. Before executing the below queries, Please checks the respected values in the database table.

UPDATE `store` SET store_id = 0 WHERE code='admin';
UPDATE `store_group` SET group_id = 0 WHERE name='Default';
UPDATE `store_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
  • I still get the error.
    – Black
    Commented Feb 7, 2023 at 16:41

I solved it by disabling the module Litespeed_Litemage


We had the same issue but it related to a multi-store setup. With Litespeed active, it default to a store of ID 1. We had to manually set this to avoid it applying the default store ID and causing an error in indexing, upgrading etc.

Setting is under Configuration > Advanced > Litemage Cache

Litemage Settings

Thanks to Silas Palmer on this post for debugging tips: Magento 2: Requested store is not found

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.