Skip to content

Instantly share code, notes, and snippets.

@rossta
Created June 22, 2015 14:07
Show Gist options
  • Save rossta/16c222dd317544b7cac4 to your computer and use it in GitHub Desktop.
Save rossta/16c222dd317544b7cac4 to your computer and use it in GitHub Desktop.
Error connecting to solr on remote host
deploy@app_master:princess i-9e7a7b61 /data/platform/current $ bundle exec rake sunspot:reindex
No config found for ["New Relic", "license_key"]. Activate the services that provides 'New Relic' or remove the code that uses it.
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
RSolr::Error::Http: RSolr::Error::Http - 404 Not Found
Error: Not Found
Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:ActsAsTaggableOn\\:\\:Tag</query></delete>"
Backtrace: /data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:283:in `adapt_response'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:190:in `execute'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:176:in `send_and_receive'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:82:in `update'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:146:in `delete_by_query'/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:283:in `adapt_response'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:190:in `execute'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:176:in `send_and_receive'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:82:in `update'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:146:in `delete_by_query'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/indexer.rb:58:in `remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session.rb:181:in `block in remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session.rb:181:in `each'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session.rb:181:in `remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot.rb:464:in `remove_all'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/newrelic_rpm-3.9.0.229/lib/new_relic/agent/method_tracer.rb:455:in `block in remove_all_with_trace_SolrClient_Sunspot_delete'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/newrelic_rpm-3.9.0.229/lib/new_relic/agent/method_tracer.rb:219:in `trace_execution_scoped'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/newrelic_rpm-3.9.0.229/lib/new_relic/agent/method_tracer.rb:453:in `remove_all_with_trace_SolrClient_Sunspot_delete'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/searchable.rb:183:in `solr_remove_all_from_index'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/searchable.rb:202:in `solr_reindex'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/tasks.rb:57:in `block (4 levels) in <top (required)>'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/class_set.rb:16:in `each'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot-2.1.1/lib/sunspot/class_set.rb:16:in `each'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/tasks.rb:56:in `block (3 levels) in <top (required)>'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/tasks.rb:68:in `with_session'
/data/platform/shared/bundled_gems/ruby/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/tasks.rb:19:in `block (2 levels) in <top (required)>'
Tasks: TOP => sunspot:reindex
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment