Open tuantai0304 opened 6 years ago
@tuantai0304 the problem is not in this specific file, it is jut one of the files that must be available on your host when shared folders are mounted correctly.
For some reason Vagrant cannot mount shared folders for you. See #88, it is the same issue
@paliarush Can you please help. I am trying to install Magento 2 using your vbox. I am having window 10 OS. Below is the error that I am getting:
AzureAD+KamleshKamble@DESKTOP-T2J9M58 MINGW64 /c/devTools/vagrant-magento (2.0) $ bash init_project.sh [2018-05-08 12:29:15] Checking requirements [/c/devTools/vagrant-magento/scripts/host/check_requirements.sh] [2018-05-08 12:29:18] Installing missing vagrant plugins [init_project.sh] [2018-05-08 12:29:22] Generating random IP address, and host name to prevent collisions (if no custom values specified) [init_project.sh] [2018-05-08 12:29:23] Installing Magento dependencies via Composer [init_project.sh] [2018-05-08 12:29:24] Executing composer command [/c/devTools/vagrant-magento/scripts/host/composer.sh] [2018-05-08 12:29:26] > Checking requirements [/c/devTools/vagrant-magento/scripts/host/check_requirements.sh] [2018-05-08 12:29:29] > Exporting etc/auth.json to environment variable [/c/devTools/vagrant-magento/scripts/host/composer.sh] [2018-05-08 12:29:33] > composer --ignore-platform-reqs --no-interaction install [/c/devTools/vagrant-magento/scripts/host/composer.sh] [2018-05-08 12:29:37] Initializing vagrant box [init_project.sh] [2018-05-08 12:30:51] Directory '/c/devTools/vagrant-magento/etc' was not mounted as expected by Vagrant. Please make sure that 'paliarush/magento2.ubuntu' Vagrant box was downloaded successfully (if not, this may help http://stackoverflow.com/questions/35519389/vagrant-cannot-find-box) And that Vagrant is able to mount VirtualBox shared folders on your environment (see https://www.vagrantup.com/docs/synced-folders/basic_usage.html ). Also remove any stale declarations from /etc/exports on the host. [/c/devTools/vagrant-magento/scripts/host/check_mounted_directories.sh]
AzureAD+KamleshKamble@DESKTOP-T2J9M58 MINGW64 /c/devTools/vagrant-magento (2.0) $
@kamleshkamble unfortunately I don't have access to windows machine. Maybe @MaxMage or @nfourteen can assist
@kamleshkamble I don't have access to a Windows machine either, but this does happen sometimes and I haven't completely figured out why. If my memory serves me correctly, it's usually happens if the box is already running and then bash init_project.sh
is executed. I'd try shutting down the box and then running the init script again. If that doesn't work, try destroying the machine and cleaning up any caches with vagrant global-status --prune
. You can run just vagrant global-status
to get a list of boxes and their current state if you want to remove them manually.
If that doesn't work, could you elaborate on the steps you took during installation, ie starting the box before running the init script, ran the init script...changed some config...and then ran the init script again, etc. Then we can go from there...
have same error when run ./init_project.sh
[2018-05-15 14:57:19] ERROR: Directory '/c/projects/vagrant-magento/etc' was not mounted as expected by Vagrant.
Please make sure that 'paliarush/magento2.ubuntu' Vagrant box was downloaded successfully (if not, this may help http://stackoverflow.com/questions/35519389/vagrant-cannot-find-box)
And that Vagrant is able to mount VirtualBox shared folders on your environment (see https://www.vagrantup.com/docs/synced-folders/basic_usage.html ).
Also remove any stale declarations from /etc/exports on the host. [/c/projects/vagrant-magento/scripts/host/check_mounted_directories.sh]]
Windows 10 Vagrant 2.0.3 Virtual box: Version 5.2.6 r120293 (Qt5.6.2)
From : https://github.com/paliarush/magento2-vagrant-for-developers/issues/88
@VadimIzmalkov were you able to resolve this issue? I'm having the same problem.
Hi,
I follow your instruction to install the scripts to the localhost but got this error.
I think the problem is with this my.cnf file, and I don't know what it is.
Please help.
Thank you