Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Vagrant Share stuck #10799
Host operating system
Mac OS 10.13.6
Guest operating system
VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.define "demo" do |web| web.vm.box = "debian/contrib-jessie64" web.vm.network :private_network, ip: "192.168.100.100" web.vm.synced_folder ".", "/var/www", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp'], linux__nfs_options: ['rw','no_subtree_check','all_squash','async'] web.vm.provision :shell, :path => "install.sh" web.vm.provider "virtualbox" do |v| v.memory = 4096 v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] end end end
I should have been able to access the Vagrant VM via Ngrok
The Share Session was not started fully
Steps to reproduce
Thank you for opening an issue. However, there is not enough information here to reproduce or provide a recommendation. When you first open an issue, a template is pre-filled in the box. That template provides instructions for getting your host and guest information, the version of Vagrant, and the debug output. Without that information, it is very challenging for us to assist you.
Please supply that information either by updating this ticket or by closing this ticket and opening a new one. Thank you!
I have the very same problem, but I have an extra question. When there's a local port exposed by Vagrant (through :forwarded_port), why doesn't Vagrant use it? It seems it always defaults to 80, even if a port was specifically forwarded through Vagrantfile.
On topic, by looking at the debug logs, I can see ngrok outputting an URL which does work, but Vagrant never outputs it as it seems some errors follow, but are not detrimental to the share working at all. Here are my logs on this, if it helps (I'm forcing the correct port as per the above paragraph): https://pastebin.com/raw/FwNmizju
I emphasize the ngrok URL does work, it's just never output by vagrant share.
Thanks and apologies for hijacking the issue.
I can see the Ngrok URL in the debug too, but when I visit it, I get the message:
How do I run
@paul-gene - hmmm...is this config file empty at all? Or does it exist?
To add; when debugging, the ngrok URL is visible in the output. If I enter the URL in my phone, it manages to "load" the URL, but ends up redirecting to the vhost domain
VHost = mydomain.test
Enter 123456.ngrok.io into phone browser, blank page loads slowly then ends up on mydomain.test
Hi. I confirm this bug.
Vagrant version: Vagrant 2.2.5
I was following the Vagrant Getting Started tutorial and it took me a while to find the ngrok URL buried in the debug log:
It is not shown however in the normal output, leading to believe that the share is not working: