This is how I got the SOLR upgrade process to run. There was nothing else to run!
To upgrade I did the following:
- Backup your data
- Stop the solr service
- Download the latest version
- Ran the install script with the -f flag
Code steps to do this:
$ cp -r /var/solr/data /home/
$ cd /tmp
$ wget https://downloads.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz
$ tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh --strip-components=2
$ sudo bash ./install_solr_service.sh solr-8.11.1.tgz -f
This then ran the upgrade script and produced this output (server name specific to this instance upgrade):
Stopping Solr instance if exists ...
Extracting solr-8.11.1.tgz to /opt
Removing old symlink /opt/solr ...
Installing symlink /opt/solr -> /opt/solr-8.11.1 ...
Installing /etc/init.d/solr script ...
/etc/default/solr.in.sh already exist. Skipping install ...
/var/solr/data/solr.xml already exists. Skipping install ...
/var/solr/log4j2.xml already exists. Skipping install ...
Service solr installed.
Customize Solr startup configuration in /etc/default/solr.in.sh
● solr.service - LSB: Controls Apache Solr as a Service
Loaded: loaded (/etc/init.d/solr; generated)
Active: active (exited) since Tue 2022-05-10 22:19:30 UTC; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 24304 ExecStart=/etc/init.d/solr start (code=exited, status=0/SUCCESS)
May 10 22:19:24 srvvp24-wa solr[24304]: *** [WARN] *** Your open file limit is currently 1024.
May 10 22:19:24 srvvp24-wa solr[24304]: It should be set to 65000 to avoid operational disruption.
May 10 22:19:24 srvvp24-wa solr[24304]: If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
May 10 22:19:24 srvvp24-wa solr[24304]: *** [WARN] *** Your Max Processes Limit is currently 31645.
May 10 22:19:24 srvvp24-wa solr[24304]: It should be set to 65000 to avoid operational disruption.
May 10 22:19:24 srvvp24-wa solr[24304]: If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
May 10 22:19:30 srvvp24-wa solr[24304]: [194B blob data]
May 10 22:19:30 srvvp24-wa solr[24304]: Started Solr server on port 8983 (pid=24377). Happy searching!
May 10 22:19:30 srvvp24-wa solr[24304]: [14B blob data]
May 10 22:19:30 srvvp24-wa systemd[1]: Started LSB: Controls Apache Solr as a Service.
Solr is protected via rules and UFW from access by external sources.