{"action":"created","issue":{"url":"https://api.github.com/repos/dkd/redsun/issues/2","repository_url":"https://api.github.com/repos/dkd/redsun","labels_url":"https://api.github.com/repos/dkd/redsun/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dkd/redsun/issues/2/comments","events_url":"https://api.github.com/repos/dkd/redsun/issues/2/events","html_url":"https://github.com/dkd/redsun/issues/2","id":159457199,"number":2,"title":"unable to install / start / reindex","user":{"login":"mashpie","id":118508,"avatar_url":"https://avatars.githubusercontent.com/u/118508?v=3","gravatar_id":"","url":"https://api.github.com/users/mashpie","html_url":"https://github.com/mashpie","followers_url":"https://api.github.com/users/mashpie/followers","following_url":"https://api.github.com/users/mashpie/following{/other_user}","gists_url":"https://api.github.com/users/mashpie/gists{/gist_id}","starred_url":"https://api.github.com/users/mashpie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mashpie/subscriptions","organizations_url":"https://api.github.com/users/mashpie/orgs","repos_url":"https://api.github.com/users/mashpie/repos","events_url":"https://api.github.com/users/mashpie/events{/privacy}","received_events_url":"https://api.github.com/users/mashpie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T16:53:11Z","updated_at":"2016-06-10T08:47:47Z","closed_at":null,"body":"followed your instructions, but got errors with \r\n\r\n```\r\n$ bundle exec sunspot:solr:start\r\n...\r\nbundler: command not found: sunspot:solr:start\r\n...\r\n```\r\n\r\nhad to change to\r\n```\r\n$ RAILS_ENV=production bundle exec rake sunspot:solr:start\r\n\r\n  Note: This task has been moved to the sunspot_solr gem. To install, start and\r\n  stop a local Solr instance, please add sunspot_solr to your Gemfile:\r\n\r\n  group :development do\r\n    gem 'sunspot_solr'\r\n  end\r\n````\r\n\r\naha, well... yes that is added in your Gemfile, ok next:\r\n\r\n```\r\n$ RAILS_ENV=production bundle exec rake sunspot:solr:reindex\r\n\r\nrake aborted!\r\nRSolr::Error::Http: RSolr::Error::Http - 400 Bad Request\r\n...\r\nURI: http://localhost:8080/solr/update?wt=ruby\r\nRequest Headers: {\"Content-Type\"=>\"text/xml\"}\r\nRequest Data: \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><delete><query>type:Project</query></delete>\"\r\n...\r\n```\r\n\r\nand a backtrace\r\n\r\n```\r\nBacktrace: /usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:284:in `adapt_response'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:190:in `execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:176:in `send_and_receive'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `block in instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'\r\n(eval):2:in `post'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:82:in `update'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:146:in `delete_by_query'/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:284:in `adapt_response'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:190:in `execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:176:in `send_and_receive'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `block in instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.2/lib/active_support/notifications.rb:164:in `instrument'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'\r\n(eval):2:in `post'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:82:in `update'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/rsolr-1.0.13/lib/rsolr/client.rb:146:in `delete_by_query'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/indexer.rb:68:in `remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session.rb:197:in `block in remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session.rb:197:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session.rb:197:in `remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot.rb:502:in `remove_all'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/searchable.rb:190:in `solr_remove_all_from_index'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/searchable.rb:209:in `solr_reindex'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/tasks.rb:60:in `block (4 levels) in <top (required)>'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/class_set.rb:16:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot-2.2.2/lib/sunspot/class_set.rb:16:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/tasks.rb:59:in `block (3 levels) in <top (required)>'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/tasks.rb:71:in `with_session'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/gems/sunspot_rails-2.2.2/lib/sunspot/rails/tasks.rb:19:in `block (2 levels) in <top (required)>'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval'\r\n/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `<main>'\r\nTasks: TOP => sunspot:solr:reindex => sunspot:reindex\r\n(See full trace by running task with --trace)\r\n```\r\n\r\nany hints?\r\n\r\nInstalled Solr/Tomcat as per https://www.digitalocean.com/community/tutorials/how-to-install-solr-on-ubuntu-14-04"},"comment":{"url":"https://api.github.com/repos/dkd/redsun/issues/comments/225126595","html_url":"https://github.com/dkd/redsun/issues/2#issuecomment-225126595","issue_url":"https://api.github.com/repos/dkd/redsun/issues/2","id":225126595,"user":{"login":"KieranHayes","id":70107,"avatar_url":"https://avatars.githubusercontent.com/u/70107?v=3","gravatar_id":"","url":"https://api.github.com/users/KieranHayes","html_url":"https://github.com/KieranHayes","followers_url":"https://api.github.com/users/KieranHayes/followers","following_url":"https://api.github.com/users/KieranHayes/following{/other_user}","gists_url":"https://api.github.com/users/KieranHayes/gists{/gist_id}","starred_url":"https://api.github.com/users/KieranHayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KieranHayes/subscriptions","organizations_url":"https://api.github.com/users/KieranHayes/orgs","repos_url":"https://api.github.com/users/KieranHayes/repos","events_url":"https://api.github.com/users/KieranHayes/events{/privacy}","received_events_url":"https://api.github.com/users/KieranHayes/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T08:47:47Z","updated_at":"2016-06-10T08:47:47Z","body":"I updated the documentation to include the missing rake command.\r\n\r\nYou should see within  Redmine's config folder a file named sunspot.yml\r\n\r\nHere you have to make sure that host and path to your Solr-core are correct.\r\n\r\n`production:\r\n  solr:\r\n    hostname: 127.0.0.1\r\n    port: 8080\r\n    log_level: WARNING\r\n    path: /solr-4.10.4/name-of-your-solr-core`\r\n\r\nIf you have access to your solr admin panel, then you should be able to connect to the core. \r\nIf you manage to fix the connection issue then you will probably run into schema issues. You have to make sure that you are using the schema.xml from the sunspot gem in your Solr-Core.\r\n\r\nThere is an outdated guide here: https://github.com/sunspot/sunspot/wiki/Ubuntu-10.04-lts-server (see 37)\r\n"}}
{"actor":{"display_login":"KieranHayes"}}