cancel
Showing results for 
Search instead for 
Did you mean: 

when i run php bin/magento setup:upgrade i am getting error Interceptor.php" file can't be delete

SOLVED

when i run php bin/magento setup:upgrade i am getting error Interceptor.php" file can't be delete

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: when i run php bin/magento setup:upgrade i am getting error Interceptor.php" file can't be

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!

View solution in original post

1 REPLY 1

Re: when i run php bin/magento setup:upgrade i am getting error Interceptor.php" file can't be

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!