Page 1 of 1

Deploying Broadleaf demo site on Amazon AWS

Posted: Thu Jul 25, 2013 4:06 pm
by kretoni
Hello,

Currently, I have deployed broadleaf demo site into the Amazon AWS. I got the following exception.

[ERROR] 19:50:55 CoreContainer - java.lang.RuntimeException: java.io.IOException: Cannot create directory: /usr/share/tomcat6/solrhome/./data/index
at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:403)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:552)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:480)

So, how can I fix to deploy the demo site into the Amazon AWS with embedded solr.

Re: Deploying Broadleaf demo site on Amazon AWS

Posted: Thu Jul 25, 2013 4:51 pm
by priyeshgpatel
Hi,
It looks like you need to specify the solar index directory.

Start your jvm with the property:

-Dtmpdir.solrhome=/tmp

Point to some folder that the process has write access to.

Re: Deploying Broadleaf demo site on Amazon AWS

Posted: Fri Jul 26, 2013 8:50 am
by phillipuniverse
By the way, the process usually starts with the user 'tomcat7'. Ensure that that user can write to the directory.