DSpace 6.3 and Tomcat 9

77 views
Skip to first unread message

Marion Rupp

unread,
Apr 5, 2022, 8:37:00 AM4/5/22
to DSpace Community
Hi all,

Recently, we upgraded our DSpace testsystem (DSpace 6.3) up to Linux
Ubuntu LTS 20.04. This upgrade included Tomcat 9. Now, we have the
problem that this Tomcat version doesn´t recognize our solr index any more.

For example when I select one of our browsing categories, I get the
message "SolrException: SolrCore "search" is not available due to init
failure: Error opening new searcher..."

The reason for this seems to be the write.lock file in
dspace/solr/search/data/index (message: "File system is only readable").
I changed the write permissions, unfortunately without success.

Does anyone here has experience with Tomcat 9 and Solr?

Thank you for your feedback and kind regards,
Marion


--
Marion Rupp
Bibliotheks-IT
Universitäts- und Landesbibliothek Bonn
Postfach 2460, D-53014 Bonn
Tel. 0228 / 73 75 50 Fax: 0228 / 73 75 46
eMail: mario...@ulb.uni-bonn.de
Internet: http://www.ulb.uni-bonn.de
Twitter: http://twitter.com/ulbbonn
Facebook: http://facebook.com/ulbbonn

esnemiz

unread,
Apr 5, 2022, 9:47:52 PM4/5/22
to DSpace Community
Hi Marion,

I'm not an expert in Ubuntu but when I was trying to install DSpace 6.3 in a multi-pass instance I am taking down notes of the steps that I did. Please see below.

Install Tomcat9

sudo apt-get install tomcat9 -y

Add tomcat user to dspace user group

  • sudo adduser tomcat dspace

  • sudo adduser dspace tomcat

Add "ReadWritePaths=[dspace]" to the tomcat service file under the service section. For ubuntu, you can find at /lib/systemd/system/tomcat9.service. Then, please execute the following commands:

  • systemctl daemon-reload

  • service tomcat9 restart


For UTF-8 encoding, edit server.xml:

   <Connector port="8080" protocol="HTTP/1.1"

              minSpareThreads="25"

              enableLookups="false"

              redirectPort="8443"

              connectionTimeout="20000"

              disableUploadTimeout="true"

              URIEncoding="UTF-8"/>


Edit server.xml and change the AJP connector port:

   <Connector port="8009" UIEncoding="UTF-8" tomcatAuthentication="false"

        enableLookups="false" redirectPort="8080" protocol="AJP/1.3" secretRequired="false" />


In the portion "ReadWritePaths=[dspace]", replace it with the actual path of your dspace install directory.

Hope this helps,
euler

Marion Rupp

unread,
Apr 6, 2022, 4:54:37 AM4/6/22
to dspace-c...@googlegroups.com
Dear Euler,

Thank you for your detailed hints! Now, everything works fine with Tomcat 9 and Solr!

Kind regards,
Marion
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/729f9c48-65bb-4f59-8661-b949b570120cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages