Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
knife bootstrap Net::SSH::ConnectionTimeout #8721
Boostrapping a node runs into issue:
Briefly describe the issue
The issue is similar to #1174 - the same command and error.
Tell us which version of the ChefDK you are running. Run
Tell us which operating system distribution and version ChefDK is running on.
Tell us what steps to take to replicate your problem. See How to create a Minimal, Complete, and Verifiable example for information on how to create a good replication case.
Create Chef Server
Please include the stacktrace.out output or link to a gist of it, if there is one.
$ knife bootstrap 184.108.40.206 -N node1.domain.local -x chefadmin --sudo
sshd DEBUG3 get no logs.
NOTE: CHEFDK BUGS ONLY
This issue tracker is for the code contained within this repo --
Solution: Set the SSH Client parameter "ConnectTimeout" to more than 0.(We put 30)
As we can see the problem in the session file inside the initialize function.
Here it is:
This function return error Net::SSH::ConnectionTimeout for any error within the function. That's what we saw above.
Also we found out that ssh connection always reset by the server node. It says that negotiation process have some problems.
We checked the initialize function, specifically Socket initializing. Cause this is the place where error happens.
It passes host, port, bind_address and timeout variables. We checked it.
So finally we changed "/etc/ssh/ssh_config" parameter ConnectTimeout from 0 to 30.