Skip to content

Instantly share code, notes, and snippets.

View jsierles's full-sized avatar
🎯
Focusing

Joshua Sierles jsierles

🎯
Focusing
View GitHub Profile
~ Compiling routes... (totally normal to see 'Cannot find resource model')
~ Loading roles
~ Loading tadalist
~ Loading proxy
~ Loading dns
~ Loading blogcabin
~ Loading bookstore
~ Loading app
~ Loading help
~ Loading basecamp
~ Loading roles
~ Loading tadalist
~ Sending HTTP Request via GET to /chef/role_tadalist
~ Replacing role tadalist with data from /var/chef/roles/tadalist.json
~ Sending HTTP Request via PUT to /chef/role_tadalist
~ Loading proxy
~ Sending HTTP Request via GET to /chef/role_proxy
~ Replacing role proxy with data from /var/chef/roles/proxy.json
~ Sending HTTP Request via PUT to /chef/role_proxy
~ Loading dns
[info] [<0.89.0>] 127.0.0.1 - - "GET /chef/role_basecamp" 200
[info] [<0.91.0>] 127.0.0.1 - - "PUT /chef/role_basecamp" 201
[info] [<0.92.0>] HTTP Error (code 404): {not_found,missing}
[info] [<0.92.0>] 127.0.0.1 - - "GET /chef/role_site" 404
[info] [<0.94.0>] HTTP Error (code 412): conflict
[info] [<0.94.0>] 127.0.0.1 - - "PUT /chef/role_kvm" 412
[info] [<0.95.0>] 127.0.0.1 - - "GET /" 200
~ Params: {"format"=>nil, "action"=>"destroy", "_method"=>"delete", "id"=>"cf-app", "controller"=>"chef_server_slice/roles"}
~ 500 "Internal Server Error" - (Net::HTTPFatalError)
/usr/local/lib/ruby/1.8/net/http.rb:2097:in `error!'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.1/lib/chef/rest.rb:232:in `run_request'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.1/lib/chef/rest.rb:85:in `get_rest'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.1/lib/chef/couchdb.rb:152:in `get_view'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.1/lib/chef/role.rb:164:in `destroy'
RewriteRule ^(.*)/as/.*$ $1 [L]
# users recipe
node[:active_groups].each do |group_name, config|
users = node[:users].find_all { |u| u.last[:group] == group_name }
group group_name.to_s do
group = node[:groups][group_name]
gid group[:gid]
# TODO: add users to groups under their role
class User < ActiveRecord::Base
acts_as_authentic do |c|
c.crypto_provider = Authlogic::CryptoProviders::BCrypt
end
belongs_to :role
has_one :artist
has_attached_file :photo,
name "attr1"
description "Test attributes 1"
recipes "attribute_test"
default_attributes :test => {
:one => {1 => 1, 2 => 1, 3 => 1}
}
---
name "attr2"
+----------------------------------------------------------------+
| rate | conn/s | req/s | replies/s avg | errors | net io (KB/s) |
+----------------------------------------------------------------+
| 100 | 99.7 | 99.7 | 0.0 | 0 | 1165.3 |
| 125 | 121.5 | 121.5 | 0.0 | 0 | 1420.4 |
| 150 | 147.8 | 147.8 | 0.0 | 0 | 1727.9 |
| 175 | 172.3 | 172.3 | 0.0 | 0 | 2014.5 |
| 200 | 194.1 | 194.1 | 0.0 | 0 | 2269.6 |
| 225 | 217.6 | 217.6 | 0.0 | 0 | 2544.7 |
| 250 | 239.5 | 239.5 | 0.0 | 0 | 2800.6 |
DEBUG: package[apache2] using Chef::Provider::Package::Apt
DEBUG: Checking apt-cache policy for apache2
DEBUG: Current version is 2.2.9-7ubuntu3.3
DEBUG: Current version is 2.2.9-7ubuntu3.3
DEBUG: Processing service[apache2]
DEBUG: service[apache2] using Chef::Provider::Service::Debian
DEBUG: service[apache2] does not support status and you have not specified a status command, falling back to process table inspection
ERROR: service[apache2] (/var/chef/cookbooks/apache2/recipes/default.rb line 11) had an error:
closed stream
/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `close'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:60:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `[]'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/mixin/command.rb:371:in `popen4'/usr/lib/ruby/gems/1.8/gems/chef-0.7.12/lib/chef/provider/service/simple.rb:59:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.