0

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?

Black
  • 3,310
  • 4
  • 31
  • 110

4 Answers4

1

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.

Liam Toohey
  • 452
  • 3
  • 13
0

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

SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
Jitendra Patel
  • 954
  • 1
  • 7
  • 21
0

I solved it by disabling the module Litespeed_Litemage

Black
  • 3,310
  • 4
  • 31
  • 110
0

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

devgroop
  • 1
  • 1