| popularity | question | answers | views | user | |
|---|---|---|---|---|---|
| 0 |
Chef Workstation on WIndows, knife-windows plug not working
I am running Chef-Client 10.24 on my windows workstation to match the Chef server, 10.24. I used the chef omnibus to install chef-client on my Windows 7 workstation. I can use the regular knife commands and bootstrap *nix clients. However, I installed knife-windows plugin using RubyGems, and it put that plug in in the ruby folder and the Chef-Client knife command cannot access it I believe. Is there a way to either move the knife-windows plugin to the chef-client directory, or a way to use the chef-client omnibus installer to install knife-windows plugins? |
1 | 15 | ||
| 0 |
knife cookbook upload --all returns internal server error
When I run: This is returned:
I checked the server logs with But it doesn’t seem like anything is there:
Any suggestions on why I can’t upload cookbooks? Where can I go to see more detailed errors? I’m at a loss. Thank you. |
0 | 12 | ||
| -1 |
Creating Instance Using Knife Ec2 Plugin
$ knife ec2 server create -S HelloWorld_1 -I ami-687eee01 —region us-east-1 -G HelloWorld_Win —node-name serverTest20 —flavor t1.micro -x ubuntu -i /etc/chef/HelloWorld_1.pem Instance ID: i-0ae62179 Flavor: t1.micro Image: ami-687eee01 Region: us-east-1 Availability Zone: us-east-1a Security Groups: HelloWorld_Win Tags: NameserverTest20 SSH Key: HelloWorld_1 Waiting for server………………….. Public DNS Name: ec2-23-20-102-111.compute-1.amazonaws.com Public IP Address: 23.20.102.111 Private DNS Name: domU-12-31-38-04-E1-19.compute-1.internal Private IP Address: 10.220.226.231 Waiting for sshd…….done Bootstrapping Chef on ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com —2013-02-19 10:36:11— http://opscode.com/chef/install.sh ec2-23-20-102-111.compute-1.amazonaws.com Resolving opscode.com (opscode.com)… ec2-23-20-102-111.compute-1.amazonaws.com 184.106.28.82 ec2-23-20-102-111.compute-1.amazonaws.com Connecting to opscode.com (opscode.com)|184.106.28.82|:80… ec2-23-20-102-111.compute-1.amazonaws.com connected. 100%[======================================>] 6,470 —.-K/s in 0.02s ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com 2013-02-19 10:36:11 (292 KB/s) – written to stdout [6470/6470] ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com Downloading Chef 11.4.0 for ubuntu… ec2-23-20-102-111.compute-1.amazonaws.com Installing Chef 11.4.0 ec2-23-20-102-111.compute-1.amazonaws.com Selecting previously unselected package chef. ec2-23-20-102-111.compute-1.amazonaws.com (Reading database … (Reading database … 5%e-1.amazonaws.com (Reading database … 100%1.amazonaws.com (Reading database … ute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com 47415 files and directories currently installed.) ec2-23-20-102-111.compute-1.amazonaws.com Unpacking chef (from …/chef_11.4.0_amd64.deb) … ec2-23-20-102-111.compute-1.amazonaws.com Setting up chef (11.4.0-1.ubuntu.11.04) … ec2-23-20-102-111.compute-1.amazonaws.com Thank you for installing Chef! ec2-23-20-102-111.compute-1.amazonaws.com Processing triggers for initramfs-tools … ec2-23-20-102-111.compute-1.amazonaws.com update-initramfs: Generating /boot/initrd.img-3.2.0-36-virtual ec2-23-20-102-111.compute-1.amazonaws.com Starting Chef Client, version 11.4.0 ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com Creating a new client identity for serverTest20 using the validator key. ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com [2013-02-19T10:36:28+00:00] ERROR: Server returned error for http://ec2-54-243-116-104.compute-1.amazonaws.com:4000/clients, retrying 1/5 in 3sec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com Chef encountered an error attempting to create the client “serverTest20” ec2-23-20-102-111.compute-1.amazonaws.com Authorization Error: ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com —————————— ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com Your validation client is not authorized to create the client for this node (HTTP 403). ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com Possible Causes: ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com ———————— ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com * There may already be a client named “serverTest20” ec2-23-20-102-111.compute-1.amazonaws.com * Your validation client (chef-validator) may have misconfigured authorization permissions. ec2-23-20-102-111.compute-1.amazonaws.com ec2-23-20-102-111.compute-1.amazonaws.com [2013-02-19T10:36:31+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out ec2-23-20-102-111.compute-1.amazonaws.com [2013-02-19T10:36:31+00:00] FATAL: Net::HTTPServerException: 403 “Forbidden” Any Suggestion??? |
1 | 122 |
