Closed FabienGregoire closed 3 years ago
Hi,
You should not change the variable "hostDirectory", the path must be in project root ./www
This error can be printed for 2 reasons :
Hi Zepgram,
Thank you for your return. Concerning the hostDirectory, I only use the absolute path because some comments in forum speak about this issue in Catalina. So I use this directory well.
I checked if the directory exists and it's ok. How can I know if it is currently opened in an other program ?
Other information, just in case the problem comes from elsewhere.
In the vagrant machine (so after a 'vagrant ssh'), when I list the contents of the /home/vagrant/magento directory with the 'ls' command, I had this error :
ls: cannot open directory '.': Stale file handle
The result of 'ls -l' on the parent directory is :
drwxr-xr-x 3 501 dialout 96 Mar 28 15:56 magento
Thanks again for your help
Could you print me the value you gave to hostDirectory
?
My hostDirectory is "/System/Volumes/Data/Users/MY_USER_ACCOUNT/Documents/Projets/magento2-fast-vm/www/#{projectName}"
But maybe it's not necessary because it was a bug on an old vagrant version.
I found the real solution !
The issue comes from the nfsd permissions. I gave the full access disk to /sbin/nfsd, then vagrant destroy & vagrant up.
I have no more issue about it :).
Thanks for your time !
I get an error installing for Magento 2.4.2 on MacOS 10.15.7 (Catalina). I used the master branch.
I tried to change the hostDirectory in the VagrantFile but it failed. The script tried again to mount the same host directory (/home/vagrant/magento). Maybe there are others locations to change this hostDirectory variable ? Or the solution is elsewhere ?