Just commenced migrating three XWiki instances from XWiki 4.4.1 to 5.1
These three XWiki instances are each run as individual contexts within a
single
Tomcat instance. Under previous versions of XWiki this required some
configuration
tweaking of infinispan cache settings and lucene index locations to avoid
conflicts
between the various XWiki instances.
However, with the introduction of the SOLR search engine, there appear to
have been
similar conflicts introduced which I am unsure how to solve. Should it be
possible
for a single Tomcat instance to host multiple XWiki 5.1 application
contexts?
Catalina logs show the embedded SOLR throwing "OverlappingFileLockException"
when
starting the second XWiki instance. No doubt this is due to the index
directory
conflict shown below despite the fact that "environment.permanentDirectory"
is set
to different locations in "xwiki.properties" for each XWiki application
context.
Jul 28, 2013 5:57:15 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/xwikidtc
2013-07-28 17:57:26,008 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2013-07-28 17:57:26,012 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
/net/sydnas1/c/deltasoft/XWiki/DTC/data/solr
2013-07-28 17:57:27,650 [localhost-startStop-1] WARN o.a.s.c.SolrCore
- New index directory detected: old=null
new=/net/sydnas1/c/deltasoft/XWiki/DTC/data/solr/./data/index/
2013-07-28 17:57:30,602 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
Jul 28, 2013 5:57:37 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/var/lib/tomcat/webapps/xwikisportzman
2013-07-28 17:57:58,944 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2013-07-28 17:57:58,950 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
/net/sydnas1/c/deltasoft/XWiki/DTC/data/solr
2013-07-28 17:58:00,584 [localhost-startStop-1] WARN o.a.s.c.SolrCore
- New index directory detected: old=null
new=/net/sydnas1/c/deltasoft/XWiki/DTC/data/solr/./data/index/
2013-07-28 17:58:02,678 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
Appears that the first setting of "environment.permanentDirectory" is used
for all
application contexts after that ??? However, other files (e.g., "extension"
and "jobs"
directories) are being placed in the correct permanent direcrory. i.e., it
is only
SOLR that appears to be picking up an incorrect setting for
"environment.permanentDirectory".
--
View this message in context:
http://xwiki.475771.n2.nabble.com/SOLR-Fails-with-Multiple-XWiki-Contexts-t…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.