Re: no segments* file found

2018-12-14 Thread Mahmoud Almokadem
uKill.produce(EatWhatYouKill.java:140)
> > at
> >
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
> > at
> >
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
> > at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
> > at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
> > at java.base/java.lang.Thread.run(Thread.java:844)
> > Caused by: org.apache.solr.common.SolrException: Error opening new
> searcher
> > at org.apache.solr.core.SolrCore.(SolrCore.java:1008)
> > at org.apache.solr.core.SolrCore.(SolrCore.java:863)
> > at
> >
> org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1040)
> > at
> org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:640)
> > at
> >
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
> > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> > at
> >
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
> > at
> >
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
> > at
> >
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> > ... 1 more
> > Caused by: org.apache.solr.common.SolrException: Error opening new
> searcher
> > at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2095)
> > at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2215)
> > at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1091)
> > at org.apache.solr.core.SolrCore.(SolrCore.java:980)
> > ... 9 more
> > Caused by: org.apache.lucene.index.IndexNotFoundException: no segments*
> > file found in
> > LockValidatingDirectoryWrapper(NRTCachingDirectory(MMapDirectory@
> /path/to/index/my_collection_shard12_replica_n22/data/index
> > lockFactory=org.apache.lucene.store.NativeFSLockFactory@659b5e1;
> > maxCacheMB=48.0 maxMergeSizeMB=4.0)): files: [_11wv.cfe, _11wv.cfs, _
> 11wv.si,
> > _11wv_3b6.liv, _12zh.cfe, _12zh.cfs, _12zh.si, _12zh_2nv.liv, _13x.fdt,
> > _13x.fdx, _13x.fnm, _13x.si, _13x.tvd, _13x.tvx, _13x_6j7.liv,
> > _13x_Lucene50_0.doc, _13x_Lucene50_0.pos, _13x_Lucene50_0.tim,
> > _13x_Lucene50_0.tip, _13x_Lucene70_0.dvd, _13x_Lucene70_0.dvm, _13z6.cfe,
> > _13z6.cfs, _13z6.si, _13z6_36v.liv, _14yg.cfe, _14yg.cfs, _14yg.si,
> > _14yg_27l.liv, _14yg_27m.liv, _166y.cfe, _166y.cfs, _166y.si,
> > _166y_2rt.liv, _179l.cfe, _179l.cfs, _179l.si, _179l_2c3.liv, _18do.cfe,
> > _18do.cfs, _18do.si, _18do_1z0.liv, _19io.cfe, _19io.cfs, _19io.si,
> > _19io_29k.liv, _1axd.cfe, _1axd.cfs, _1axd.si, _1axd_2jt.liv, _1c6e.cfe,
> > _1c6e.cfs, _1c6e.si, _1c6e_1y6.liv, _1dbq.cfe, _1dbq.cfs, _1dbq.si,
> > _1dbq_1y8.liv, _1ei8.cfe, _1ei8.cfs, _1ei8.si, _1ei8_1w8.liv, _1heo.cfe,
> > _1heo.cfs, _1heo.si, _1heo_4y2.liv, _1m13.cfe, _1m13.cfs, _1m13.si,
> > _1m13_461.liv, _1rpy.cfe, _1rpy.cfs, _1rpy.si, _1rpy_1xg.liv, _1uqd.cfe,
> > _1uqd.cfs, _1uqd.si, _1uqd_2ph.liv, _2a1.fdt, _2a1.fdx, _2a1.fnm, _
> 2a1.si,
> > _2a1.tvd, _2a1.tvx, _2a1_72s.liv, _2a1_Lucene50_0.doc,
> _2a1_Lucene50_0.pos,
> > _2a1_Lucene50_0.tim, _2a1_Lucene50_0.tip, _2a1_Lucene70_0.dvd,
> > _2a1_Lucene70_0.dvm, _2dmz.cfe, _2dmz.cfs, _2dmz.si, _2dmz_bzg.liv,
> > _36h0.cfe, _36h0.cfs, _36h0.si, _36h0_nto.liv, _3a0.fdt, _3a0.fdx,
> > _3a0.fnm, _3a0.si, _3a0.tvd, _3a0.tvx, _3a0_6yd.liv,
> _3a0_Lucene50_0.doc,
> > _3a0_Lucene50_0.pos, _3a0_Lucene50_0.tim, _3a0_Lucene50_0.tip,
> > _3a0_Lucene70_0.dvd, _3a0_Lucene70_0.dvm, _3s8r.cfe, _3s8r.cfs, _3s8r.si
> ,
> > _3s8r_jft.liv, _4em.fdt, _4em.fdx, _4em.fnm, _4em.si, _4em.tvd,
> _4em.tvx,
> > _4em_7q6.liv, _4em_Lucene50_0.doc, _4em_Lucene50_0.pos,
> > _4em_Lucene50_0.tim, _4em_Lucene50_0.tip, _4em_Lucene70_0.dvd,
> > _4em_Lucene70_0.dvm, _4h26.cfe, _4h26.cfs, _4h26.si, _4h26_pt6.liv,
> > _53ot.cfe, _53ot.cfs, _53ot.si, _53ot_jss.liv, _5qw6.cfe, _5qw6.cfs, _
> > 5qw6.si, _5qw6_g6i.liv, _6or.fdt, _6or.fdx, _6or.fnm, _6or.si, _6or.tvd,
> > _6or.tvx, _6or_5s9.liv, _6or_Lucene50_0.doc, _6or_Lucene50_0.pos,
> > _6or_Lucene50_0.tim, _6or_Lucene50_0.tip, _6or_Lucene70_0.dvd,
> > _6or_Lucene70_0.dvm, _6pvs.cfe, _6pvs.cfs, _6pvs.si, _6pvs_h1o.liv,
> > _7bv9.cfe, _7bv9.cfs, _7bv9.si, _7bv9_nco.liv, _7se.fdt, _7se.fdx,
> > _7se.fnm, _7se.si, _7se.tvd, _7se.tvx, _7se_52h.liv,
> _7se_Lucene50_0.doc,
> > _7se_Lucene50_0.pos, _7

Re: no segments* file found

2018-12-14 Thread Erick Erickson
$13(CoreContainer.java:640)
> at
> com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> ... 1 more
> Caused by: org.apache.solr.common.SolrException: Error opening new searcher
> at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2095)
> at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2215)
> at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1091)
> at org.apache.solr.core.SolrCore.(SolrCore.java:980)
> ... 9 more
> Caused by: org.apache.lucene.index.IndexNotFoundException: no segments*
> file found in
> LockValidatingDirectoryWrapper(NRTCachingDirectory(MMapDirectory@/path/to/index/my_collection_shard12_replica_n22/data/index
> lockFactory=org.apache.lucene.store.NativeFSLockFactory@659b5e1;
> maxCacheMB=48.0 maxMergeSizeMB=4.0)): files: [_11wv.cfe, _11wv.cfs, _11wv.si,
> _11wv_3b6.liv, _12zh.cfe, _12zh.cfs, _12zh.si, _12zh_2nv.liv, _13x.fdt,
> _13x.fdx, _13x.fnm, _13x.si, _13x.tvd, _13x.tvx, _13x_6j7.liv,
> _13x_Lucene50_0.doc, _13x_Lucene50_0.pos, _13x_Lucene50_0.tim,
> _13x_Lucene50_0.tip, _13x_Lucene70_0.dvd, _13x_Lucene70_0.dvm, _13z6.cfe,
> _13z6.cfs, _13z6.si, _13z6_36v.liv, _14yg.cfe, _14yg.cfs, _14yg.si,
> _14yg_27l.liv, _14yg_27m.liv, _166y.cfe, _166y.cfs, _166y.si,
> _166y_2rt.liv, _179l.cfe, _179l.cfs, _179l.si, _179l_2c3.liv, _18do.cfe,
> _18do.cfs, _18do.si, _18do_1z0.liv, _19io.cfe, _19io.cfs, _19io.si,
> _19io_29k.liv, _1axd.cfe, _1axd.cfs, _1axd.si, _1axd_2jt.liv, _1c6e.cfe,
> _1c6e.cfs, _1c6e.si, _1c6e_1y6.liv, _1dbq.cfe, _1dbq.cfs, _1dbq.si,
> _1dbq_1y8.liv, _1ei8.cfe, _1ei8.cfs, _1ei8.si, _1ei8_1w8.liv, _1heo.cfe,
> _1heo.cfs, _1heo.si, _1heo_4y2.liv, _1m13.cfe, _1m13.cfs, _1m13.si,
> _1m13_461.liv, _1rpy.cfe, _1rpy.cfs, _1rpy.si, _1rpy_1xg.liv, _1uqd.cfe,
> _1uqd.cfs, _1uqd.si, _1uqd_2ph.liv, _2a1.fdt, _2a1.fdx, _2a1.fnm, _2a1.si,
> _2a1.tvd, _2a1.tvx, _2a1_72s.liv, _2a1_Lucene50_0.doc, _2a1_Lucene50_0.pos,
> _2a1_Lucene50_0.tim, _2a1_Lucene50_0.tip, _2a1_Lucene70_0.dvd,
> _2a1_Lucene70_0.dvm, _2dmz.cfe, _2dmz.cfs, _2dmz.si, _2dmz_bzg.liv,
> _36h0.cfe, _36h0.cfs, _36h0.si, _36h0_nto.liv, _3a0.fdt, _3a0.fdx,
> _3a0.fnm, _3a0.si, _3a0.tvd, _3a0.tvx, _3a0_6yd.liv, _3a0_Lucene50_0.doc,
> _3a0_Lucene50_0.pos, _3a0_Lucene50_0.tim, _3a0_Lucene50_0.tip,
> _3a0_Lucene70_0.dvd, _3a0_Lucene70_0.dvm, _3s8r.cfe, _3s8r.cfs, _3s8r.si,
> _3s8r_jft.liv, _4em.fdt, _4em.fdx, _4em.fnm, _4em.si, _4em.tvd, _4em.tvx,
> _4em_7q6.liv, _4em_Lucene50_0.doc, _4em_Lucene50_0.pos,
> _4em_Lucene50_0.tim, _4em_Lucene50_0.tip, _4em_Lucene70_0.dvd,
> _4em_Lucene70_0.dvm, _4h26.cfe, _4h26.cfs, _4h26.si, _4h26_pt6.liv,
> _53ot.cfe, _53ot.cfs, _53ot.si, _53ot_jss.liv, _5qw6.cfe, _5qw6.cfs, _
> 5qw6.si, _5qw6_g6i.liv, _6or.fdt, _6or.fdx, _6or.fnm, _6or.si, _6or.tvd,
> _6or.tvx, _6or_5s9.liv, _6or_Lucene50_0.doc, _6or_Lucene50_0.pos,
> _6or_Lucene50_0.tim, _6or_Lucene50_0.tip, _6or_Lucene70_0.dvd,
> _6or_Lucene70_0.dvm, _6pvs.cfe, _6pvs.cfs, _6pvs.si, _6pvs_h1o.liv,
> _7bv9.cfe, _7bv9.cfs, _7bv9.si, _7bv9_nco.liv, _7se.fdt, _7se.fdx,
> _7se.fnm, _7se.si, _7se.tvd, _7se.tvx, _7se_52h.liv, _7se_Lucene50_0.doc,
> _7se_Lucene50_0.pos, _7se_Lucene50_0.tim, _7se_Lucene50_0.tip,
> _7se_Lucene70_0.dvd, _7se_Lucene70_0.dvm, _7y61.cfe, _7y61.cfs, _7y61.si,
> _7y61_jsn.liv, _8ptb.cfe, _8ptb.cfs, _8ptb.si, _8ptb_k12.liv, _90p.fdt,
> _90p.fdx, _90p.fnm, _90p.si, _90p.tvd, _90p.tvx, _90p_3ie.liv,
> _90p_Lucene50_0.doc, _90p_Lucene50_0.pos, _90p_Lucene50_0.tim,
> _90p_Lucene50_0.tip, _90p_Lucene70_0.dvd, _90p_Lucene70_0.dvm, _9gwe.cfe,
> _9gwe.cfs, _9gwe.si, _9gwe_ibd.liv, _a3t.fdt, _a3t.fdx, _a3t.fnm, _a3t.si,
> _a3t.tvd, _a3t.tvx, _a3t_2wq.liv, _a3t_Lucene50_0.doc, _a3t_Lucene50_0.pos,
> _a3t_Lucene50_0.tim, _a3t_Lucene50_0.tip, _a3t_Lucene70_0.dvd,
> _a3t_Lucene70_0.dvm, _a3zn.cfe, _a3zn.cfs, _a3zn.si, _a3zn_df2.liv,
> _avb7.cfe, _avb7.cfs, _avb7.si, _avb7_c36.liv, _bcm.fdt, _bcm.fdx,
> _bcm.fnm, _bcm.si, _bcm.tvd, _bcm.tvx, _bcm_3ev.liv, _bcm_Lucene50_0.doc,
> _bcm_Lucene50_0.pos, _bcm_Lucene50_0.tim, _bcm_Lucene50_0.tip,
> _bcm_Lucene70_0.dvd, _bcm_Lucene70_0.dvm, _biqs.cfe, _biqs.cfs, _biqs.si,
> _biqs_9lt.liv, _caf8.cfe, _caf8.cfs, _caf8.si, _caf8_83x.liv, _cjy.cfe,
> _cjy.cfs, _cjy.si, _cjy_2ta.liv, _d22z.cfe, _d22z.cfs, _d22z.si,
> _d22z_7ys.liv, _dmm.cfe, _dmm.cfs, _dmm.si, _dmm_2mt.liv, _duk0.cfe,
> _duk0.cfs, _duk0.si, _duk0_817.liv, _eq1d.cfe, _eq1d.c

no segments* file found

2018-12-14 Thread Mahmoud Almokadem
Hello,

I'm facing an issue that some shards of my SolrCloud collection is
corrupted due to they don't have segments_N file but I think the whole
segments are still available. Can I create a segment_N file from the
available files?

This is the stack trace:

org.apache.solr.core.SolrCoreInitializationException: SolrCore
'my_collection_shard12_replica_n22' is not available due to init failure:
Error opening new searcher
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1495)
at org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:251)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:471)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:384)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:330)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.(SolrCore.java:1008)
at org.apache.solr.core.SolrCore.(SolrCore.java:863)
at
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1040)
at org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:640)
at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
... 1 more
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2095)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2215)
at org.apache.solr.core.SolrCore.initSearcher(SolrCore.java:1091)
at org.apache.solr.core.SolrCore.(SolrCore.java:980)
... 9 more
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments*
file found in
LockValidatingDirectoryWrapper(NRTCachingDirectory(MMapDirectory@/path/to/index/my_collection_shard12_replica_n22/data/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@659b5e1;
maxCacheMB=48.0

RE: java.io.FileNotFoundException: no segments* file found

2008-08-28 Thread Kashyap, Raghu
Is it possible that the index is corrupted? Did you try re indexing it?

-Raghu

-Original Message-
From: Jeremy Hinegardner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2008 11:34 AM
To: Solr Users
Subject: java.io.FileNotFoundException: no segments* file found

Hi all,

I've had a multicore system running for while now, and I just cycled the
jetty server and all of a sudden I got this error:

SEVERE: java.lang.RuntimeException: java.io.FileNotFoundException:
no segments* file found in
org.apache.lucene.store.FSDirectory@/opt/cisearch/ci-content-search/solr
/cores/0601_0/data/index: files:
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:899)
at org.apache.solr.core.SolrCore.init(SolrCore.java:450)
at org.apache.solr.core.MultiCore.create(MultiCore.java:255)
at org.apache.solr.core.MultiCore.load(MultiCore.java:139)
at
org.apache.solr.servlet.SolrDispatchFilter.initMultiCore(SolrDispatchFil
ter.java:147)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:
72)
at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
594)
at
org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1
218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500
)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.ja
va:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandle
rCollection.java:161)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.ja
va:147)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117
)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.io.FileNotFoundException: no segments* file found in
org.apache.lucene.store.FSDirectory@/opt/cisearch/ci-content-search/solr
/cores/0601_0/data/index: files:
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.j
ava:600)
at
org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.j
ava:81)
at
org.apache.lucene.index.IndexReader.open(IndexReader.java:209)
at
org.apache.lucene.index.IndexReader.open(IndexReader.java:173)
at
org.apache.solr.search.SolrIndexSearcher.init(SolrIndexSearcher.java:9
4)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:890)
... 29 more  

Of course, the odd thing is that the segments* file does exist:

  % ls -1
/opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments*
 
/opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments_32
i
 
/opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments.ge
n

Any ideas on what could cause this?  The only thing I can think of off
the top
of my head is that the core was coming up at the moment between the
snapinstaller steps of:

  1) /bin/rm -rf ${data_dir}/${index} 
  2) mv -f ${data_dir}/${index}.tmp$$ ${data_dir}/${index}

Any other thoughts / conjectures ?

enjoy,

-jeremy

-- 

 Jeremy Hinegardner  [EMAIL PROTECTED] 



java.io.FileNotFoundException: no segments* file found

2008-08-27 Thread Jeremy Hinegardner
Hi all,

I've had a multicore system running for while now, and I just cycled the
jetty server and all of a sudden I got this error:

SEVERE: java.lang.RuntimeException: java.io.FileNotFoundException: no 
segments* file found in 
org.apache.lucene.store.FSDirectory@/opt/cisearch/ci-content-search/solr/cores/0601_0/data/index:
 files:
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:899)
at org.apache.solr.core.SolrCore.init(SolrCore.java:450)
at org.apache.solr.core.MultiCore.create(MultiCore.java:255)
at org.apache.solr.core.MultiCore.load(MultiCore.java:139)
at 
org.apache.solr.servlet.SolrDispatchFilter.initMultiCore(SolrDispatchFilter.java:147)
at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:72)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.io.FileNotFoundException: no segments* file found in 
org.apache.lucene.store.FSDirectory@/opt/cisearch/ci-content-search/solr/cores/0601_0/data/index:
 files:
at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:600)
at 
org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:81)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:209)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:173)
at 
org.apache.solr.search.SolrIndexSearcher.init(SolrIndexSearcher.java:94)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:890)
... 29 more  

Of course, the odd thing is that the segments* file does exist:

  % ls -1 /opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments*
  /opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments_32i
  /opt/cisearch/ci-content-search/solr/cores/0601_0/data/index/segments.gen

Any ideas on what could cause this?  The only thing I can think of off the top
of my head is that the core was coming up at the moment between the
snapinstaller steps of:

  1) /bin/rm -rf ${data_dir}/${index} 
  2) mv -f ${data_dir}/${index}.tmp$$ ${data_dir}/${index}

Any other thoughts / conjectures ?

enjoy,

-jeremy

-- 

 Jeremy Hinegardner  [EMAIL PROTECTED] 



no segments* file found

2007-11-12 Thread SDIS M. Beauchamp
I'm using solr to index our files servers ( 480K files ) 
 
If I don't optimize, I 've got a too many files open at about 450K files
and 3 Gb index
 
If i optimize I've got this stacktrace during the commit of all the
following update
 
result status=1java.io.FileNotFoundException: no segments* file
found in
org.apache.lucene.store.FSDirectory@/root/trunk/example/solr/data/index:
files: _7xr.tis _7xt.fdt _7o1.tii _7xq.tis _7xn.nrm _7ws.fdt _7xt.prx
_7xp.nrm _7ws.nrm _7xo.nrm _7ws.tis _7xs.fdt _7vc.fnm _7u6.tis _7vx.fnm
_7vx.frq _7xs.nrm _7xn.tis _7xq.frq _7xs.tis _7xq.prx _7vx.fdx _7ur.tii
_7ur.frq _7xq.fnm _7xr.nrm _7vc.fdt _7xt.frq _7xp.fdx _7ws.prx _7xs.frq
_7xo.prx _7xq.nrm _7vx.tii _7vx.prx _7xq.tii _7xs.fnm _7xs.tii _7ws.tii
_7xt.fdx _7vc.nrm _7vc.prx _7vc.tis _7xq.fdt _7ur.prx _7xn.fdx _7xp.frq
_7vx.nrm _7ur.fdt _7xr.fnm _7ws.fdx _7u6.tii _7xr.tii _7vc.frq _7vx.tis
_7xp.fdt _7xr.frq_7ur.tis _7xp.prx _7xr.fdx _7xt.fnm _7xn.tii _7vc.fdx
_7xo.fdt _7u6.fnm _7xn.frq _7xp.tis _7o1.frq _7xn.prx _7ur.fdx _7ur.fnm
_7o1.fdx _7xs.fdx _7xn.fdt _7xt.tis _7xp.fnm _7xo.fnm _7xn.fnm _7u6.prx
_7xq.fdx _7xo.tii _7ws.fnm _7vc.tii _7o1.prx _7xr.fdt _7o1.fdt _7ur.nrm
_7ws.frq _7u6.nrm _7o1.nrm _7vx.fdt _7xt.tii _7u6.fdx _7xo.frq _7u6.frq
_7xs.prx _7xr.prx _7o1.tis _7xt.nrm _7xp.tii _7xo.tis _7u6.fdt _7xo.fdx
_7o1.fnm segments.gen
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
s.java:516)
at
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:243)
at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:616)
at
org.apache.lucene.index.IndexWriter.lt;initgt;(IndexWriter.java:410)
at
org.apache.solr.update.SolrIndexWriter.lt;initgt;(SolrIndexWriter.java
:97)
at
org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler
.java:121)
at
org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandl
er2.java:189)
at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.
java:267)
at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdate
ProcessorFactory.java:67)
at
org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateR
equestHandler.java:196)
at
org.apache.solr.handler.XmlUpdateRequestHandler.doLegacyUpdate(XmlUpdate
RequestHandler.java:386)
at
org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:
57)
   
 
/result
 
If I restart solr I've got a NullPointerException in DispatchFilter
 
tested with solr 1.2 and 1.3 , the behaviour is the same 
 
Regards
 
Florent BEAUCHAMP


Re: no segments* file found

2007-11-12 Thread Venkatraman S
are you using embedded solr?

I had stumbled on a similar error :
http://www.mail-archive.com/solr-user@lucene.apache.org/msg06085.html

-V

On Nov 12, 2007 2:16 PM, SDIS M. Beauchamp [EMAIL PROTECTED] wrote:

 I'm using solr to index our files servers ( 480K files )

 If I don't optimize, I 've got a too many files open at about 450K files
 and 3 Gb index

 If i optimize I've got this stacktrace during the commit of all the
 following update

 result status=1java.io.FileNotFoundException: no segments* file
 found in
 org.apache.lucene.store.FSDirectory@/root/trunk/example/solr/data/index:
 files: _7xr.tis _7xt.fdt _7o1.tii _7xq.tis _7xn.nrm _7ws.fdt _7xt.prx
 _7xp.nrm _7ws.nrm _7xo.nrm _7ws.tis _7xs.fdt _7vc.fnm _7u6.tis _7vx.fnm
 _7vx.frq _7xs.nrm _7xn.tis _7xq.frq _7xs.tis _7xq.prx _7vx.fdx _7ur.tii
 _7ur.frq _7xq.fnm _7xr.nrm _7vc.fdt _7xt.frq _7xp.fdx _7ws.prx _7xs.frq
 _7xo.prx _7xq.nrm _7vx.tii _7vx.prx _7xq.tii _7xs.fnm _7xs.tii _7ws.tii
 _7xt.fdx _7vc.nrm _7vc.prx _7vc.tis _7xq.fdt _7ur.prx _7xn.fdx _7xp.frq
 _7vx.nrm _7ur.fdt _7xr.fnm _7ws.fdx _7u6.tii _7xr.tii _7vc.frq _7vx.tis
 _7xp.fdt _7xr.frq_7ur.tis _7xp.prx _7xr.fdx _7xt.fnm _7xn.tii _7vc.fdx
 _7xo.fdt _7u6.fnm _7xn.frq _7xp.tis _7o1.frq _7xn.prx _7ur.fdx _7ur.fnm
 _7o1.fdx _7xs.fdx _7xn.fdt _7xt.tis _7xp.fnm _7xo.fnm _7xn.fnm _7u6.prx
 _7xq.fdx _7xo.tii _7ws.fnm _7vc.tii _7o1.prx _7xr.fdt _7o1.fdt _7ur.nrm
 _7ws.frq _7u6.nrm _7o1.nrm _7vx.fdt _7xt.tii _7u6.fdx _7xo.frq _7u6.frq
 _7xs.prx _7xr.prx _7o1.tis _7xt.nrm _7xp.tii _7xo.tis _7u6.fdt _7xo.fdx
 _7o1.fnm segments.gen
at
 org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
 s.java:516)
at
 org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:243)
at
 org.apache.lucene.index.IndexWriter.init(IndexWriter.java:616)
at
 org.apache.lucene.index.IndexWriter.lt;initgt;(IndexWriter.java:410)
at
 org.apache.solr.update.SolrIndexWriter.lt ;initgt;(SolrIndexWriter.java
 :97)
at
 org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler
 .java:121)
at
 org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandl
 er2.java:189)
at
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.
 java:267)
at
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdate
 ProcessorFactory.java :67)
at
 org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateR
 equestHandler.java:196)
at
 org.apache.solr.handler.XmlUpdateRequestHandler.doLegacyUpdate(XmlUpdate
 RequestHandler.java :386)
at
 org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:
 57)


 /result

 If I restart solr I've got a NullPointerException in DispatchFilter

 tested with solr 1.2 and 1.3 , the behaviour is the same

 Regards

 Florent BEAUCHAMP




--


RE: no segments* file found

2007-11-12 Thread SDIS M. Beauchamp
No , I'm using a custom indexer, written in C# which submits content using some 
post request.

I let lucene manage the index on his own

Florent BEAUCHAMP

-Message d'origine-
De : Venkatraman S [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 12 novembre 2007 10:19
À : solr-user@lucene.apache.org
Objet : Re: no segments* file found

are you using embedded solr?

I had stumbled on a similar error :
http://www.mail-archive.com/solr-user@lucene.apache.org/msg06085.html

-V

On Nov 12, 2007 2:16 PM, SDIS M. Beauchamp [EMAIL PROTECTED] wrote:

 I'm using solr to index our files servers ( 480K files )

 If I don't optimize, I 've got a too many files open at about 450K 
 files and 3 Gb index

 If i optimize I've got this stacktrace during the commit of all the 
 following update

 result status=1java.io.FileNotFoundException: no segments* file 
 found in
 org.apache.lucene.store.FSDirectory@/root/trunk/example/solr/data/index:
 files: _7xr.tis _7xt.fdt _7o1.tii _7xq.tis _7xn.nrm _7ws.fdt _7xt.prx 
 _7xp.nrm _7ws.nrm _7xo.nrm _7ws.tis _7xs.fdt _7vc.fnm _7u6.tis 
 _7vx.fnm _7vx.frq _7xs.nrm _7xn.tis _7xq.frq _7xs.tis _7xq.prx 
 _7vx.fdx _7ur.tii _7ur.frq _7xq.fnm _7xr.nrm _7vc.fdt _7xt.frq 
 _7xp.fdx _7ws.prx _7xs.frq _7xo.prx _7xq.nrm _7vx.tii _7vx.prx 
 _7xq.tii _7xs.fnm _7xs.tii _7ws.tii _7xt.fdx _7vc.nrm _7vc.prx 
 _7vc.tis _7xq.fdt _7ur.prx _7xn.fdx _7xp.frq _7vx.nrm _7ur.fdt 
 _7xr.fnm _7ws.fdx _7u6.tii _7xr.tii _7vc.frq _7vx.tis _7xp.fdt 
 _7xr.frq_7ur.tis _7xp.prx _7xr.fdx _7xt.fnm _7xn.tii _7vc.fdx _7xo.fdt 
 _7u6.fnm _7xn.frq _7xp.tis _7o1.frq _7xn.prx _7ur.fdx _7ur.fnm 
 _7o1.fdx _7xs.fdx _7xn.fdt _7xt.tis _7xp.fnm _7xo.fnm _7xn.fnm 
 _7u6.prx _7xq.fdx _7xo.tii _7ws.fnm _7vc.tii _7o1.prx _7xr.fdt 
 _7o1.fdt _7ur.nrm _7ws.frq _7u6.nrm _7o1.nrm _7vx.fdt _7xt.tii 
 _7u6.fdx _7xo.frq _7u6.frq _7xs.prx _7xr.prx _7o1.tis _7xt.nrm _7xp.tii 
 _7xo.tis _7u6.fdt _7xo.fdx _7o1.fnm segments.gen
at
 org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
 s.java:516)
at
 org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:243)
at
 org.apache.lucene.index.IndexWriter.init(IndexWriter.java:616)
at
 org.apache.lucene.index.IndexWriter.lt;initgt;(IndexWriter.java:410)
at
 org.apache.solr.update.SolrIndexWriter.lt 
 ;initgt;(SolrIndexWriter.java
 :97)
at
 org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandl
 er
 .java:121)
at
 org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHan
 dl
 er2.java:189)
at
 org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.
 java:267)
at
 org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpda
 te
 ProcessorFactory.java :67)
at
 org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdat
 eR
 equestHandler.java:196)
at
 org.apache.solr.handler.XmlUpdateRequestHandler.doLegacyUpdate(XmlUpda
 te
 RequestHandler.java :386)
at
 org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:
 57)


 /result

 If I restart solr I've got a NullPointerException in DispatchFilter

 tested with solr 1.2 and 1.3 , the behaviour is the same

 Regards

 Florent BEAUCHAMP




--


Re: no segments* file found

2007-11-12 Thread Yonik Seeley
On Nov 12, 2007 3:46 AM, SDIS M. Beauchamp [EMAIL PROTECTED] wrote:
 If I don't optimize, I 've got a too many files open at about 450K files
 and 3 Gb index

You may need to increase the number of filedescriptors in your system.
If you're using Linux, see this:
http://www.cs.uwaterloo.ca/~brecht/servers/openfiles.html
Check the system wide limit and the per-process limit.

-Yonik


Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-20 Thread Chris Hostetter

: Does this case arise when i do a search when there is no index?? -  If yes,
: then i guess the Exception can be made more meaningful.

in normal operation, i believe this shouldn't happen -- Solr will create 
the index for you on startup if there isn't one.  You're attampting a 
fairly advanced / non trivial approach where you aren't letting Solr 
manage the index for you.

you haven't given us any idea what the code you are using to build the 
index looks like -- but if i had to guess, i would bet that somewhere in 
there you are directly manupulating the file system directory -- not just 
the Lucene FSDirectory.  that's the only situation i can think of where 
that index directory would ever exist but be completely empty -- the low
level Lucene APIs should create a segments file as soon as you start 
adding docs, even if you haven't lcosed the writer yet.



-Hoss



Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-19 Thread Venkatraman S
Hi ,

Product : Solr  (Embedded)Version : 1.2

Problem Description :
While trying to add and search over the index, we are stumbling on this
error again and again.
Do note that the SolrCore is committed and closed suitably in our Embedded
Solr.

Error (StackTrace) :
Sep 19, 2007 9:41:41 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.io.FileNotFoundException: no segments* file found in
org.apache.lucene.store.FSDirectory@/data/pub/index: files:
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
SegmentInfos.java:516)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:148)
at org.apache.solr.search.SolrIndexSearcher.init(
SolrIndexSearcher.java:87)
at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
at com.serendio.diskoverer.core.entextor.CreateSolrIndex.init(
CreateSolrIndex.java:70)
at org.apache.jsp.AddToPubIndex_jsp._jspService
(AddToPubIndex_jsp.java:57)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

Extra Information :
/data/pub is the Solr Home.
/data/pub/index contains the index.
CreateSolrIndex.java is our program that creates and searches over the index

Regards,
Venkat
--


Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-19 Thread Bill Au
What files are there in your /data/pub/index directory?

Bill

On 9/19/07, Venkatraman S [EMAIL PROTECTED] wrote:

 Hi ,

 Product : Solr  (Embedded)Version : 1.2

 Problem Description :
 While trying to add and search over the index, we are stumbling on this
 error again and again.
 Do note that the SolrCore is committed and closed suitably in our Embedded
 Solr.

 Error (StackTrace) :
 Sep 19, 2007 9:41:41 AM org.apache.catalina.core.StandardWrapperValveinvoke
 SEVERE: Servlet.service() for servlet jsp threw exception
 java.io.FileNotFoundException: no segments* file found in
 org.apache.lucene.store.FSDirectory@/data/pub/index: files:
 at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
 SegmentInfos.java:516)
 at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
 at org.apache.lucene.index.IndexReader.open(IndexReader.java:148)
 at org.apache.solr.search.SolrIndexSearcher.init(
 SolrIndexSearcher.java:87)
 at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
 at com.serendio.diskoverer.core.entextor.CreateSolrIndex.init(
 CreateSolrIndex.java:70)
 at org.apache.jsp.AddToPubIndex_jsp._jspService
 (AddToPubIndex_jsp.java:57)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
 :70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.jasper.servlet.JspServletWrapper.service(
 JspServletWrapper.java:393)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(
 JspServlet.java:320)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
 :266)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(
 StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(
 StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(
 ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(
 CoyoteAdapter.java:263)
 at org.apache.coyote.http11.Http11Processor.process(
 Http11Processor.java:844)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
 Http11Protocol.java:584)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
 JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)

 Extra Information :
 /data/pub is the Solr Home.
 /data/pub/index contains the index.
 CreateSolrIndex.java is our program that creates and searches over the
 index

 Regards,
 Venkat
 --



Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-19 Thread Venkatraman S
Quite inetersting actually (this is for 5 documents that were indexed) :

_0.fdt  _0.prx  _1.fnm  _1.tis  _2.nrm  _3.fdx  _3.tii  _4.frq  segments.gen
_0.fdx  _0.tii  _1.frq  _2.fdt  _2.prx  _3.fnm  _3.tis  _4.nrm  segments_6
_0.fnm  _0.tis  _1.nrm  _2.fdx  _2.tii  _3.frq  _4.fdt  _4.prx
_0.frq  _1.fdt  _1.prx  _2.fnm  _2.tis  _3.nrm  _4.fdx  _4.tii
_0.nrm  _1.fdx  _1.tii  _2.frq  _3.fdt  _3.prx  _4.fnm  _4.tis


On 9/19/07, Bill Au [EMAIL PROTECTED] wrote:

 What files are there in your /data/pub/index directory?

 Bill

 On 9/19/07, Venkatraman S [EMAIL PROTECTED] wrote:
 
  Hi ,
 
  Product : Solr  (Embedded)Version : 1.2
 
  Problem Description :
  While trying to add and search over the index, we are stumbling on this
  error again and again.
  Do note that the SolrCore is committed and closed suitably in our
 Embedded
  Solr.
 
  Error (StackTrace) :
  Sep 19, 2007 9:41:41 AM
 org.apache.catalina.core.StandardWrapperValveinvoke
  SEVERE: Servlet.service() for servlet jsp threw exception
  java.io.FileNotFoundException: no segments* file found in
  org.apache.lucene.store.FSDirectory@/data/pub/index: files:
  at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
  SegmentInfos.java:516)
  at org.apache.lucene.index.IndexReader.open(IndexReader.java
 :185)
  at org.apache.lucene.index.IndexReader.open(IndexReader.java
 :148)
  at org.apache.solr.search.SolrIndexSearcher.init(
  SolrIndexSearcher.java:87)
  at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
  at com.serendio.diskoverer.core.entextor.CreateSolrIndex.init(
  CreateSolrIndex.java:70)
  at org.apache.jsp.AddToPubIndex_jsp._jspService
  (AddToPubIndex_jsp.java:57)
  at org.apache.jasper.runtime.HttpJspBase.service(
 HttpJspBase.java
  :70)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at org.apache.jasper.servlet.JspServletWrapper.service(
  JspServletWrapper.java:393)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(
  JspServlet.java:320)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
  :266)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
  ApplicationFilterChain.java:290)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
  ApplicationFilterChain.java:206)
  at org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.java:233)
  at org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.java:175)
  at org.apache.catalina.core.StandardHostValve.invoke(
  StandardHostValve.java:128)
  at org.apache.catalina.valves.ErrorReportValve.invoke(
  ErrorReportValve.java:102)
  at org.apache.catalina.core.StandardEngineValve.invoke(
  StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(
  CoyoteAdapter.java:263)
  at org.apache.coyote.http11.Http11Processor.process(
  Http11Processor.java:844)
  at
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
  Http11Protocol.java:584)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
  JIoEndpoint.java:447)
  at java.lang.Thread.run(Thread.java:619)
 
  Extra Information :
  /data/pub is the Solr Home.
  /data/pub/index contains the index.
  CreateSolrIndex.java is our program that creates and searches over the
  index
 
  Regards,
  Venkat
  --
 




--


Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-19 Thread Chris Hostetter

: Product : Solr  (Embedded)Version : 1.2


: java.io.FileNotFoundException: no segments* file found in
: org.apache.lucene.store.FSDirectory@/data/pub/index: files:

According to that, the FSDirectory was empty when it ws opened (a file 
list is suppose to come after that files:  part)

you imply that you are building your index using embedded solr, but based 
on your stack trace it seems you are using Solr in a servlet container ... 
i assume to search the index you've already built?

Is the embeddd core completley closed before your servlet cotainer running 
Solr is started?  what does hte directly list look like in between the 
finish of A and the start of B?




-Hoss



Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory

2007-09-19 Thread Venkatraman S
On 9/20/07, Chris Hostetter [EMAIL PROTECTED] wrote:


 you imply that you are building your index using embedded solr, but based
 on your stack trace it seems you are using Solr in a servlet container ...
 i assume to search the index you've already built?


I  have  a jsp that routes  the info from  a drupal module to my Embedded
solr app.

Does this case arise when i do a search when there is no index?? -  If yes,
then i guess the Exception can be made more meaningful.

Is the embeddd core completley closed before your servlet cotainer running
 Solr is started?  what does hte directly list look like in between the
 finish of A and the start of B?


yes - it is closed ; but i guess this problem arises when i do a search when
no index is created - can you confirm this.

-Venkat