1

when i run this command php bin/magento setup:upgrade

/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

Manashvi Birla
8,8739 gold badges29 silver badges53 bronze badges
asked Jun 15, 2020 at 5:51
1
  • delete 'generated' folder and try again Commented Jun 15, 2020 at 5:57

3 Answers 3

3

Please check your permission of "generated" folder first.

set permission from CLI using below command :

sudo chmod -R 777 var/ pub/ generated/

It may help you to resolve issue.

answered Jun 15, 2020 at 5:59
0

If you are using linux based system than run following command.

sudo chmod -R 777 generated pub var
sudo chown root:root generated

(replace root:root with your system user)

Let me know if further help is required.

answered Jun 15, 2020 at 6:06
0

if someone is using dockergento go inside a bash with command

dockergento bash --root

and use command mentioned above there.

sudo chmod -R 777 var/ pub/ generated/
answered Sep 14, 2022 at 11:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.