[chef] Issues with "knife status" and rebuilding the solr index


Chronological Thread 
  • From: Chris Read < >
  • To:
  • Subject: [chef] Issues with "knife status" and rebuilding the solr index
  • Date: Tue, 9 Nov 2010 19:32:36 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=LzWM6x+j5cCxJvL3qZyTdMirBEnUuzbk81udTb+VhAp7xc4877sNbxSz/q/p/mdZy0 uDe+ujbQKPjJqfHtdr0/YHd03Zpr63dV7p6CjW4ZRI7ZhPHxO8tWyO2vJJZfHajwr1+b wl7JFXzViMwjSQOe3lY00rmRb9sDojbp+g3l0=

Greetings all...

I recently migrated my chef server from one machine to another. Apart from the confusion around the RabbitMQ security and /etc/chef/amqp_passwd things went well. 

However - since then I've noticed a problem. "knife status" does not list any of my new nodes that I've added since the move, and I keep getting the following errors in the solr logs that indicate something is not happy. 

Anyone have any idea? Is there an easy way to rebuild the solr index from scratch?

Thanks in advance...

Chris

solr-indexer.log:

[Tue, 09 Nov 2010 19:29:19 +0000] INFO: Indexing node d3873349-fff2-458a-aedb-fedefcee35c9 from chef status error 500 "chefcachechefsolrdataindexsegments_3f6_No_such_file_or_directory__javaioFileNotFoundException_chefcachechefsolrdataindexsegments_3f6_No_such_file_or_directory__at_javaioRandomAccessFileopenNative_Method__at_javaioRandomAccessFileinitRandomAccessFilejava212__at_orgapachelucenestoreFSDirectory$FSIndexInput$DescriptorinitFSDirectoryjava626__at_orgapachelucenestoreFSDirectory$FSIndexInputinitFSDirectoryjava656__at_orgapachelucenestoreNIOFSDirectory$NIOFSIndexInputinitNIOFSDirectoryjava76__at_orgapachelucenestoreNIOFSDirectoryopenInputNIOFSDirectoryjava63__at_orgapachelucenestoreFSDirectoryopenInputFSDirectoryjava556__at_orgapacheluceneindexSegmentInfosreadSegmentInfosjava231__at_orgapacheluceneindexSegmentInfos$1doBodySegmentInfosjava305__at_orgapacheluceneindexSegmentInfos$FindSegmentsFilerunSegmentInfosjava700__at_orgapacheluceneindexSegmentInfosreadSegmentInfosjava302__at_orgapacheluceneindexIndexWriterinitIndexWriterjava1470__at_orgapacheluceneindexIndexWriterinitIndexWriterjava1295__at_orgapachesolrupdateSolrIndexWriterinitSolrIndexWriterjava160__at_orgapachesolrupdateUpdateHandlercreateMainIndexWriterUpdateHandlerjava123__at_orgapachesolrupdateDirectUpdateHandler2openWriterDirectUpdateHandler2java172__at_orgapachesolrupdateDirectUpdateHandler2addDocDirectUpdateHandler2java219__at_orgapachesolrupdateprocessorRunUpdateProcessorprocessAddRunUpdateProcessorFactoryjava61__at_orgapachesolrhandlerXMLLoaderprocessUpdateXMLLoaderjava140__at_orgapachesolrhandlerXMLLoaderloadXMLLoaderjava69__at_orgapachesolrhandlerContentStreamHandlerBasehandleRequestBodyContentStreamHandlerBasejava54__at_orgapachesolrhandlerRequestHandlerBasehandleRequestRequestHandlerBasejava131__at_orgapachesolrcoreSolrCoreexecuteSolrCorejava1290__at_orgapachesolrservletSolrDispatchFilterexecuteSolrDispatchFilterja"}


solr.log:

Nov 9, 2010 7:29:19 PM org.apache.solr.common.SolrException log
SEVERE: java.io.FileNotFoundException: /chef/cache/chef/solr/data/index/segments_3f6 (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:626)
at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:656)
at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:76)
at org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:63)
at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:556)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:231)
at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:305)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:700)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:302)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1470)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1295)
at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:160)
at org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:123)
at org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:172)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:219)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:140)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1290)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Nov 9, 2010 7:29:19 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={} status=500 QTime=1590 
Nov 9, 2010 7:29:19 PM org.apache.solr.common.SolrException log
SEVERE: java.io.FileNotFoundException: /chef/cache/chef/solr/data/index/segments_3f6 (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:626)
at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:656)
at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:76)
at org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:63)
at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:556)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:231)
at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:305)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:700)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:302)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1470)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1295)
at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:160)
at org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:123)
at org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:172)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:219)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:140)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1290)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)





Archive powered by MHonArc 2.6.16.

§