Hello Chris,You dropped a vital piece of information about the Linux flavor you are using so I'm assuming a Debian derivative. It's better to start a fresh Solr installation by removing the old Solr installation and following the steps you see below.a) mkdir /buildb) cd /buildd) tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh --strip-components=2e) vi ./install_solr_service.sh # You need to change SOLR_USER=solr to SOLR_USER=tomcat in /etc/default/install_solr_service.sh file. tomcat is the user which has write permission over dspace folder if not replace tomcat with the user you picked for dspace.f) bash ./install_solr_service.sh solr-8.11.1.tgzg) vi /etc/default/solr.in.sh # You need to add dspace folders in Solr allowed paths.SOLR_OPTS="$SOLR_OPTS -Dsolr.allowPaths=/opt/dspace/solr/statistics,/opt/dspace/temp/solr-data"h) cp -r /opt/dspace/solr/* /var/solr/data/ # Do this step after installing dspace. You need to change /opt/dspace to the folder you installed dspace into.i) chown -R tomcat:tomcat /var/solr/data/ # You need to change the user and the group if it differs from the user and group you chose for dspace.j) systemctl enable solrk) systemctl restart solr*** You might fall into this issue at a later stage. Running /opt/dspace/bin/dspace solr-reindex-statistics for the first time will complain with the error message you see below but running it again will complete successfully ( I think the error shows up because of the existence of /opt/dspace/solr/statistics/core.properties file which gets deleted at the first run) . Maybe Tim can shed some light on this.### error message ### Could not create a new core in /opt/dspace/solr/statistics as another core is already defined there ### end of error message ########### Steps to uninstall Solr on Ubuntu manually ##########systemctl stop solrrm -r /var/solr
rm -r /opt/solr-8.x.x
rm -r /opt/solr
rm /etc/init.d/solr
deluser --remove-home solr
deluser --group solr
update-rc.d -f solr remove
rm -rf /etc/default/solr.in.sh#################################################Mohammed
You most welcome. Let us here in group how it goes or if you need help with what's left to get it up and running. Good luck.
Hello Chris,Enabling services so it will be started at boot time is straight forward. To enable tomcat9 ( sudo systemctl enable tomcat9 ) to start it use ( sudo systemctl start tomcat9 ) to check it's status use ( sudo systemctl status tomcat9 ) to stop it use ( sudo systemctl stop tomcat9 ). replace tomcat9 with solr for the solr service and apache2 for the apache webserver.Here is the answer to your questions and please pardon me because I'm struggling with my english.1) You shouldn't worry about the SSL certificate error because Solr admin should not be publicly accessible unless it's protected besides dspace doesn't work if solr is password protected so to satisfy both requirements Solr should be restricted to run on the loopback adapter (localhost) and that's where dspace be default expect solr to be ( solr.server = http://localhost:8983/solr ). You can test locally using wget or curl ( curl http://localhost:8983/solr/ ) or you can setup a reverse proxy to reach it and then you can use the browser for testing purposes but you have to disable it afterwards.2) Sorry about that. It was a typo. I posted yesterday while in a hurry so please ignore it. The solr installation script you should edit and changed is what we extracted from the gzipped tar file in step (d) in the build directory. You can skip step (e) and use the below perl command to change the file without having to manuallt edit it.* perl -i -pe 's/SOLR_USER=solr/SOLR_USER=tomcat/;' /build/install_solr_service.sh3) You don't need to unless you loose the changed installation script from the build directory and you need to reinstall solr again.Mohammed
Chris,Re-reading your message made me understand the confusion you have. Please don't start solr from /opt/solr-8.11.1/bin ... The solr startup script in ubuntu is located here /etc/init.d/solr ... If you edit this file you will see in line 56 solr will be run as tomcat and more thing please use systemctl start solr to run it or systemctl enable solr to enable it at boot time and so on...(( I understand 'install_solr_service.sh' needs to have the username changed from 'solr' to my actual DSpace user 'tomcat', but you are saying this script appears in '/etc/default/install_solr_service.sh' . Before installation, the only place it appears is in /build . This was where I edited 'install_solr_service.sh'. Once this script is run, my installation directory is '/opt/solr-8.11.1' and the script (original and unedited from the tar archive) is written to '/opt/solr-8.11.1/bin' . Of course, the default 'SOLR_USER=solr' rather than 'tomcat' is there. Is this script in it's new location important to edit 'SOLR_USER=' to 'tomcat as well? What about this path to ' /etc/default/install_solr_service.sh'? The only thing (solr) at '/etc/default/' is 'solr.in.sh', which doesn't seem to be involved with defining users.))
MohammedOn Tuesday, December 21, 2021 at 9:03:00 PM UTC+3 Chris Clawson wrote: