Did you remove the entire contents of the prod index before
copying from the dev box? This should work fine....

Best
Erick

On Mon, Mar 19, 2012 at 2:48 PM,  <alx...@aim.com> wrote:
> Hello,
>
> I have copied solr's data folder from dev linux box to prod one. When 
> starting solr I get this error in prod server. In dev solr starts sucessfully.
>
> Caused by: java.io.FileNotFoundException: 
> /home/apache-solr-3.5.0/example/solr/data/index/segments_u (No such file or 
> directory)
>        at java.io.RandomAccessFile.open(Native Method)
>        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
>        at 
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:70)
>        at 
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:97)
>        at 
> org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:92)
>        at 
> org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:79)
>        at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:345)
>        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:265)
>        at 
> org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:79)
>        at 
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:754)
>        at 
> org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
>        at org.apache.lucene.index.IndexReader.open(IndexReader.java:462)
>        at org.apache.lucene.index.IndexReader.open(IndexReader.java:405)
>        at 
> org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
>        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1092)
>
> There is no segments_u file or folder in the dev box.
>
> Thanks in advenace.
> Alex.
>

Reply via email to