Thanks for your response @aklochkov.
 But I again noticed that something is wrong in my solr/tomcat config[I
spent a lot of time making solr run], b'coz in the solr admin page [
http://localhost:8080/solr/admin/] what I see is that the $CWD is the
location where from I restarted tomcat and seems this $cwd gets picked and
used for index data[Is it the default behavior? or something wrong from my
side?, or may be I'm asking some stupid question ].
 Once I was in /etc and from there I restarted the tomcat and when I tried
to open the solr admin page I found an error saying that can not create
index directory some permission issue I think [it gave a directory str like
/etc/solr/index ... ]. I'm pretty sure something is wrong in configuration.
One more thing assures me about this is the fact that I found many solr
index directories here and there[ these are I think the locations where I
was when I restarted tomcat at that time ]. Earlier I was using the
java_opts to set the solr home like this

     export JAVA_OPTS="$JAVA_OPTS -D/usr/local/solr"    #in .bashrc

but I commented that and instead added the jndi entry in
/usr/local/tomcat/webapps/solr/WEB-INF/web.xml as this

    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>/usr/local/solr</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>

Even the entry SolrHome in solr admin page say that SolrHome is
"/usr/loca/solr" but the index gets created in $CWD. Is it the case that I
created entries for SolrHome in multiple places? which is obviously wrong.
Can someone point me what is the issue. Thank you very much.

--KK


On Tue, May 12, 2009 at 2:39 PM, Andrey Klochkov <akloch...@griddynamics.com
> wrote:

> Hi,
>
> I know that when starting Solr checks index directory existence, and
> creates
> new fresh index if it doesn't exist. Does it help? If no, the next step I'd
> do in your case is patching SolrCore.initIndex method - insert some
> logging,
> or run EmbeddedSolrServer with debugger etc.
>
> On Mon, May 11, 2009 at 1:25 PM, KK <dioxide.softw...@gmail.com> wrote:
>
> > Hi,
> > I'm facing a silly problem. Every time I restart tomcat all the indexes
> are
> > lost. I used all the default configurations. I'm pretty sure there must
> be
> > some basic changes to fix this. I'd highly appreciate if someone could
> > direct me fixing this.
> >
> > Thanks,
> > KK.
> >
>
>
> --
> Andrew Klochkov
>

Reply via email to