0

I ran the 'php bin/magento setup:upgrade' command and received this error. Can you tell why the command line shows this error? I am new to Magento 2 and had previous experience with Magento 1.

5
  • It might be permission issue. Please create var/di directory and give proper permission to that folder else give full permission to var folder.
    – Nits
    Commented Jan 10, 2018 at 13:21
  • First Run : sudo chmod -R 777 var/ pub/ or chmod -R 777 var/ pub/ & after run : php bin/magento setup:upgrade
    – Abdul
    Commented Jan 10, 2018 at 13:25
  • I don't think there's a permission issue as I had cleared manually all the folders inside the var folder. All other folders had been created, but this one shows warning when running the command setup:upgrade
    – Ner
    Commented Jan 10, 2018 at 13:28
  • This message is logged during deletion of contents. This message is just an info level log; not a warning or error.
    – danronmoon
    Commented Jun 26, 2019 at 15:10
  • I think that you are using magento 2.1
    – MR.R DNATH
    Commented Aug 23, 2022 at 5:35

2 Answers 2

0

Please use the below commands and check:

rm -rf var/* generation/*
bin/magento setup:upgrade

Also check your permission to var and generation folder.

0

I am not sure but var/di folder created by default when we run bin/magento setup:di:compile. In your case plaese run the bin/magento setup:di:compile and check the var/di folder.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.