Skip to content

Instantly share code, notes, and snippets.

View whiteley's full-sized avatar

Matt Whiteley whiteley

View GitHub Profile
merb : worker (port 4000) ~ Started request handling: Thu Dec 10 23:21:36 +0000 2009
merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_slice/search"}
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_slice/search"}
merb : worker (port 4000) ~ {:before_filters_time=>0.0, :action_time=>0.02, :after_filters_time=>0.0, :dispatch_time=>0.02}
merb : worker (port 4000) ~
irb(main):002:0> foo = Chef::Search.new
/usr/lib/ruby/1.8/chef/search.rb:28: warning: toplevel constant Config referenced by Chef::Config
NoMethodError: undefined method `[]' for Config:Module
from /usr/lib/ruby/1.8/chef/search.rb:28:in `initialize'
from (irb):2:in `new'
from (irb):2
irb(main):001:0> require 'chef/search'
=> true
irb(main):002:0> require 'chef/config'
=> true
irb(main):003:0> foo = Chef::Search.new
=> #<Chef::Search:0x7fb616b783f0 @index=#<Ferret::Index::Index:0x7fb616b78350 @id_field=:id, @auto_flush=false, @mon_entering_queue=[], @key=nil, @mon_count=0, @dir=#<Ferret::Store::FSDirectory:0x7fb616b77ae0>, @default_input_field=:id, @mon_owner=nil, @reader=nil, @searcher=nil, @qp=nil, @close_dir=true, @default_field=:*, @mon_waiting_queue=[], @writer=nil, @open=true, @options={:lock_retry_time=>2, :dir=>#<Ferret::Store::FSDirectory:0x7fb616b77ae0>, :default_field=>:*, :analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x7fb616b74700>, :path=>"/var/chef/search_index"}>>
irb(main):004:0> foo.list_indexes
=> []
include_recipe "chef::client"
execute "apt-get update" do
action :nothing
end
template "/etc/apt/sources.list.d/opscode.list" do
owner "root"
mode "0644"
source "opscode.list.erb"
velox% host sustainableharvest.swipht.com 68.87.85.98
Using domain server:
Name: 68.87.85.98
Address: 68.87.85.98#53
Aliases:
sustainableharvest.swipht.com is an alias for dev.swipht.com.
dev.swipht.com has address 70.90.134.13
velox% host sustainableharvest.swipht.com 68.87.69.146
Using domain server:
aegir@aegir:~/drupal-6.15$ /var/aegir/drush/drush -d provision backup test.swipht.com
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec] [bootstrap]
Loading drushrc "/var/aegir/drupal-6.15/drushrc.php" into "drupal" scope. [0.06 sec] [bootstrap]
Initialized Drupal 6.15 root directory at /var/aegir/drupal-6.15 [0.08 sec] [notice]
Found command: provision backup [0.09 sec] [bootstrap]
Initializing drush commandfile: provision_apache [0.09 sec]
nohup(/tmp)% cat backup.sh
#!/bin/bash
echo "almost done"
echo "omg error" >&2
nohup(/tmp)% cat tng.py
#!/usr/bin/env python
from subprocess import *
ant
ant-gcj
ant-optional
ant-optional-gcj
apache2-utils
ca-certificates-java
chef
chef-server
chef-server-api
chef-server-webui
DEBUG: Found recipe server_proxy in cookbook chef
/usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:62:in `method_missing': Cannot find IncludeAttribute for include_attribute (NameError)
Original exception: NameError: uninitialized constant Chef::Resource::IncludeAttribute
from /srv/chef/cache/cookbooks/chef/recipes/server_proxy.rb:26:in `from_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/cookbook.rb:171:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/mixin/language_include_recipe.rb:38:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/compile.rb:145:in `load_recipes'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.14/bin/../lib/chef/compile.rb:144:in `each'
[Fri, 20 Aug 2010 16:33:57 -0400] INFO: Starting Chef Run
[Fri, 20 Aug 2010 16:34:03 -0400] ERROR: template[/etc/ssh/ssh_known_hosts] (/var/cache/chef/cookbooks/ssh_known_hosts/recipes/default.rb:13:in `from_file') had an error:
Chef::Mixin::Template::TemplateError (undefined method `[]' for nil:NilClass) on line #3:
1: # THIS FILE IS MAINTAINED BY CHEF, DO NOT MODIFY AS IT WILL BE OVERWRITTEN
2: <% @nodes.each do |n| -%>
3: <%= n['hostname'] %>,<%= n['ipaddress'] %> ssh-rsa <%= n['keys']['ssh']['host_rsa_public'] %>
4: <%= n['hostname'] %>,<%= n['ipaddress'] %> ssh-dsa <%= n['keys']['ssh']['host_dsa_public'] %>