Skip to content

Instantly share code, notes, and snippets.

@bansalakhil
Created May 2, 2013 13:31
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 bansalakhil/5502200 to your computer and use it in GitHub Desktop.
Save bansalakhil/5502200 to your computer and use it in GitHub Desktop.
updated product:
#<Spree::Product id: nil, name: "He Bear She Bear", description: nil, available_on: nil, deleted_at: nil, permalink: nil, meta_description: "He Bear She Bear", meta_keywords: "He Bear She Bear", tax_category_id: nil, shipping_category_id: nil, created_at: nil, updated_at: nil, count_on_hand: 0, featured: false, taxon_keywords: nil, status: true, delta: true, install: false, heavy_item: false, approved_reviews_count: 0, store_id: nil, from_gardners: true, sync_gardners: true, is_dropship: true, bin_location: nil, row: nil, shelf: nil, column: nil, bin: nil>
rake aborted!
Mysql2::Error: Duplicate entry '646-630' for key 'PRIMARY': INSERT INTO `spree_products_taxons` (`product_id`, `taxon_id`) VALUES (646, 630)
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/instrumentation/active_record.rb:32:in `block in log_with_newrelic_instrumentation'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/instrumentation/active_record.rb:29:in `log_with_newrelic_instrumentation'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:234:in `exec_insert'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/has_and_belongs_to_many_association.rb:29:in `insert_record'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:496:in `block (2 levels) in concat_records'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:344:in `add_to_target'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:495:in `block in concat_records'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:493:in `each'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:493:in `concat_records'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:134:in `block in concat'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:149:in `block in transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/transactions.rb:208:in `transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/method_tracer.rb:493:in `block in transaction_with_trace_ActiveRecord_self_name_transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/method_tracer.rb:488:in `transaction_with_trace_ActiveRecord_self_name_transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:148:in `transaction'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_association.rb:134:in `concat'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/associations/collection_proxy.rb:116:in `<<'
/var/www/Konga-Staging/releases/20130502124103/lib/spree_gardners_books/lib/xml_isbn.rb:143:in `block in start_element'
/var/www/Konga-Staging/releases/20130502124103/lib/spree_gardners_books/lib/xml_isbn.rb:139:in `each'
/var/www/Konga-Staging/releases/20130502124103/lib/spree_gardners_books/lib/xml_isbn.rb:139:in `start_element'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.5.9/lib/nokogiri/xml/sax/document.rb:116:in `start_element_namespace'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.5.9/lib/nokogiri/xml/sax/parser.rb:106:in `parse_with'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/nokogiri-1.5.9/lib/nokogiri/xml/sax/parser.rb:106:in `parse_file'
/var/www/Konga-Staging/releases/20130502124103/lib/spree_gardners_books/lib/tasks/gb.rake:335:in `block (2 levels) in <top (required)>'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment