-
Notifications
You must be signed in to change notification settings - Fork 334
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
Knife ec2 bug #370
Comments
I ssh'd to the server that does get created in ec2 and checked out /var/log/secure. I see the following message from the chef workstation that is executing the bootstrap commands: |
Hello @deiserOP Could you please try below options with knife ec2 server create command-
Note- for details of all options try command with |
We don't need any public IP's attached to the instances. These instances will reside inside of the VPC with only private IP's. |
I'm seeing this as well. It still exists when using a public IP. Running
will bring up the server, but dies with that error just after connecting via ssh. I checked the message log, and it is able to connect over ssh, and the last message is a su to root. Now, when I run
chef-client installs and runs successfully, adding the node to chef server I hope that's helpful. Outside of this post, I wasn't able to find any confirmation that the error was occurring for anyone else. |
We're also seeing this issue bootstrapping inside of VPC deployment to private subnet IPs. Here is our creation command:
Debugging output (superfluous and sensitive output redacted):
|
I was hitting this too, but I was focusing on the lack of debug output first and working on chef/chef#4137. I'll work up a fix. In the interim the bug you're seeing is chef/chef#4131 and you need to pass a run list to work around it. |
Fixed by #374 and chef/chef#4149 (When merged and released) |
I am having the same problem. How do I resolve this? I am running: |
@ShadySQL You'll want to use the latest knife-ec2, 0.13.0, which was released on 8/8/16. |
Good afternoon,
I'm new to using chef and was trying to use the knife ec2 plugin from my workstation (within the VPC) to create and bootstrap a instance in AWS. The instance creates fine, but the bootstrap component fails. Not being a complete expert with ruby, I'm not sure how to go about troubleshooting how or why it's failing. I did create a ticket with chef support, but haven't heard back. I did execute the command with DEBUG options and it doesn't offer much more than without the options. Could someone please offer my some insight or suggestions on how to move forward. If this isn't the appropriate area to pose such a question, please let me know where I should ask...
Here's the error I'm getting:
ERROR: knife encountered an unexpected error
This may be a bug in the 'ec2 server create' knife command or plugin
Please collect the output of this command with the
-VV
option before filing a bug report.Exception: NoMethodError: undefined method `empty?' for nil:NilClass
As well as my command:
knife ec2 server create -I ami-e3106686 -f t2.medium -S knife -i .chef/knife.pem --subnet subnet-XXXXXX --ssh-user ec2-user --node-name test -VV
The text was updated successfully, but these errors were encountered: