Hi,
when i run the php bin/magento setup:upgrade i am getting below errors
The "/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/BuildAssets/Interceptor.php" file can't be deleted. Warning!unlink(/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/BuildAssets/Interceptor.php): Permission denied The "/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/FixData/Interceptor.php" file can't be deleted. Warning!unlink(/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/FixData/Interceptor.php): Permission denied The "/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/BuildAssets/Interceptor.php" file can't be deleted. Warning!unlink(/home/vitalticks/public_html/generated/code/Codazon/ThemeLayoutPro/Console/Command/BuildAssets/Interceptor.php): Permission denied The
Warning!unlink(/home/vitalticks/public_html/generated/code/Symfony/Component/Console/In
Class Magento\Framework\MessageQueue\Topology\Config\CompositeReader\Interceptor does not exist
Solved! Go to Solution.
Hi @sekhar_n
There might be some issue with the deployment. You can regenerate generated folder using compile command.
Try the following command once:
find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento
You can use sudo as well.
Then try following commands once n sequence to re generations.
chmod -R 0777 var/ pub/ generated/ rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/* php bin/magento setup:upgrade
--other commands
I hope it will help you!
Hi @sekhar_n
There might be some issue with the deployment. You can regenerate generated folder using compile command.
Try the following command once:
find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento
You can use sudo as well.
Then try following commands once n sequence to re generations.
chmod -R 0777 var/ pub/ generated/ rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/* php bin/magento setup:upgrade
--other commands
I hope it will help you!