balexand/sunspot_mongo — Issue #3: rake aborted! RSolr::Error::Http - 500 Internal Server Error
Author: hyperrjas
Created: 2011-12-01 16:21:46+00:00
State: open

Hey Balexand, I have a new problem with sunspot_mongo with new sunspot-1.3.0 and rsolr-1.0.6. When I try

rake sunspot:mongo:reindex

reindexing Model
rake aborted!
RSolr::Error::Http - 500 Internal Server Error
Error: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/home/ubuntu/Desktop/Project/solr/data/development/index: files: lucene-c43d1f7f8a62a2ff6fed0bddcce1a574-write.lock

java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/home/ubuntu/Desktop/Project/solr/data/development/index: files: lucene-c43d1f7f8a62a2ff6fed0bddcce1a574-write.lock
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:655)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:538)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:306)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1577)
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:1402)
at org.apache.solr.update.SolrIndexWriter.(SolrIndexWriter.java:190)
at org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:98)
at org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:173)

Request Data: "House 4ed795731d41c818d1000031HouseHouseThis is a new house check"

Backtrace: /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/rsolr-1.0.6/lib/rsolr/client.rb:164:in `execute'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/rsolr-1.0.6/lib/rsolr/client.rb:158:in `send_and_receive'
(eval):2:in `post'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/rsolr-1.0.6/lib/rsolr/client.rb:67:in `update'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/rsolr-1.0.6/lib/rsolr/client.rb:87:in `add'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/sunspot-1.3.0/lib/sunspot/indexer.rb:101:in `add_documents'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/sunspot-1.3.0/lib/sunspot/indexer.rb:26:in `add'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/sunspot-1.3.0/lib/sunspot/session.rb:91:in `index'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/sunspot-1.3.0/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `index'
/home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/sunspot-1.3.0/lib/sunspot.rb:184:in `index'

Tasks: TOP => sunspot:mongo:reindex
(See full trace by running task with --trace)

Thank you!