Adobe Commerce 2.4.0 installation fails with outdated stores cache
This article provides a solution for the issue where your Adobe Commerce 2.4.0 installation fails with the error message: The default website isn't defined. Set the website and try again. displayed in the console.
Affected products and versions
- Adobe Commerce on cloud infrastructure 2.4.0
- Adobe Commerce on-premises 2.4.0
A third-party extension with dependencies on APIs for the Store module in CLI commands is configured as required in
composer.json. This causes the installation of Adobe Commerce 2.4.0 to fail with an error message: The default website isn't defined. Set the website and try again. displayed in the console.
The issue appears for the third-party extensions which have dependencies on stores in their CLI commands. One is Amazon Sales Channels.
Before the installation of Adobe Commerce 2.4.0, merchants have to:
- Remove these third-party extensions from
- Install Adobe Commerce without extensions.
- Add the extensions after the installation.
The issue will be fixed in the scope of 2.4.1 release.