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...
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)