Skip to content

Instantly share code, notes, and snippets.

first file had this at line
4 node[:rails_env] = 'qa'
5 node[:app_name] = 'rtb_bidder'
6 rtb_data_bag = data_bag_item('rtb', 'app')
96 include_recipe "rtb::common_tail"
in rtb_common.rb:
service "apache2" do
name "apache2"
supports :restart => true, :reload => true
action :enable
end
[
"archive_master_production",
"archive_slave_production"
]
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: *****************************************
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: Can not find config file: /etc/chef/solr.rb, using defaults.
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: No such file or directory - /etc/chef/solr.rb
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: *****************************************
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: This operation is destructive!
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: I'm going to count to 10, and then delete your Solr index and rebuild it.
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: CTRL-C will, of course, stop this disaster.
[Wed, 18 Apr 2012 19:59:30 -0700] WARN: ... 0
[Wed, 18 Apr 2012 19:59:31 -0700] WARN: ... 1
[Wed, 18 Apr 2012 19:59:32 -0700] WARN: ... 2
2012-04-19_01:45:49.37100 [Wed, 18 Apr 2012 18:43:11 -0700] INFO: Indexing node 391fc140-fb02-4936-a2df-b833d2d378c8 from chef status ok}
2012-04-19_01:45:49.37101 [Wed, 18 Apr 2012 18:43:12 -0700] INFO: Indexing node 01d1a6a8-7855-4e11-b70c-744e24f2c5e2 from chef status ok}
2012-04-19_01:45:49.37102 [Wed, 18 Apr 2012 18:43:14 -0700] INFO: Indexing node 0e7312ef-9f8c-4e33-96e2-11fd806f2d97 from chef status ok}
2012-04-19_01:45:49.37102 [Wed, 18 Apr 2012 18:43:16 -0700] INFO: Indexing node 391fc140-fb02-4936-a2df-b833d2d378c8 from chef status ok}
2012-04-19_01:45:49.37103 [Wed, 18 Apr 2012 18:43:17 -0700] INFO: Indexing node 01d1a6a8-7855-4e11-b70c-744e24f2c5e2 from chef status ok}
2012-04-19_01:45:49.37104 [Wed, 18 Apr 2012 18:43:19 -0700] INFO: Indexing node e9913986-2614-49aa-9300-611bfd9e19f9 from chef status ok}
2012-04-19_01:45:49.37105 [Wed, 18 Apr 2012 18:44:20 -0700] FATAL: POST to Solr 'http://localhost:8983' failed. Chef::Exceptions::SolrConnectionError exception: Timeout::Error: execution expired
root:/etc/sv/chef-client/log/main# chef-client -l debug
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: Loading plugin os
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: Loading plugin kernel
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: Loading plugin ruby
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: Loading plugin languages
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts %Q(host_cpu=#{::Config::CONFIG['host_cpu']},host_vendor=#{::Config::CONFIG['host_vendor']},release_date=#{RUBY_RELEASE_DATE},ruby_bin=#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},platform=#{RUBY_PLATFORM},target_cpu=#{::Config::CONFIG['target_cpu']},host_os=#{::Config::CONFIG['host_os']},version=#{RUBY_VERSION},host=#{::Config::CONFIG['host']},target_vendor=#{::Config::CONFIG['target_vendor']},target_os=#{::Config::CONFIG['target_os']},target=#{::Config::CONFIG['target']},bin_dir=#{::Config::CONFIG['bindir']},)" STDOUT ----
[Tue, 06 Mar 2012 17:07:14 -0800] DEBUG: host_cpu=x86_64,host_vend
require 'ohai'
require 'json'
o = Ohai::System.new
o.all_plugins
chef_config = JSON.parse(o[:ec2][:userdata])
if chef_config.kind_of?(Array)
chef_config = chef_config[o[:ec2][:ami_launch_index]]
end
Chef::Log.info(chef_config["app_role"])
if chef_config["app_role"] == "primary"
@Aslan
Aslan / gist:1265557
Created October 5, 2011 20:16
apt-get update error
[Wed, 05 Oct 2011 13:09:37 -0700] DEBUG: Processing execute[apt-get-update] on i-xxxxxx
[Wed, 05 Oct 2011 13:09:37 -0700] DEBUG: Executing apt-get update
[Wed, 05 Oct 2011 13:09:37 -0700] DEBUG: ---- Begin output of apt-get update ----
[Wed, 05 Oct 2011 13:09:37 -0700] DEBUG: STDOUT: Ign http://us-east-1.ec2.archive.ubuntu.com lucid Release.gpg
Ign http://us-east-1.ec2.archive.ubuntu.com lucid-updates Release.gpg
Ign http://us-east-1.ec2.archive.ubuntu.com lucid Release
Ign http://us-east-1.ec2.archive.ubuntu.com lucid-updates Release
Ign http://us-east-1.ec2.archive.ubuntu.com lucid/main Packages
Ign http://us-east-1.ec2.archive.ubuntu.com lucid/universe Packages
Ign http://us-east-1.ec2.archive.ubuntu.com lucid/main Sources
@Aslan
Aslan / munin
Created September 23, 2011 21:47
#
# cron-jobs for munin
#
MAILTO=root
@reboot root if [ ! -d /var/run/munin ]; then /bin/bash -c 'perms=(`/usr/sbin/dpkg-statoverride --list /var/run/munin`); mkdir /var/run/munin; chown ${perms[0]:-munin}:${perms[1]:-root} /var/run/munin; chmod ${perms[2]:-0755} /var/run/munin'; fi
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
14 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits; fi
WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate. Ensure that your client key is valid.
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 401 "Unauthorized" (Net::HTTPServerException)
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:233:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:284:in `retriable_rest_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:214:in `api_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/rest.rb:110:in `get_rest'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/role.rb:187:in `list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife/role_list.rb:35:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/knife.rb:127:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/lib/chef/application/knife.rb:121:in `run'