-
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 requires TTY #6026
Comments
Of note is issue #1430, which makes this look like a regression. I'm running into the same issue, BTW. Vagrant 1.7.4, CYGWIN_NT-6.3-WOW |
Just upgraded to Windows 10, had 1.7.2 and VB 4.3.30, but no network adapters would show. Upgraded to 1.7.4 and VB 5.0.0. and now I get this same error about the TTY when it asks to choose a network adapter after running I can fix it by just hardcoding the bridge in the Vagrantfile, but yeah, seems to be an issue with 1.7.4. uname -s : CYGWIN_NT-10.0-WOW |
Same here - worked fine in Vagrant 1.7.2, doesn't work as soon as I upgraded to Vagrant 1.7.4 (nothing else changed - Windows 7, VirtualBox 4.3.28, CYGWIN_NT-6.1 2.0.2(0.287/5/3) 2015-05-08 17:00 x86_64).
|
Some further information - looks like the Cygwin platform check is broken: Vagrant::Util::Platform.cygwin? # => false
Vagrant::Util::Platform.platform # => "mingw32"
RbConfig::CONFIG["host_os"] # => "mingw32" |
Temporary workaround for anyone with the same problem: VAGRANT_DETECTED_OS=cygwin vagrant login Or add this to export VAGRANT_DETECTED_OS=cygwin Or a more cross-platform version may be: export VAGRANT_DETECTED_OS="$(uname)" |
I don't know if this is related enough, but I get 28 of these errors when running the unit test suite on master (8045869). For instance the last of the errors show this.
I am running on Ubuntu 14.04.2 using rbenv with ruby 2.1.6. |
I am getting the same message by running I can run Here are my debug logs for When I use @davejamesmiller's fix, I am able to answer the provider question. I get a 500 error afterwards (perhaps unrelated?) from |
I am getting the same error using CYGWIN_NT-6.3. I am using a fresh install of Vagrant 1.7.4, and I am following the tutorial on vagrantup.com. |
I had the same issue running "git bash" trying to pull homestead on windows 10, I then tried it on windows command prompt and it works. I'm running windows 10 fresh install, I kept getting this error using "git bash" program: Hope that helps |
I had vagrant on Windows 10 with git-MinGW (1.9), everything working fine. After git-MinGW was updated to the brand new 2.5.0, the same problem appeared - the VAGRANT_DETECTED_OS workaround does work. uname: MINGW64_NT-10.0 |
export VAGRANT_DETECTED_OS=cygwin solved the problem on Windows 10 Vagrant 2.7.4. I added that manually to the environment variables. |
|
|
+1, getting this also on Win 10, 1.7.4 vagrant, 5.0.2 VirtualBox. Manual export helped, thanks @davejamesmiller |
I managed to get it working by adding the --provider virtualbox option at the end of the command and all worked. |
I'm getting this on Windows 7 (version 6.1.7601), with Git 2.5.2.windows.2, VirtualBox 4.3.12-93733 and Vagrant 1.7.4. uname MINGW64_NT-6.1 |
Same problem with git shell on windows 10 64-bit, with vagrant 1.7.4. The cygwin fix works even though I'm not using cygwin. |
@davinderpalrehal It worked for me. Thank you! |
@davinderpalrehal adding --provider virtualbox worked for me as well. Thanks |
The The correct workaround until broken auto-detection is solved is to define environment variable @sethvargo Where is generated the Another question I have is that P.S. For those interested in the details. Vagrant tries to determine if current standard input is connected to a console ( Using |
@davinderpalrehal WOW, just when i had given up hope. Thank you!!!! |
@redshark1802 thanks, it worked for me using hyper-v |
Hard-setting VAGRANT_DETECTED_OS=cygwin works just fine for me. |
+1 for |
+1 |
+1
(vagrant destroy) |
Fixed |
Dont work for me!! |
@iscjiha is this the same issue I described here: #6026 (comment) |
Doesn't seem fixed to me. Problem still appears with latest Vagrant on Windows 10 with git bash. |
@markushausammann Are you using Git for Windows 2.x? Did you installed with the default
|
Yeah, the export trick works for me too but it should work without the trick, shouldn't it? |
Sure! The point I wanted to convey is that the bug is really fixed (for Cygwin users). For MSYS2 users (via MSYS2 or Git for Windows 2.x), it was not working before the fix, so it should probably be another different ticket (and fix). |
I MIGHT disagree here that this is fixed. Just installed Virtual Box (5.0.10) and Vagrant (1.7.4) Working through Cygwin (uname - a reports "CYGWIN_NT-6.1" This could be an exceptionally old instance of Cygwin that is causing the issue, but I'm getting the same problem (destroy prompting for TTY) and I'm NOT using MSYS2 / GIT's installation of Cygwin...this is full fledged Cygwin 64 bit and it's throwing the error. Yes, the export command above does fix the problem...but unless it's the old version of Cygwin that's throwing things, I disagree that this is fixed in the most recent version. |
@Illydth Indeed, if it's still not working under Cygwin directly, we could say it is not fixed. However, note that the fix will probably be part of next release of Vagrant and that Vagrant 1.7.4 that you are running currently does not contain the fix. Hence why you are seeing the problem currently. Test and report once the new version is out. Regards, |
Verified still broken with MSYS on Win10 w/ Vagrant 1.7.4 on VirtualBox 5.0.10. Thus have to do Is there an active bug for this, or this issue not going to get fixed? $ vagrant destroy
Vagrant is attempting to interface with the UI in a way that requires
a TTY. Most actions in Vagrant that require a TTY have configuration
switches to disable this requirement. Please do that or run Vagrant
with TTY.
$ uname -s
MINGW64_NT-10.0
$ vagrant --version
Vagrant 1.7.4
$ '/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' --version
5.0.10r104061
$ cmd /c ver
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
I tried it from CygWin ( |
@darkn3rd From my understanding, fix is not released yet. Please try again when next version of Vagrant is released (I guess next version will be 1.8.0). |
A slight variation on the workaround - you can add this to the top of your Vagrantfile:
or slightly more sophisticated:
|
If you are using Babun (instead of plain cygwin), then you must add:
to ~/.babunrc instead of ~/.bashrc |
@oliver-dungey thank you! Worked for me |
vagrant destroy --force does the trick though for me on vagrant 1.7.4. |
I have an interesting take on this bug.... When I tried to destroy images using an alias which launches a simple script to execute the
This resulted in the error message reported here. Now that I'm using force I took out the echo pipe and just run the script directly. Just thought I'd leave this here in case it helps anyone. |
I tried to use remove-old-versions -plugin, but on my Ubuntu 14.04 none of the above worked, or yes N | vagrant remove-old-versions. But then I installed apt-get install expect and made the following script (this answers N(o) to the question do you want to remove the box): #!/usr/bin/expect |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hello! I would like to report about a weird problem.
I have a virtual machine managed by Vagrant 1.7.4 with Virtualbox 5.0 on Windows 8.1 x64 host. I am trying to destroy it after shutting it down (Cygwin terminal).
I don't get this error while using another Vagrant commands, such as
up
,package
,suspend
,halt
etc. It reproduces only withdestroy
.Previously, I was using Vagrant 1.7.2 with VirtualBox 4.3.x (from 4.3.20 to 4.3.30) on the same host and I didn't run into the problem described.
I have found issue #1616 reporting the same problem, and the workaround suggested worked for me -
vagrant destroy --force
.If it helps,
The text was updated successfully, but these errors were encountered: