This guide will help you.
This can happen when we use any incorrect command to update the Magento.
In this context, we shall look into how to tackle this Magento problem.
This happened after applying the update command in Magento 2.4.1.
Here is the command he used for upgrading the Magento version:
php magento setup:install
As a result of the above command, the below message appears:
[Progress: 1347 / 1347]
[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: /admin_1d6ja1
Now, let us see how our Support Experts resolve this Magento problem.
i. First, we make sure if the customer was in a production mode or in a developer mode.
ii. Since he was in production mode, we suggest running the below command to upgrade the Magento:
$ php bin/magento setup:upgrade --keep-generated
Here, in the above command, the –keep-generated is an optional argument that does not update static view files.
We can use it only in production mode. It should not be used in developer mode.
iii. Finally, after that, we can clean the cache.
For that, we run the below command:
$ bin/magento cache:clean