Skip to content
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

Chef::Knife::Bootstrap::RemoteExecutionFailed #8697

singh0009 opened this issue Jun 28, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jun 28, 2019


Describe the problem

While I am trying to add a new node in to the hosted chef server, I am keep getting "Chef::Knife::Bootstrap::RemoteExecutionFailed" error. Please help
root@osboxes:/home/osboxes/chef-repo# knife bootstrap --connection-user osboxes --sudo --use-sudo-password --node-name Node1 --run-list 'recipe[learn_chef_apache2]' --connection-password ''
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:31: warning: already initialized constant Chef::Knife::Bootstrap::SUPPORTED_CONNECTION_PROTOCOLS
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:31: warning: previous definition of SUPPORTED_CONNECTION_PROTOCOLS was here
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:32: warning: already initialized constant Chef::Knife::Bootstrap::WINRM_AUTH_PROTOCOL_LIST
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:32: warning: previous definition of WINRM_AUTH_PROTOCOL_LIST was here
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:350: warning: already initialized constant Chef::Knife::Bootstrap::DEPRECATED_FLAGS
/opt/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.300/lib/chef/knife/bootstrap.rb:350: warning: previous definition of DEPRECATED_FLAGS was here
Node Node1 exists, overwrite it? (Y/N) Y
Client Node1 exists, overwrite it? (Y/N) Y
Creating new client for Node1
Creating new node for Node1
Connecting to
WARN: [SSH] PTY requested: stderr will be merged into stdout
The authenticity of host ' ()' can't be established.
fingerprint is SHA256:EgHkEDdS+sDWCmsyWq1n+qMnlwxULnNnEsa+zsoeco0.

Are you sure you want to continue connecting
? (Y/N) Y
WARN: [SSH] PTY requested: stderr will be merged into stdout
ERROR: Chef::Knife::Bootstrap::RemoteExecutionFailed: Chef::Knife::Bootstrap::RemoteExecutionFailed

Software Version

ubuntu 19.04

Replication Case

knife bootstrap --connection-user osboxes --sudo --use-sudo-password --node-name Node1 --run-list 'recipe[learn_chef_apache2]' --connection-password ''


``` ```

Possible Solution


This comment has been minimized.

Copy link

commented Jun 30, 2019

@singh0009 could you please run your command in verbose mode i.e. with -VV option and add the stacktrace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.