-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bootstrapping a vagrant node from widows fails with ERROR: IOError: closed stream #3573
Comments
@mwrock, can you take a look at this? It requires a Windows OS not running in a VM (difficult to use Vagrant from a Windows VM). I assume Virtualbox is what's being used for virtualization. The command above is not specific to Vagrant, so it is possible this will repro on any RHEL box, though I've recently bootstrapped other Linuxes on Azure via ssh. |
Offhand this looks like it might be a net-ssh problem talking from windows to linux. It doesn't look like chef-client itself is doing anything when it blows up. |
Agree with @lamont-granquist on the likelihood of being just windows/ssh flakiness. I'll try running on my system using Hyper-v at first but that uses a fundamentally different network setup (not NAT) that may be at play here. Will find a vbox rig to test if i can t repro locally. |
Hey @vinyar, do you recall what vagrant base box you used here? |
sorry, I do not. I would guess a free one, but I don't think there are free RHEL boxes. |
BTW: couldn't find a hyperv rhel box so i spun up a rhel 6.6 aws box and setup a vagrant with password authentication. Bootstrapping worked fine with:
I'm confident this would work fine on a vagrant/vbox instance just as well since the same laws of tcp/ip apply. |
Feel free to reopen if you bump into this again. |
👍 |
Hi, Can someone help me here,I am new bee to chef. Parent OS Windows 7 Below is the command to do bootstrap.
|
@Dev393 it looks like it could not auth over SSH. Are you able to connect to the node via plain ssh with the same credentials and host name used in your knife command? |
Oh and I overlooked a key bit in your error output:
If you are using putty on the client, I believe you want to make sure that you are running |
Hi Matt, http://www.hurryupandwait.io/blog/need-an-ssh-client-on-windows-dont-use-putty-or-cygwinuse-git From the above link i can see you have suggested to do modification in path $new_path = "$env:PATH;C:/Program Files/Git/usr/bin" so this modification will only sustain for current session?Do we need to append the above path for each & every sessions? Thanks i did modification and its establishing but is there anything which i need to pass as public key as per the below result: PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-54-209-72-121.compute-1.amazonaws.com -x administrator –P ******** -N "node1" ######################################################
|
I just noticed you are using a username of |
Oh and to answer your question about the path, you'd want to permanently add the new path via
|
Hi Matt, My bad the user name which i had given in the past mail was wrong its ubuntu,for windows instance i am able to do bootstrap in AWS. Please refer the below logs and suggest,Thanks for the path info. PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-52-207-247-0.compute-1.amazonaws.com -x ubuntu -p ******** -N module -VV INFO: Using configuration from C:/Users/dchakraborty/chef-repo/.chef/knife.rb |
with a .pem private key use the |
Could you please share me the full cmd with -i parameter?Do i need to append my .pem file path to c:\Program Files\Git\Usr\bin here,currently my .pem file is in download location. |
It should be |
Hi Matt, Now its working but i can not take this node into my hosted chef where as windows node i can.Please refer to my attach. I can not see any errors. PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-54-86-112-241.compute-1.amazonaws.com -x ubuntu -i C:\Users\dchakraborty\Dow
|
Buried deep in there is "dpkg: error: requested operation requires superuser privilege "; you need to use At Chef, we use GitHub Issues to track bugs and feature requests. Questions like "How do I .... with Chef?" are better answered by our awesome community on the Chef mailing lists, or on StackOverflow. (Please pick only one place to ask your question, however, as it's considered impolite to post the same question to multiple forums.) You can find information about joining and asking questions on our mailing lists here. On StackOverflow, please tag your question with the "chef" label so that it shows up in this list. Please don't add any more detail to this ticket. Instead, please post to the chef mailing list as detailed above if you still can't get going. |
Thanks a lot Matt for help. |
Parent OS Windows 7
Target OS is RHEL 6.6
Chef dk 6.2
The text was updated successfully, but these errors were encountered: