--
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 a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/vgGzkRSENtk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/d0a50b87-0665-4653-9674-190afd01939fn%40googlegroups.com.
Please allow a bit of 'off topic' comment, so you and the DSpace documentation folks may appreciate what I am doing. I had been out of school more than ten years before the first 8 bit PCs became available in the home. I have no direct contact with any I.T. Professionals and needed to learn everything I know off of the internet. All of my cyberspace learning has been self directed and focused specifically on reaching my project goals, rather than getting a broad education on any topic. DSpace is a valuable tool I am trying to promote for community historical societies and small museums.
I am fairly familiar with a LAMP server. I understand how to install and configure a website. My live site is running both Wordpress (with LAMP) and DSpace 6.3 (Tomcat). This Tomcat has been my first exposure with the idea of a java server (or java anything).
Respectfully, these installation instructions for DSpace are the best I have available, but often leave me guessing about details in procedure or direct me elsewhere for further instruction. I am often confused at those sites or find that the topic has nothing to do with installing a module in a remote web server. Mohammad is asking me now about how and why I did things in a certain way. The general answer is that I was unable to see a clear procedure defined in the DSpace installation page and needed to read and try stuff elsewhere, in order to be able to continue my project. This help you all are offering is leading me through a 'dry run' before I attempt to upgrade my live server at montaguearchive.org . If I can learn this properly, I might consider working on a tutorial video and documentation on installing DSpace (with the blessing and guidance of the folks at Lyrasis). If I can understand this, at my level of skill, I may be able to present it in a way that could be appreciated by a much wider audience of folks.
*******
Mohammad:
The DSpace installation page didn't seem to provide any specific procedure for installing Tomcat. I mostly followed the tutorial presented at https://www.hostinger.com/tutorials/how-to-install-tomcat-on-ubuntu/ . I had installed Tomcat before I attempted an install of Solr. I do not remember ever defining a user or password for the user/group tomcat. The usermod, mkhomedir_helper, and passwd setup was critical in getting the install_solr_service.sh script to run! I would never have figured this out on my own and I thank you again!
I re-ran the following commands:
curl
http://localhost:8983/solr/admin/cores
curl
http://localhost:8983/solr/admin/cores?action=STATUS
There were a number of permission errors. Here was the condition of a directory before I chown'd everything to tomcat:tomcat :
root@media:/var/solr/data#
drwxr-xr-x 3 root root 4096 Dec 28 17:25 authority
drwxrwxr-x 2 tomcat tomcat 4096 Dec 28 17:25 filestore
drwxr-xr-x 3 root root 4096 Dec 28 17:25 oai
drwxr-xr-x 3 root root 4096 Dec 28 17:25 search
-rw-r----- 1 tomcat tomcat 2427 Dec 28 17:22 solr.xml
drwxr-xr-x 3 root root 4096 Dec 28 17:25 statistics
drwxrwxr-x 2 tomcat tomcat 4096 Dec 28 17:25 userfiles
-rw-r----- 1 tomcat tomcat 1048 Dec 28 17:22 zoo.cfg
root@media:/var/solr/data#
The curl status commands are reporting a lot of detail about Solr and more than I should paste into this post.
PM2 is installed, but I need to start it manually. How can I make it run when the system boots?
I just got up and see that you have sent me a lot of information, related to the status you think my install is at this morning. Thanks and give me time to study it all!
C.
This current effort is just practice for bigger things. Perhaps I should backup this work and then begin again with a fresh install. Many questions have been answered here and a second try should go much faster. My installation still has differences with the documentation, which may be fixable, but could still complicate any support I might hope to get later on.
A second try will also give me the opportunity to create and verify a checklist procedure for future installations. This might be useful to others later on.
Mohammad, you have been a great amount of help. I also offer my respects and appreciation to everyone involved with DSpace development. This is a valuable project and I hope my experience with it will make a small contribution to it's acceptance to the wider global community.
Chris Clawson
Mohammad:
The DSpace installation page didn't seem to provide any specific procedure for installing Tomcat.
I mostly followed the tutorial presented at https://www.hostinger.com/tutorials/how-to-install-tomcat-on-ubuntu/ .
I had installed Tomcat before I attempted an install of Solr. I do not remember ever defining a user or password for the user/group tomcat. The usermod, mkhomedir_helper, and passwd setup was critical in getting the install_solr_service.sh script to run! I would never have figured this out on my own and I thank you again!
I re-ran the following commands:
curl http://localhost:8983/solr/admin/cores
curl http://localhost:8983/solr/admin/cores?action=STATUS
There were a number of permission errors. Here was the condition of a directory before I chown'd everything to tomcat:tomcat :
PM2 is installed, but I need to start it manually. How can I make it run when the system boots?
I just got up and see that you have sent me a lot of information, related to the status you think my install is at this morning. Thanks and give me time to study it all!
C.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/b506b622-207e-46a4-8f49-39ada4d7b2cfn%40googlegroups.com.
Status and Tomcat configuration questions...
I have wiped my server of any previous installations of Solr and Tomcat (I think). I have been reviewing this thread and writing my out my procedure (to share later), but need to leave the work for New Years day now. Solr was installed first and then Tomcat 9 afterwards.
Any effort I made to install Tomcat 9 using 'apt-get install tomcat9' did not install a binary build of apache-tomcat-9.0.56 (I don't know why). I have been following what seems to be a good manual procedure at https://www.makeuseof.com/a-step-by-step-guide-to-installing-apache-tomcat-linux/ . Both Solr and Tomcat9 now seem to be running well as services.
I am leaving the work day with the problem of configuring the server.xml and checking Tomcat instructions you have in the post “checking tomcat” (about 6 posts earlier).
I do not have any directory '/etc/tomcat'. I plan on editing the server.xml from the /opt/tomcat/latest/conf directory and then copy that directory's contents and paste it to a new /etc/tomcat directory (my tomcat9 service is actually named 'tomcat.service'). Let me know if I am wrong, but I think the 'Catalina' folder and other contents should be copied there too. Is this a correct step to take?
I am looking at what you call the 'Catalina connector element' and am not sure where that is. I see no mention of a localhost connector at 127.0.0.1 port= 8080. Is this a totally new and added connector or a modification of an existing one? Where would it be if I was looking at the default server.xml from the distribution?
Doesn't this server.xml also have a edited SSL Connector for port 8443? I presume the '<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" Still needs all the keys paths to the SSL certificates. Here is the connector I have running with the montaguearchive.org system, using DSpace 6.3:
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443"
maxThreads="200"
scheme="https"
secure="true"
SSLEnabled="true"
keystoreFile="/opt/tomcat/apache-tomcat-8.0.37/ssl/montaguearchive_org.pfx"
keystorePass="XXXXXXXX"
keystoreType="PKCS12"
clientAuth="false"
sslProtocol="TLS"/>
I am optimistic there is enough information and help here to get this all working well. Happy New Year to all and I hope the future remains tolerant of all these lay questions!
Status and Tomcat configuration questions...
I have wiped my server of any previous installations of Solr and Tomcat (I think). I have been reviewing this thread and writing my out my procedure (to share later), but need to leave the work for New Years day now. Solr was installed first and then Tomcat 9 afterwards.
Any effort I made to install Tomcat 9 using 'apt-get install tomcat9' did not install a binary build of apache-tomcat-9.0.56 (I don't know why). I have been following what seems to be a good manual procedure at https://www.makeuseof.com/a-step-by-step-guide-to-installing-apache-tomcat-linux/ . Both Solr and Tomcat9 now seem to be running well as services.
I am leaving the work day with the problem of configuring the server.xml and checking Tomcat instructions you have in the post “checking tomcat” (about 6 posts earlier).
I do not have any directory '/etc/tomcat'. I plan on editing the server.xml from the /opt/tomcat/latest/conf directory and then copy that directory's contents and paste it to a new /etc/tomcat directory (my tomcat9 service is actually named 'tomcat.service'). Let me know if I am wrong, but I think the 'Catalina' folder and other contents should be copied there too. Is this a correct step to take?
- I am looking at what you call the 'Catalina connector element' and am not sure where that is. I see no mention of a localhost connector at 127.0.0.1 port= 8080. Is this a totally new and added connector or a modification of an existing one? Where would it be if I was looking at the default server.xml from the distribution?
Doesn't this server.xml also have a edited SSL Connector for port 8443? I presume the '<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" Still needs all the keys paths to the SSL certificates. Here is the connector I have running with the montaguearchive.org system, using DSpace 6.3:
I am optimistic there is enough information and help here to get this all working well. Happy New Year to all and I hope the future remains tolerant of all these lay questions!
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/98ac55c2-5b83-4055-a123-186568dbbe3dn%40googlegroups.com.
Okay, my Friend
I hope you are enjoying this and it is not getting annoying..
Yes, everything you mentioned about tomcat9 listed as you have shown. I then followed steps 'a' thru 'g'. (Can these services simply be disabled and then re-installed, without actually purging the old files out of the system?)
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ba58dced-6fe9-4cab-ae52-3605b1dc1930n%40googlegroups.com.
Tomcat9 runs!
This is something I would never have discovered and proves I need this help. Your answer to the uname command is here:root@media:~# uname -r
3.13.0-45-generic
No, this is not a new server. It has been online a while and may have many things wrong with it. The LAMP has been running for over a year. I may have made other changes. Maybe I am over the problems and can finish this without much further help. Maybe not. I have also just started a home network fresh build of a PC with Ubuntu 20.04.3 and will see if I can do a DSpace7.1 install on that.
That procedure should be the same, until the SSL stuff is encountered.
I am the 'chris' an the contact page at montaguearchive.org . I don't know if this conversation is proper to continue forever in this forum and you can always reach me with the email address at that page. I will take some time now to study the recent posts and see if I can make a coherent procedure out of it.
I have normalized my DSpace 7 install as closely as I am able, and try to match it with the instruction page and the advice from this thread. The backend seems okay and may be viewed at the appropriate location for meloware.com. I am sorry about the confusion over the use of ports 443 and 8443. This confusion may still be an issue for me getting this right.
Solr and Tomcat are running well. The issue with apt-get install tomcat9 may be that it did try to install, but failed because it wanted the tomcat user as a user configured with a home directory and login. I still had to do this to get tomcat9 to install.
With this site 'dspace.conf', Apache won't start if line 49 is enabled. The syntax seems correct and I would welcome a review of it. Apache won't start at all if this “RequestHeader set X-Forwarded-Proto "https" env=HTTPS” line is in the virtual host configuration.
There probably are other problems. I am getting “mixed content” errors (in my Firefox console) and it may be because of this file.
If I allow insecure content in my browser, the search and browse buttons know the database is empty.
Okay. Things aren't stable and the
config files may not be totally right.
Attached are my tomcat9's server.xml and the Apache site config file dspace.conf