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

Open
singh0009 opened this issue Jun 28, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@singh0009
Copy link

commented Jun 28, 2019

Chef::Knife::Bootstrap::RemoteExecutionFailed

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 192.168.92.130 --connection-user osboxes --sudo --use-sudo-password --node-name Node1 --run-list 'recipe[learn_chef_apache2]' --connection-password 'osboxes.org'
/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 192.168.92.130
WARN: [SSH] PTY requested: stderr will be merged into stdout
The authenticity of host '192.168.92.130 ()' 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 192.168.92.130 --connection-user osboxes --sudo --use-sudo-password --node-name Node1 --run-list 'recipe[learn_chef_apache2]' --connection-password 'osboxes.org'

Stacktrace

``` ```

Possible Solution

@Vasu1105

This comment has been minimized.

Copy link
Contributor

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.