-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant share
can't detect HTTP port
#3118
Comments
Can you attach a full debug log? |
Yep, sorry for not doing it in the first place. |
Can you visit Usually, below port 1024, you need admin privileges. That might be the issue. Try forwarding HTTP to higher than 1024. |
Request:
Response:
|
Super weird. The vagrant plugin is not getting a 200. Can you try with another port forwarding? Try 8080 |
Elevated prompt (run as admin) doesn't work either - going to try another port. |
Using port 1234 seems to work but only if the prompt is elevated too, although I can't use it because I still can't use
|
Yeah that looks fine to me (the last bit). Yeah the port issue I'm pretty confident is a strange Windows and permissions issue on the firewall. Lets solve your login problem. |
I ran in to this issue. I managed to get it going by running both the prompt (in my case Git bash) and the VirtualBox GUI elevated. And to get the VB GUI running elevated, you have to halt all running VM's before starting it. With both prompt and VB GUI running elevated, it happily shared ... ... -- hugh |
I had to do --http 80 manually even if it states that default http ports are detected automatically. |
@IljaN had to do the same on OS X. There was no need to forward any ports via @mitchellh Can we have this reopened or should I create a new issue? |
@mitchellh @kmark I installed Vagrant 1.7.2 on Windows x64 and got the same error message. Has this issue been resolved? @IljaN Thanks! Specifying the port worked like a charm. |
@swreeser @mitchellh Not that I know of. |
I am on OSX 10.11.1 and using vagrant 1.7.4 vagrant share --http 80 worked for me as well. Thanks @IljaN |
Did a new install of vagrant yesterday and from then on "vagrant share" stopped working with the same errors as original poster. When I type "vagrant share --http 80" it works. What the hell is causing this? This is bad, because PHPstorm only has "Vagrant share" built in and I have to open the terminal now and cd into the right folder first, which takes some time. What's really puzzling is: why did it work before? I did a clean install (removed virtualbox + vagrant first). |
Installed new Vagrant box through bash file. Can access it through ip and vhost url. Running "vagrant share" does not work, vagrant can not find the http port. Any ideas why?
|
I have the same problem. Since yesterday not even vagrant share --http 80 works. I have the same messages like you posted above. When trying to access the vagrant link I get:
|
After upgraded vagrant to the latest 1.9.1 (prior was running 1.8.7) |
In my case I could make it work with: ...but I guess that could be more Laravel/Homestead specific (I use its box). Still worth a try... |
After I fallback to version 1.8.7 |
Went back to 1.8.6 and Then I went back to 1.8.5 and I could even use plain The rest of my setup is VirtualBox 5.1 on Win 10. |
@elasticsteve I could use vagrant share (without specific http port 80 ) on 1.8.7 |
I fixed it by adding these lines in the end of Vagrantfile:
It could not find where to forward ports. Now it works but very slow. |
@mylonasg88 Added but still does not work, it freezes and creates a link is nothing |
@mylonasg88 that solution worked for me too, but like you said, it is painfully slow... I mean it won't work after hitting 3 pages... |
@mylonasg88 I reverted to 1.8.7 and it seems to have fixed it . |
I'm adding my +1 to this. 1.8.7 worked fine, 1.9.1 no longer works. Reverting back to 1.8.7 and it works again. I do this: On 1.9.1, accessing through http://name.a.b.c.d share just hangs indefinitely. As soon as I kill vagrant share, I get error in browser so I know it's getting through to my machine. Revert back to 1.8.7 and domain http://name.a.b.c.d works perfectly again. OSX El Capitan. |
Same problem here, but as I'm new to Vagrant and Laravel Homestead, I've never been able to setup a working vagrant share... |
Hey , i can get it to create a share URL but i cant access it outside of my laptop. connections timeout |
There are tons of problems with Vagrant Share. This really sucks and didn't get solved for a long time now. I'm stuck at version 1.8.6 and it's slow as hell too! Docker might be the future, but then again, I don't know if you can share your environment with the outside like we do in Vagrant. I guess not very easily. |
Although I have forwarded port 80 and Apache is running on the VM,
vagrant share
is not able to detected the port:Did I miss something?
The text was updated successfully, but these errors were encountered: