SolrCore Initialization Failures

57 views
Skip to first unread message

Dyego Cavalieri

unread,
Jun 17, 2019, 3:35:06 AM6/17/19
to DSpace Technical Support
Hi all,

I have the following in the Solr after installing dspace 6.3
  • search: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create directory: /dspace/solr/search/data/index
  • oai: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create directory: /dspace/solr/oai/data/index
  • authority: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create directory: /dspace/solr/authority/data/index
  • statistics: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Cannot create directory: /dspace/solr/statistics/data/index
How do i fix this ?


thank you.

Mark H. Wood

unread,
Jun 18, 2019, 9:45:03 AM6/18/19
to DSpace Technical Support
On Fri, Jun 14, 2019 at 11:03:57AM -0700, Dyego Cavalieri wrote:
> I have the following in the Solr after installing dspace 6.3
>
> - *search:*
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> Cannot create directory: /dspace/solr/search/data/index
> - *oai:*
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> Cannot create directory: /dspace/solr/oai/data/index
> - *authority:*
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> Cannot create directory: /dspace/solr/authority/data/index
> - *statistics:*
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> Cannot create directory: /dspace/solr/statistics/data/index
>
> How do i fix this ?

The first thing I would do is to check the ownership and permission
masks of the /dspace/solr directory and everything below it. The
Servlet container (Tomcat, typically) must be able to read and write
these directories. The simplest way to ensure that is for them to be
owned by the account which runs the container.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Tecnico UnComa

unread,
Jun 18, 2019, 4:58:43 PM6/18/19
to DSpace Technical Support
Hi ppl. I had the same problem.
I was running Dspace 6.3 into Ubuntu 18.11 with Tomcat 8. Las week I do-release-upgrade (18.11 -> 19.04). Then, because Ubuntu 19.04 don't use Tomcat 8, I need to install Tomcat 9. Everything works fine except Solr. The problems seems to be permissions, but I already changed and nothing happens. The error is always the same:


I tried adding dspace to tomcat group and tomcat to dspace.
I chown tomcat:tomcat to /dspace/solr
I assign -just to test- chmod 777 to solr.

Nothing different happend.

Thanks

Tecnico UnComa

unread,
Jun 19, 2019, 1:50:59 PM6/19/19
to DSpace Technical Support
Well I fix it this way:

Following this guide I install Tomcat9 under dspace user:


I test this way because it seems to be a permission problem. I tried changing permissions and owner before but nothing changes. I don't know why. Anyway... It works now.
Reply all
Reply to author
Forward
0 new messages