Last active
December 30, 2018 06:21
-
-
Save yogeshdubey2006/ba18f59c915ac0564f83662fd8b936cc to your computer and use it in GitHub Desktop.
Magento 2 - Removed your var/generation and var/cache directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ERROR: The directory "/chroot/home/username/domain.com/html/generated/code" cannot be deleted Warning!rmdir(/chroot/home/username/domain.com/html/generated/code): Directory not empty | |
# You need to remove it manually, if it is ubuntu then locate in your magento 2 root directory and run "rm -rf var/generation" and "rm -rf var/cache" command. | |
# Screenshot: https://www.dropbox.com/s/e786vkgpeuzko67/20181230_generated.jpg?dl=0 | |
rm -rf var/generation | |
rm -rf var/cache | |
# and Then try to run below commands in sequence. | |
php bin/magento setup:di:compile | |
php bin/magento setup:upgrade | |
php bin/magento cache:clean | |
php bin/magento cache:flush | |
# delete subfolders under var directory | |
rm -rf var/di/ var/generation/ var/cache/ var/log/ var/page_cache/ var/session/ var/view_preprocessed/ pub/static/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment