-
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 up" hangs and does not detect outdated PowerShell on Windows 7 #9056
Comments
this works for me update to ps 3 |
I think his point was that Vagrant should have errored out instead of blocking (what I presume is) a build slave for 16 hours. |
Yes, I understand that the underlying problem can be solved by upgrading PowerShell; this bug report only covers the fact that Vagrant freezes for hours instead of detecting the outdated PowerShell version and displaying an error. |
…version Prior to this commit, the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the process would never exit. This commit fixes that by passing in a ruby block to capture the version from stdout instead of trying to capture it from the returned process when it exits.
…version Prior to this commit, the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the process would never exit. This commit fixes that by passing in a ruby block to capture the version from stdout instead of trying to capture it from the returned process when it exits.
…S version Prior to this commit, the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the process would never exit. This commit fixes that by passing in a ruby block to capture the version from stdout instead of trying to capture it from the returned process when it exits.
…S version Prior to this commit, the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the process would never exit. This commit fixes that by passing in a ruby block to capture the version from stdout instead of trying to capture it from the returned process when it exits.
…S version Prior to this commit, the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the process would never exit. This commit fixes that by passing in a ruby block to capture the version from stdout instead of trying to capture it from the returned process when it exits.
Sorry, just to so that I understand the merge correctly: You have just added an error message to the whole thing, instead of fixing the problem of Vagrant not being able to determine older versions of Powershell? |
@func0der - the function used to determine the version of Powershell would loop forever inside the Subprocess.execute function because the powershell process would never actually exit. That commit fixes that by passing in a ruby block to capture the version from the stdout instead of trying to capture it from the returned process when it should of exited. The timeout is if the version check never exits, and if nothing was put to stdout. |
@briancain Thank you for the clarification :) |
@briancain Installed version: 2 Minimum required version: 3Currently my laptop 0S:win7 Sp1 |
@ramprsad1433 - You should be able to get the update by running Windows update, thanks! |
@briancain That is not my experience with Windows 7 powershell upgrades :) |
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. |
Vagrant version
Vagrant 2.0.0
Host operating system
64-bit Windows 7 Professional Service Pack 1
Guest operating system
hashicorp/precise64
Vagrantfile
Debug output
https://gist.github.com/interfrastic/b3e23db685271c6eccf7f8696d9f6be4
Expected behavior
When I ran the "vagrant up" command, the code in PR #8839 (the fix for #8783) should have determined that my PowerShell version (2.0) is lower than the minimum required version (3.0) and raised an error.
Actual behavior
The "vagrant up" command hung with no output for 16 hours before I finally interrupted it.
Steps to reproduce
Install VirtualBox.
Install Vagrant.
Open a Command Prompt window and enter the following commands:
cd/d %TMP%
mkdir vagrant-test
cd vagrant-test
vagrant init hashicorp/precise64
vagrant up
References
The text was updated successfully, but these errors were encountered: