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?

more →
1 15  
0
knife cookbook upload --all returns internal server error

When I run: knife cookbook upload --all

This is returned:

Uploading apache2      [1.6.2]
Uploading apt          [1.9.2]
Uploading build-essential [1.4.0]
Uploading chef_handler [1.1.4]
Uploading dmg          [1.1.0]
Uploading git          [2.5.0]
Uploading mysql        [3.0.0]
Uploading openssl      [1.0.2]
Uploading php          [1.1.8]
Uploading runit        [1.1.4]
Uploading sudo         [2.1.2]
Uploading users        [1.5.0]
Uploading vim          [1.0.2]
Uploading windows      [1.8.10]
Uploading xml          [1.1.2]
Uploading yum          [2.2.0]
ERROR: Server returned error for https://chef.lbox.com/sandboxes/000000000000a7f169ffc8cbaefb57e7, retrying 1/5 in 3s
ERROR: Server returned error for https://chef.lbox.com/sandboxes/000000000000a7f169ffc8cbaefb57e7, retrying 2/5 in 8s
ERROR: Server returned error for https://chef.lbox.com/sandboxes/000000000000a7f169ffc8cbaefb57e7, retrying 3/5 in 16s
ERROR: Server returned error for https://chef.lbox.com/sandboxes/000000000000a7f169ffc8cbaefb57e7, retrying 4/5 in 18s
ERROR: Server returned error for https://chef.lbox.com/sandboxes/000000000000a7f169ffc8cbaefb57e7, retrying 5/5 in 53s
ERROR: internal server error
Response: internal service error

I checked the server logs with chef-server-ctl tail

But it doesn’t seem like anything is there:

find: `/var/log/chef-server/erchef': Permission denied
find: `/var/log/chef-server/chef-expander': Permission denied
find: `/var/log/chef-server/rabbitmq': Permission denied
find: `/var/log/chef-server/chef-solr': Permission denied
find: `/var/log/chef-server/chef-pedant': Permission denied
find: `/var/log/chef-server/bookshelf': Permission denied
find: `/var/log/chef-server/chef-server-webui': Permission denied
find: `/var/log/chef-server/nginx': Permission denied
2013-05-15_17:50:58.23488 FATAL:  terminating connection due to administrator command
2013-05-15_17:50:58.23488 FATAL:  terminating connection due to administrator command
2013-05-15_17:50:58.23489 FATAL:  terminating connection due to administrator command
2013-05-15_17:50:58.23489 received TERM from runit, sending INT instead to force quit connections
2013-05-15_17:50:58.23490 LOG:  shutting down
2013-05-15_17:50:58.23491 LOG:  received fast shutdown request
2013-05-15_17:50:58.23491 LOG:  database system is shut down
2013-05-15_17:51:36.71153 LOG:  database system was shut down at 2013-05-15 17:50:58 GMT
2013-05-15_17:51:36.74589 LOG:  database system is ready to accept connections
2013-05-15_17:51:36.75655 LOG:  autovacuum launcher started

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.

more →
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 3s

ec2-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???

more →
1 122