Frage

I am getting the following error while running the bin/magento setup:di:compile command using a linux VM(Laravel Homestead) in a windows host.

The directory "/var/www/projectname/generated/code/Composer/Console" cannot be deleted 
Warning! rmdir(/var/www/projectname/generated/code/Composer/Console): Text file busy

How do I fix it? I have tried changing the syslink option to copy in the di.xml (app/etc/di.xml) but the error is still there.

I am also getting a similar error while changing to the developer mode

The directory "/var/www/projectname/var/cache/mage--0" cannot be deleted 
Warning! rmdir(/var/www/projectname/var/cache/mage--0): Text file busy

Keine korrekte Lösung

Andere Tipps

I am having almost the same problem with host: Windows 7 and Guest: Ubuntu 19.10. Wordpress works OK but Magento has no CSS or Javascript and I can't decompile or deploy static content, I just get a load of errors like:

The Directory "/var/www/html/generated/..." cannot be deleted Warning!rmdir(var/www/html/generated/...): Text file busy

The closest guess I can make is that Windows is not allowing permissions on the files despite me giving them.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top