-
Notifications
You must be signed in to change notification settings - Fork 34
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
Please enter a password for the new user: stty: standard input: Invalid argument #28
Comments
Did you get a fully working Chef Server at the end? Most of the output post Maybe there is a way to silence these errors as they are standard operation procedure |
my guess is if the latter is the case, this might fix the sudo issues as well. |
Though the server gets installed and works. The following is the structure:
|
It probably doesn't "really" matter, but it's a UI wart I suppose. millisami notifications@github.com wrote:
Sent from my Android phone with K-9 Mail. Please excuse my brevity. |
So, I'm pretty sure I solved this dealing with a separate issue in chef-workflow -- you can tell Net::SSH to request a pty, which I had to do for sudo in certain cases. Here's the relevant code, working great for my needs over there: https://github.com/chef-workflow/chef-workflow/blob/master/lib/chef-workflow/support/ssh.rb#L47-L51 Worth a shot at least. |
I had another look at this issue and while requesting a pty does help resolve these kinds of issues, it looks our particular error happens at least one further fork-and-exec down (by way of net-ssh running a knife command which is then using sudo). As a less than ideal resolution, I have redirected this warning (on stderr) to a temporary logfile in f6145bf and made the plugins die whenever a non-zero exit code is thrown from any remote SSH command by default in 2123b64. It is my hope that by removing the innocuous warning, keeping track of it (just in case) and dying at the first sign of trouble will keep us honest enough here. Thank you all! |
@fnichol , I tried with the latest release of knife-server and its works.
But at the end, it complains about the
WARNING: No knife configuration file found
I tried it twice:
knife.rb
in./.chef
directoryknife.rb
file in the local dir itselfBoth didn't work.
I followed it on the README as well, but where should I put the
knife.rb
file.One may be in the
~/.chef/knife.rb
, this file is also there.But I want it to be in the project local directory.
Where to put it?
The text was updated successfully, but these errors were encountered: