I duplicated an exist core, deleted the data directory and core.properties, updated solrconfig.xml and schema.xml and loaded the new core in SOLR's Admin Panel.
The logs contain a few 'index locked' errors: solr.log:INFO - 2015-01-15 14:43:09.492; org.apache.solr.core.CorePropertiesLocator; Found core inytapdf0 in /archives/solr/example/solr/inytapdf0/ solr.log:INFO - 2015-01-15 14:49:17.685; org.apache.solr.core.CorePropertiesLocator; Found core inytapdf0 in /archives/solr/example/solr/inytapdf0/ solr.log.1:INFO - 2015-01-05 18:08:13.253; org.apache.solr.core.CorePropertiesLocator; Found core inytapdf0 in /archives/solr/example/solr/inytapdf0/ solr.log.1:ERROR - 2015-01-05 18:08:17.467; org.apache.solr.core.CoreContainer; Error creating core [inytapdf0]: Index locked for write for core inytapdf0 solr.log.1:org.apache.solr.common.SolrException: Index locked for write for core inytapdf0 solr.log.1:Caused by: org.apache.lucene.store.LockObtainFailedException: Index locked for write for core inytapdf0 solr.log.1:INFO - 2015-01-06 09:19:32.125; org.apache.solr.core.CorePropertiesLocator; Found core inytapdf0 in /archives/solr/example/solr/inytapdf0/ solr.log.1:ERROR - 2015-01-06 09:19:35.305; org.apache.solr.core.CoreContainer; Error creating core [inytapdf0]: Index locked for write for core inytapdf0 solr.log.1:org.apache.solr.common.SolrException: Index locked for write for core inytapdf0 solr.log.1:Caused by: org.apache.lucene.store.LockObtainFailedException: Index locked for write for core inytapdf0 Philippe ----- Mail original ----- De: "Dominique Bejean" <dominique.bej...@eolya.fr> À: solr-user@lucene.apache.org Envoyé: Jeudi 15 Janvier 2015 11:46:43 Objet: Re: Core deletion Hi, Is there something in solr logs at startup that can explain the deletion ? How were created the cores ? using cores API ? Dominique http://www.eolya.fr 2015-01-14 17:43 GMT+01:00 <phi...@free.fr>: > > > Hello, > > I am running SOLR 4.10.0 on Tomcat 8. > > The solr.xml file in > .../apache-tomcat-8.0.15_solr_8983/conf/Catalina/localhost looks like this: > > > <?xml version="1.0" encoding="utf-8"?> > <Context docBase="/archives/solr/example/solr/solr.war" debug="0" > crossContext="true"> > <Environment name="solr/home" type="java.lang.String" > value="/archives/solr/example/solr" override="true"/> > </Context> > > My SOLR instance contains four cores, including one whose instanceDir and > dataDir have the following values: > > > instanceDir:/archives/solr/example/solr/indexapdf0/ > dataDir:/archives/indexpdf0/data/ > > Strangely enough, every time I restart Tomcat, this core's data, [and only > this core's data,] get deleted, which is pretty annoying. > > How can I prevent it? > > Many thanks. > > Philippe > > > > > > > > > > > > >