HELP!! Chef bootstrap "ERROR: private key needed."

581 views
Skip to first unread message

spe...@ymcnetwork.com

unread,
Jul 2, 2014, 2:57:52 PM7/2/14
to opscode-che...@googlegroups.com
Hi Everyone,

I am learning and setting up Chef. I have the server any my workstation working properly. However, I am running into an issue with installing Chef Client on my AWS EC2 instance.

When I run knife bootstrap X.X.X.X -x ubuntu -i ~/.ssh/<identify-file> -N test-server --sudo, I run into the below error:

  1. [2014-07-02T18:47:21+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  2. Chef Client failed. 0 resources updated in 1.397116417 seconds
  3. [2014-07-02T18:47:21+00:00] ERROR: private key needed.
  4. [2014-07-02T18:47:21+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Full results: 


So, I created a Ubuntu Ec2 instance, and then from my workstation I ran the previous command. Nothing else has happened or has been changed on the EC2 server. 


The /var/chef/cache/chef-stacktrace.out file says:

OpenSSL::PKey::RSAError: private key needed. (http://pastebin.com/B1N3TXst)

Any ideas?!

Matt Ray

unread,
Jul 4, 2014, 3:59:23 AM7/4/14
to Chef-OpenStack
Isn't this the error you get for having the same client already
existing? Perhaps you need to delete the existing node and client
"test-server" from your Chef server before reusing the name.

FWIW this is the mailing list for Chef and OpenStack users, you might
want to send future questions to the Chef users mailing list.
http://lists.opscode.com/sympa/lists/opensource

Thanks,
Matt Ray
Director of Partner Integration :: Chef
512.731.2218 :: ma...@getchef.com
mattray :: GitHub :: IRC :: Twitter
> --
> You received this message because you are subscribed to the Google Groups
> "opscode-chef-openstack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to opscode-chef-open...@googlegroups.com.
> To post to this group, send email to
> opscode-che...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/opscode-chef-openstack/b6da40c3-8f66-4d17-9106-4f333f8914e3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages