You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sara hajili <ha...@gmail.com> on 2015/10/29 15:44:38 UTC

problem with solr auto add core after restart

hi,
i add this in solr.xml file :
<str name="coreRootDirectory">${coreRootDirectory:}</str> <!-- usually
solrHome  -->
and in each core i added these to core.properties
loadOnStartup=true

and now if i stop and start  solr from solr_home/bin
after restart solr start and automatically added cores to solr.
but when i restart solr service in linux as :
service solr restart
solr start and doesn't add cores to solr automatically.
how i can solve this problem to stop start solr service and automatically
add  cores to it?
plz help me.tnx

Re: problem with solr auto add core after restart

Posted by sara hajili <ha...@gmail.com>.
no error occurred,at least as i see in solr log.solr nothing writes in
SOLR_HOME/LOGS.
what can i do now?


On Thu, Oct 29, 2015 at 1:49 PM, Erick Erickson <er...@gmail.com>
wrote:

> What errors, if any, do you see in the Solr logs? The information here
> isn't
> enough to say much.
>
> Best,
> Erick
>
> On Thu, Oct 29, 2015 at 7:44 AM, sara hajili <ha...@gmail.com>
> wrote:
> > hi,
> > i add this in solr.xml file :
> > <str name="coreRootDirectory">${coreRootDirectory:}</str> <!-- usually
> > solrHome  -->
> > and in each core i added these to core.properties
> > loadOnStartup=true
> >
> > and now if i stop and start  solr from solr_home/bin
> > after restart solr start and automatically added cores to solr.
> > but when i restart solr service in linux as :
> > service solr restart
> > solr start and doesn't add cores to solr automatically.
> > how i can solve this problem to stop start solr service and automatically
> > add  cores to it?
> > plz help me.tnx
>

Re: problem with solr auto add core after restart

Posted by Erick Erickson <er...@gmail.com>.
What errors, if any, do you see in the Solr logs? The information here isn't
enough to say much.

Best,
Erick

On Thu, Oct 29, 2015 at 7:44 AM, sara hajili <ha...@gmail.com> wrote:
> hi,
> i add this in solr.xml file :
> <str name="coreRootDirectory">${coreRootDirectory:}</str> <!-- usually
> solrHome  -->
> and in each core i added these to core.properties
> loadOnStartup=true
>
> and now if i stop and start  solr from solr_home/bin
> after restart solr start and automatically added cores to solr.
> but when i restart solr service in linux as :
> service solr restart
> solr start and doesn't add cores to solr automatically.
> how i can solve this problem to stop start solr service and automatically
> add  cores to it?
> plz help me.tnx