Hi Marius,

So it's set in start_xwiki.sh in a stand alone configuration. But I'm
deploying 3 war ( 3 instances) on a tomcat 6. So, where can I found the
xwiki.data.dir parameter?

Patrick



2014/1/21 Marius Dumitru Florea <mariusdumitru.flo...@xwiki.com>

> The documentation for the environment.permanentDirectory configuration
> parameter says this (in xwiki.properties):
>
> "Note if the system property xwiki.data.dir is set then this property
> is not used."
>
> And xwiki.data.dir is set in start_xwiki.sh:
>
> # Location where XWiki stores generated data and where database files are.
> XWIKI_DATA_DIR=data
> XWIKI_OPTS="$XWIKI_OPTS -Dxwiki.data.dir=$XWIKI_DATA_DIR"
>
> So make sure you don't set xwiki.data.dir in your start script.
>
> Hope this helps,
> Marius
>
> On Tue, Jan 21, 2014 at 4:53 PM, Patrick Moens <patrick.mo...@gmail.com>
> wrote:
> > Hi,
> >
> > I'm working on upgrade of our wiki 2.8 to 5.3 and at the same time ,
> moving
> > it to a new server with Tomcat and Oracle.
> >
> > The goal is to have 3 instances of wiki 5.3 on the same container
> (wikidgt,
> > wikioat and wikidir) .
> > I've configured the environment.permanentDirectory in xwiki.proprties
> with
> > 3 differents values :
> >
> > /opt/c/xwiki/data/wikidgt/
> > /opt/c/xwiki/data/wikioat/
> > /opt/c/xwiki/data/wikidir/
> >
> > but when I deploy the first instance (wikidgt), the log shows that the
> Solr
> > home directory is :
> >
> >
> /opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
> >
> >
> > 2014-01-21 15:37:00,420 17788 [http-8180-9] INFO
> > o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
> > 2014-01-21 15:37:00,447 17815 [http-8180-9] INFO
> > o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
> >
> /opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
> > 2014-01-21 15:37:12,536 29904 [http-8180-9] WARN
> > org.apache.solr.core.SolrCore - New index directory detected: old=null
> >
> new=/opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr/./data/index/
> > 2014-01-21 15:37:21,863 39231 [http-8180-9] INFO
> > o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
> > 2014-01-21 15:37:56,883 74251 [http-8180-9] INFO
> >
> > or if I understand the configuration of Solr in xwiki. properties , it
> > shoud be /opt/c/xwiki/data/wikidgt/solr
> >
> >
> >
> >
> > I tried to add this in the WEB-INF/web.xml file of each XWiki instance,
> > right after the root <web-app> element:
> >
> >   <env-entry>
> >        <env-entry-name>solr/home</env-entry-name>
> >        <env-entry-type>java.lang.String</env-entry-type>
> >
>  <env-entry-value>/opt/curia/xwiki/bin/wikidgt/solr</env-entry-value>
> >   </env-entry>
> >
> > but got this error (seems it did'nt change the solr home directory but
> the
> > solr CoreContainer directory :
> >
> > 2014-01-21 14:55:23,631 34465 [http-8180-9] INFO
> > o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
> > 2014-01-21 14:55:23,655 34489 [http-8180-9] INFO
> > o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
> >
> /opt/apache/products/tomcat-6.0.29/inst1_xwiki/work/Catalina/localhost/wikioat/solr
> > 2014-01-21 14:55:26,230 37064 [http-8180-9] ERROR
> > org.apache.solr.core.CoreContainer - Unable to create core: collection1
> > java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or
> > '/opt/curia/xwiki/bin/wikidgt/solr/collection1/conf/',
> > cwd=/opt/apache/home/tomcat
> >
> >
> > and if I deploy the second instance , i got an
> "OverlappingFileLockException*"
> > *because the solr directory is the same for both instances.
> >
> >
> > 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".
> >
> >
> > Thanks for help
> >
> >
> > Patrick
> > _______________________________________________
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Patrick Moens

Portable LU : +352 661/461.459
Email : patrick.mo...@gmail.com
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to