Skip to content

Instantly share code, notes, and snippets.

View lazzarello's full-sized avatar

Lee Azzarello lazzarello

View GitHub Profile
ActiveRecord::StatementInvalid (PGError: ERROR: null value in column "latitude" violates not-null constraint
: INSERT INTO "addresses" ("name", "city", "latitude", "updated_at", "zipcode_plus_4", "address_line_1", "address_line_2", "address_line_3", "longitude", "person_id", "county_id", "state_id", "created_at") VALUES(E'personal', NULL, NULL, '2009-10-21 17:14:25.629925', E'89001', NULL, NULL, NULL, NULL, 8, NULL, NULL, '2009-10-21 17:14:25.629925') RETURNING "id"):
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log'
/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:484:in `execute'
/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:929:in `select_raw'
/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:916:in `select'
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_with
chef:/etc/chef# chef-client -l debug
/usr/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError)
from /usr/lib/ruby/1.8/net/http.rb:586:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/lib/ruby/1.8/net/http.rb:1035:in `request'
from /usr/lib/ruby/1.8/chef/rest.rb:178:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:85:in `get_rest'
from /usr/lib/ruby/1.8/chef/client.rb:193:in `register'
from /usr/lib/ruby/1.8/chef/client.rb:73:in `run'
/var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook_loader.rb:111:in `[]': Cannot find a cookbook named chef; did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata) (ArgumentError)
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/compile.rb:120:in `load_recipes'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/compile.rb:110:in `each'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/compile.rb:110:in `load_recipes'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:378:in `converge'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:82:in `run'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/application/client.rb:186:in `run_application'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/application/client.rb:178:in `loop'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/application/client.rb:178:in `run_application'
from /var/lib/gems/1.8/gems/chef-0.7.10/lib/chef/application.rb:57:i
add user "tiny" on misc server
create database oscurrency_production
configure authorized keys
cap enable oscurrency root
checkout master branch
make release tag
deploy release tag
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package `ejabberd' in `../ejabberd_2.1.2-1.1_i386.deb'.
dpkg-genchanges >../ejabberd_2.1.2-1.1_i386.changes
dpkg-genchanges: failure: cannot open .dsc file ../ejabberd_2.1.2-1.1.dsc: No such file or directory
dpkg-buildpackage: failure: dpkg-genchanges gave error exit status 2
debuild: fatal error at line 1319:
2010-03-04_17:18:43.82608 /var/lib/gems/1.8/gems/chef-0.8.4/lib/chef/client.rb:148:in `build_node': Unable to determine node name from ohai (RuntimeError)
2010-03-04_17:18:43.82624 from /var/lib/gems/1.8/gems/chef-solr-0.8.4/lib/chef/solr/application/solr.rb:110:in `setup_application'
2010-03-04_17:18:43.82627 from /var/lib/gems/1.8/gems/chef-0.8.4/lib/chef/application.rb:56:in `run'
2010-03-04_17:18:43.82629 from /var/lib/gems/1.8/gems/chef-solr-0.8.4/bin/chef-solr:26
2010-03-04_17:18:43.82632 from /var/lib/gems/1.8/bin/chef-solr:19:in `load'
2010-03-04_17:18:43.82634 from /var/lib/gems/1.8/bin/chef-solr:19
search(:application, "id:release").each do |i|
if i == "tag"
release_tag = i["tag"]
break
end
end
/var/chef/cache/cookbooks/postgresql/attributes/postgresql.rb:36:in `from_file': undefined method `[]' for :ec2_enums:Symbol (NoMethodError)
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook.rb:83:in `load_attribute_file'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook.rb:76:in `load_attributes'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook.rb:75:in `each'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook.rb:75:in `load_attributes'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/compile.rb:78:in `load_attributes'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook_loader.rb:132:in `each'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/cookbook_loader.rb:131:in `each'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/compile.rb:77:in `load_attributes'
from /var/lib/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/compile.rb:52:in `initialize'
chef-primary:~# strace -p 1480 -c
Process 1480 attached - interrupt to quit
Process 1480 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.063530 0 363630 rt_sigprocmask
0.00 0.000000 0 270 247 read
0.00 0.000000 0 248 247 rt_sigreturn
------ ----------- ----------- --------- --------- ----------------
100.00 0.063530 364148 494 total
total_memory = node[:memory][:total]
memory_size = Chef::Search::Query.new.search(:ec2_enums, "id:memory_size").flatten.first
if ( total_memory.to_i <= memory_size['small'].to_i )
set[:postgresql][:shmmax] = "33554432"
set[:postgresql][:shmall] = "2097152"
set[:postgresql][:shmmni] = "4096"
set[:postgresql][:max_connections] = "25"
set[:postgresql][:shared_buffers] = "35MB"
set[:postgresql][:work_mem] = "2MB"