Skip to content

Instantly share code, notes, and snippets.

@Lytol
Created September 22, 2009 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lytol/191507 to your computer and use it in GitHub Desktop.
Save Lytol/191507 to your computer and use it in GitHub Desktop.
exception_class: NoMethodError
controller_name: socket7
action_name: create_kid
message: "undefined method `shard_key' for nil:NilClass"
backtrace: [RAILS_ROOT]/app/models/tracker.rb:12:in `shard'
/usr/lib64/ruby/gems/1.8/gems/activerecord-distributed_mysql-adapter-0.1.0/lib/active_record/distributed_mysql_ext.rb:94:in `create_without_callbacks'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:254:in `create_without_timestamps'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in `create_without_user'
[RAILS_ROOT]/vendor/plugins/userstamp/lib/userstamp.rb:36:in `create'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1777:in `create_or_update_without_callbacks'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:242:in `create_or_update'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1533:in `save_without_validation'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/validations.rb:752:in `save_without_transactions'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in `transaction_without_deadlock_handling'
[RAILS_ROOT]/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:448:in `create'
[RAILS_ROOT]/lib/sharded_tracker_ext.rb:21:in `create_tracker'
[RAILS_ROOT]/app/models/kid.rb:362:in `track'
[RAILS_ROOT]/app/models/kid.rb:380:in `track_event'
[RAILS_ROOT]/app/models/kid.rb:397:in `favorite'
[RAILS_ROOT]/app/models/kid.rb:985:in `copy_default_profile'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:123:in `each'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:123:in `send'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:123:in `method_missing'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb:108:in `method_missing_without_paginate'
/usr/lib64/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/finder.rb:164:in `method_missing'
[RAILS_ROOT]/app/models/kid.rb:984:in `copy_default_profile'
[RAILS_ROOT]/app/models/kid.rb:975:in `set_default_content'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in `send'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in `callback'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `each'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `callback'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:255:in `create_without_timestamps'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in `create_without_user'
[RAILS_ROOT]/vendor/plugins/userstamp/lib/userstamp.rb:36:in `create'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1777:in `create_or_update_without_callbacks'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:242:in `create_or_update'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1533:in `save_without_validation'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/validations.rb:752:in `save_without_transactions'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in `transaction_without_deadlock_handling'
[RAILS_ROOT]/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in `transaction'
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'
[RAILS_ROOT]/app/controllers/client/socket7_controller.rb:227:in `create_kid'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `perform_action_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:634:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:600:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:600:in `proxy_before_and_after_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:470:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:470:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/app/controllers/application.rb:41:in `set_timezone'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
[RAILS_ROOT]/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19
environment: * CONTENT_LENGTH : 2568
* CONTENT_TYPE : application/x-www-form-urlencoded
* GATEWAY_INTERFACE : CGI/1.2
* HTTP_ACCEPT : */*
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : en-us
* HTTP_CONNECTION : close
* HTTP_CONTENT_LENGTH : 2568
* HTTP_CONTENT_TYPE : application/x-www-form-urlencoded
* HTTP_COOKIE : __qca=1209762046-49653471-76039596; __unam=90b11fb-12161dca44a-2a56bc12-14; __utma=12582830.3700739069723585000.1245301466.1251493796.1251502085.140; __utmv=12582830.logged-out; __utmx=12582830.; __utmxx=12582830.; __utmz=12582830.1247169919.123.3.utmcsr=login.kidzui.com|utmccn=(referral)|utmcmd=referral|utmcct=/login; _session_id=823966062d15d45f31bc4138c118810c; __utma=216481174.635025878083952300.1238695479.1238695479.1238695479.1; __utmv=216481174.logged-out; __utmx=216481174.; __utmxx=216481174.; __utmz=216481174.1238695479.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _csuid=485be435c9de98ba; campaign=partner-swig505; idt=12174
* HTTP_HOST : qa.kidzui.com
* HTTP_USER_AGENT : Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko)
* HTTP_VERSION : HTTP/1.0
* HTTP_X_FORWARDED_FOR : 66.27.118.25
* HTTP_X_FORWARDED_PROTO: http
* HTTP_X_REAL_IP : 66.27.118.25
* PATH_INFO : /kb_socket7/create_kid.amf
* RAW_POST_DATA : email=briansmith%40kidzui%2Ecom&avatar=%7B%22shoes%22%3A%5B%7B%22options%22%3A%7B%22tone%5F0%22%3A%220x10101%22%2C%22tone%5F1%22%3A%220xf8af5a%22%7D%2C%22uuid%22%3A%22d811e1c7%2D4a71%2D4357%2D9a53%2D34df102f60d9%22%2C%22gender%22%3A%22boy%22%2C%22children%22%3A%22%22%7D%5D%2C%22id%22%3A105087%2C%22mouth%22%3A%5B%7B%22options%22%3A%7B%22tone%5F0%22%3A%220xfb8159%22%2C%22tone%5F1%22%3A%220xffffff%22%7D%2C%22uuid%22%3A%22492c5be8%2D89de%2D4f9d%2Db015%2Ddfa4a582da98%22%2C%22gender%22%3A%22boy%22%2C%22children%22%3A%22%22%7D%5D%2C%22body%22%3A%5B%7B%22options%22%3A%7B%22tone%5F0%22%3A%220xeab093%22%2C%22tone%5F1%22%3A%220x0%22%7D%2C%22uuid%22%3A%227ab63f1c%2D01cb%2D4497%2D800f%2D551e6ea9d0be%22%2C%22gender%22%3A%22boy%22%2C%22children%22%3A%22%22%7D%5D%2C%22brows%22%3A%5B%7B%22options%22%3A%7B%22tone%5F0%22%3A%220xc3a500%22%2C%22tone%5F1%22%3A%22%22%7D%2C%22uuid%22%3A%22a9c11d25%2D8ce0%2D43c0%2D892d%2D28a5e61c3f52%22%2C%22gender%22%3A%22boy%22%2C%22children%22%3A%22%22%7D%5D%2C%22pants%22%3A%5B%7B%22options%22%3A%7B%22tone%5F0%22%3A%220x620e%22%2C%22tone%5F1%22%3A%220xffffff%22%7D%2C%22uuid%22%3A%2228d7f32a%2D9740%2D4b81%2D8019%2D12d135eb1c86%22%2C%22g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment