Skip to content

Instantly share code, notes, and snippets.

@portableant
Last active May 10, 2022 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portableant/8c7c5d132acf26f48f8744f662994b31 to your computer and use it in GitHub Desktop.
Save portableant/8c7c5d132acf26f48f8744f662994b31 to your computer and use it in GitHub Desktop.
How to upgrade SOLR instance from 8.3 to 8.11.1

How to upgrade SOLR instance from 8.3 to 8.11.1

This is how I got the SOLR upgrade process to run. There was nothing else to run!

Steps

To upgrade I did the following:

  1. Backup your data
  2. Stop the solr service
  3. Download the latest version
  4. Ran the install script with the -f flag

Bash steps

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment