Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Tomcat6, and now I am trying to install Solr 3.6.1.

I copied the .war file and the example solr directory.

cd apache-solr-3.6.1/dist
cp apache-solr-3.6.1.war /usr/share/tomcat6/webapps/solr.war
cp -r /usr/local/src/apache-solr-3.6.1/example/solr /usr/local/solr

cd /usr/share/tomcat6/webapps/solr/WEB-INF
nano web.xml

Uncommented <env-entry>...</env-entry>

Replace <env-entry-value>...</env-entry-value> with <env-entry-value>/usr/local/solr</env-entry-value>

When I go to I get the error:

HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in solr.xml ------------------------------------------------------------- java.lang.RuntimeException: Cannot create directory: /usr/local/solr/./data/index at org.apache.solr.core.SolrCore.initIndex( at org.apache.solr.core.SolrCore.<init>( at org.apache.solr.core.CoreContainer.create( at org.apache.solr.core.CoreContainer.load( at org.apache.solr.core.CoreContainer.load( at org.apache.solr.core.CoreContainer$Initializer.initialize( at org.apache.solr.servlet.SolrDispatchFilter.init( at org.apache.catalina.core.ApplicationFilterConfig.getFilter( at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef( at org.apache.catalina.core.ApplicationFilterConfig.<init>( at org.apache.catalina.core.StandardContext.filterStart( at org.apache.catalina.core.StandardContext.start( at org.apache.catalina.manager.ManagerServlet.start( at org.apache.catalina.manager.HTMLManagerServlet.start( at org.apache.catalina.manager.HTMLManagerServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.authenticator.AuthenticatorBase.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( at$ at Caused by: Cannot create directory: /usr/local/solr/./data/index at at at org.apache.lucene.index.IndexWriter.<init>( at org.apache.solr.update.SolrIndexWriter.<init>( at org.apache.solr.core.SolrCore.initIndex( ... 29 more

What happened, and how can I solve this issue? Thanks!

share|improve this question
up vote 1 down vote accepted

Looks like you'll need to let the Tomcat user write to the /usr/local/solr directory.

Depending on your OS and how you installed Tomcat, the username and group that are in use will vary, but it'll be something like this:

chown -R tomcat:tomcat /usr/local/solr

Check what user owns /usr/share/tomcat6, that should point you in the right direction.

If it's still failing after that, then it's likely a problem with an alternate access control mechanism such as SELinux.

share|improve this answer
Works perfectly! :) – Nyxynyx Aug 16 '12 at 6:05

I would check the permissions of folder /usr/local/solr because the log file basically tells you that it can't create a folder in that path.

The user that are running Tomcat should have permissions to read and write into /usr/local/solr and it's subfolders.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.