phpsymfonyvagrant

Symfony cache:clear Failed to remove directory


I am unable to successfully run cache clear on my Symfony application. I have set the permissions to the /var/cache directory as 777. But still get this error:

[Symfony\Component\Filesystem\Exception\IOException] Failed to remove directory "/vagrant/app/var/cache/de~/pools": .

Does anyone know what I am doing wrong here?

This was working before whilst I was using the file sharing type: nfs.


Solution

  • Updated my VM to run the latest version (1.9.5) of vagrant. Was then able to use nfs, see:

    config.vm.synced_folder "./", "/vagrant", type: "nfs"