Skip to content

Instantly share code, notes, and snippets.

ubuntu@qa-admin-server:/srv$ sudo lsof -p 14298
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
couchdb 14298 couchdb cwd DIR 8,1 4096 2 /
couchdb 14298 couchdb rtd DIR 8,1 4096 2 /
couchdb 14298 couchdb txt REG 8,1 92132 57374 /bin/dash
couchdb 14298 couchdb mem REG 8,1 1335748 17225 /lib/tls/i686/nosegneg/libc-2.10.1.so
couchdb 14298 couchdb mem REG 8,1 113320 123164 /lib/ld-2.10.1.so
couchdb 14298 couchdb 0r CHR 1,3 0t0 896 /dev/null
couchdb 14298 couchdb 1w CHR 1,3 0t0 896 /dev/null
couchdb 14298 couchdb 2w FIFO 0,6 0t0 51545 pipe
# Chef Client Config File
# Automatically grabs configuration from ohai ec2 metadata.
require 'ohai'
require 'json'
o = Ohai::System.new
o.all_plugins
chef_config = JSON.parse(o[:ec2][:userdata])
if chef_config.kind_of?(Array)
./etc/
./etc/jetty.xml
./etc/webdefault.xml
./lib/
./lib/jetty-6.1.3.jar
./lib/jetty-util-6.1.3.jar
./lib/jsp-2.1/
./lib/jsp-2.1/ant-1.6.5.jar
./lib/jsp-2.1/core-3.1.1.jar
./lib/jsp-2.1/jsp-2.1.jar
2010-04-29_16:31:51.75322 merb : worker (port 4000) ~ Started request handling: Thu Apr 29 09:31:51 -0700 2010
2010-04-29_16:31:51.79326 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"admin", "controller"=>"chef_server_api/users"}
2010-04-29_16:31:51.79327 INFO: Authenticating client chef-webui
2010-04-29_16:31:51.79328 merb : worker (port 4000) ~ {:after_filters_time=>9.0e-06, :before_filters_time=>0.005161, :action_time=>0.007864, :dispatch_time=>0.008228}
2010-04-29_16:31:51.79331 merb : worker (port 4000) ~
2010-04-29_16:31:51.79331
2010-04-29_16:31:51.80731 merb : worker (port 4000) ~ Started request handling: Thu Apr 29 09:31:51 -0700 2010
2010-04-29_16:31:51.80732 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"node", "q"=>"*:*", "start"=>"0", "rows"=>"20", "controller"=>"chef_server_api/search", "sort"=>""}
2010-04-29_16:31:51.80732 INFO: Authenticating client chef-webui
2010-04-29_16:31:51.84791 merb : worker (port 4000) ~ 503 "Service Unav
ubuntu@domU-12-31-39-0B-28-F7:~$ ps aux | grep rabbitmq
ubuntu 565 0.0 0.0 3056 796 pts/0 S+ 04:12 0:00 grep --color=auto rabbitmq
rabbitmq 18724 0.0 0.0 1884 352 ? S 03:51 0:00 /usr/lib/erlang/erts-5.7.2/bin/epmd -daemon
rabbitmq 18759 0.0 0.5 16424 10036 ? Ssl 03:51 0:00 /usr/lib/erlang/erts-5.7.2/bin/beam -W w -K true -A30 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -pa /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.2/sbin/../ebin -noshell -noinput -s rabbit -sname rabbit -boot start_sasl -kernel inet_default_listen_options [{nodelay,true}] -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -kernel error_logger {file,"/var/log/rabbitmq/rabbit.log"} -sasl sasl_error_logger {file,"/var/log/rabbitmq/rabbit-sasl.log"} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit" -noshell -noinput
rabbitmq 18805 0.0 0.0 1676 360 ? Ss 03:51
root 23027 0.0 0.0 108 32 ? Ss 03:59 0:00 runsv chef-solr
root 23034 0.0 0.0 108 32 ? Ss 03:59 0:00 runsv chef-solr-indexer
root 23221 0.2 1.4 36772 25052 ? Sl 03:59 0:02 /usr/bin/ruby1.8 /usr/bin/chef-solr-indexer
ubuntu 32397 0.0 0.0 3056 792 pts/0 R+ 04:11 0:00 grep --color=auto chef-solr
ubuntu@domU-12-31-39-0B-28-F7:~$ sudo chef-solo -c /home/ubuntu/solo.rb -j /home/ubuntu/chef.json
[Thu, 29 Apr 2010 03:50:16 +0000] INFO: Starting Chef Solo Run
[Thu, 29 Apr 2010 03:50:18 +0000] INFO: Installing package[runit] version 2.0.0-1ubuntu3.1
[Thu, 29 Apr 2010 03:50:18 +0000] INFO: remote_file[/tmp/chef-solo/preseed/runit/runit-2.0.0-1ubuntu3.1.seed]: Creating /tmp/chef-solo/preseed/runit/runit-2.0.0-1ubuntu3.1.seed
[Thu, 29 Apr 2010 03:50:18 +0000] INFO: Pre-seeding package[runit] with package installation instructions.
[Thu, 29 Apr 2010 03:50:22 +0000] INFO: package[runit] sending nothing action to execute[start-runsvdir] (immediate)
[Thu, 29 Apr 2010 03:50:22 +0000] INFO: package[runit] sending nothing action to execute[runit-hup-init] (immediate)
[Thu, 29 Apr 2010 03:50:22 +0000] INFO: Creating directory[/etc/sv/chef-client] at /etc/sv/chef-client
[Thu, 29 Apr 2010 03:50:22 +0000] INFO: Setting mode to 755 for directory[/etc/sv/chef-client]
[Thu, 29 Apr 2010 03:50:22 +0000] INFO: Creating direct
2010-04-29_02:58:03.99496 Loading init file from /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.10/config/init.rb
2010-04-29_02:58:04.00427 Loading /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.10/config/environments/production.rb
2010-04-29_02:58:05.58031 INFO: Compiling routes... (totally normal to see 'Cannot find resource model')
2010-04-29_02:58:05.58042 ~ Loaded slice 'ChefServerApi' ...
2010-04-29_02:58:05.77922 ~ Compiling routes...
2010-04-29_02:58:06.02809 ~ Activating slice 'ChefServerApi' ...
2010-04-29_02:58:06.13624 /usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread': end of file reached (EOFError)
2010-04-29_02:58:06.13644 from /usr/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
2010-04-29_02:58:06.13646 from /usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
2010-04-29_02:58:06.13648 from /usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
[Thu, 29 Apr 2010 00:53:30 +0000] ERROR: remote_file[/tmp/chef-solo/apache-couchdb-0.9.1.tar.gz] (/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/lib/chef/mixin/recipe_definition_dsl_core.rb line 56) had an error:
404 "Not Found"
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/rest.rb:296:in `run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/rest.rb:106:in `get_rest'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/provider/remote_file.rb:107:in `get_from_uri'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/provider/remote_file.rb:53:in `do_remote_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/provider/remote_file.rb:34:in `action_create'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:60:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:60:in `run_action'
# Completely untested.
gem_package "amazon-ec2"
aws = search("aws", "main")
Gem.clear_paths
ruby_block do "register_with_elb" do
do
require 'amazon-ec2'