You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bin/magento, including setup:install, fails while the database is empty: six bundled commands read store configuration in their constructors #446
app/etc/env.php from an earlier installation and an empty database, for example when you reinstall into a new database
Steps to reproduce
Point app/etc/env.php at an empty database (or empty the database).
Run bin/magento setup:install ..., or any other command such as bin/magento cache:status.
Expected result
setup:install installs into the empty database, as it does when there's no env.php.
Actual result
Every command, setup:install included, fails with:
Exception during console commands initialization: The store that was requested wasn't found. Verify the store and try again.
As soon as env.php contains an installation date, bin/magento creates the console commands of all enabled modules when it starts. These bundled commands read store configuration while they're created (through Magento\Framework\Locale\Resolver and similar dependencies), which fails while there's no store data:
Activity
rhoerr commentedon Dec 1, 2026
Ideally we should fix all six of these to also not have this issue