asquarezone/ChefZone

Bootstrapping Error

Closed this issue · 2 comments

Dear Team..I tried bootstrapping on Ubuntu,RH from my workstation.the nodes are adding in hosted chef server successfully. at the end of bootstrapping completioon ,I am getting the below error....could you plz tell me the issue....
Thanks&Regards...
Mallikharjun

PS F:\Mallik's\DevOps\Practics-scripts\chef\chef-repo> knife bootstrap ec2-13-233-133-179.ap-south-1.compute.amazonaws.
com --sudo -x ubuntu -i .\chef\cheflab.pem -N ip-172-31-1-129.ap-south-1.compute.internal
Creating new client for ip-172-31-1-129.ap-south-1.compute.internal
Creating new node for ip-172-31-1-129.ap-south-1.compute.internal
Connecting to ec2-13-233-133-179.ap-south-1.compute.amazonaws.com
#<Thread:0x000000000aeb9268@C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/logging-2.2.2/lib/logging/diagnostic_con
text.rb:471 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
5: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:
in block in create_with_logging_context' 4: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_action s.rb:36:in block (2 levels) in sessions'
3: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:
in session' 2: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488 :in next_session'
1: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:182:
in new_session' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:194:in rescue in ne
w_session': Authentication failed for user ubuntu@ec2-13-233-133-179.ap-south-1.compute.amazonaws.com@ec2-13-233-133-179
.ap-south-1.compute.amazonaws.com (Net::SSH::AuthenticationFailed)
Failed to authenticate ubuntu - trying password auth
Enter your password:
#<Thread:0x000000000b280090@C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/logging-2.2.2/lib/logging/diagnostic_con
text.rb:471 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
5: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:
in block in create_with_logging_context' 4: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_action s.rb:36:in block (2 levels) in sessions'
3: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:
in session' 2: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488 :in next_session'
1: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:182:
in new_session' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:194:in rescue in ne
w_session': Authentication failed for user ubuntu@ec2-13-233-133-179.ap-south-1.compute.amazonaws.com@ec2-13-233-133-179
.ap-south-1.compute.amazonaws.com (Net::SSH::AuthenticationFailed)
ERROR: Net::SSH::AuthenticationFailed: Authentication failed for user ubuntu@ec2-13-233-133-179.ap-south-1.compute.amazo
naws.com@ec2-13-233-133-179.ap-south-1.compute.amazonaws.com
bootstrap error screens
nodes_in chefserver

and after bootstrapping,loged into nodes...and executed command as Sir told.."sudo chef-client"..I am getting empty results...Attaching screens of Ubuntu node & Redhat nodes..
chef-client_ubuntu error 1
chef-client_rh error 1

same error