Sonatype nexus upgrade
Posted: Wed Nov 24, 2021 9:28 pm
Existing version: nexus-3.19.1-01
Version to upgrade: nexus-3.37.0-01
Stop nexus:
Get the latest version
Extract downloaded package. Note, all files inside sonatype-work will remain
Replace existing symlik to new one
Version nexus-3.19.1-01 worked with HTTPS.
If we run new version, it will not be started.
To avoid the issue we can switch off HTTPS
And make its content like this
Now Nexus can be run in test mode
At this run Nexus installation will be upgraded.
Note, downgrade will not be possible.
Restart system to run Nexus as a service automatically.
Version to upgrade: nexus-3.37.0-01
Stop nexus:
Code: Select all
/etc/init.d/nexus stopCode: Select all
wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
Code: Select all
tar xzvf latest-unix.tar.gzCode: Select all
sudo rm /etc/init.d/nexus
sudo ln -s /home/user/nexus-3.37.0-01/bin/nexus /etc/init.d/nexusIf we run new version, it will not be started.
Code: Select all
Keystore was tampered with, or password was incorrectCode: Select all
sudo nano /home/user/sonatype-work/nexus3/etc/nexus.propertiesCode: Select all
# Jetty section
application-port=8081
#application-port-ssl=8443
# application-host=0.0.0.0
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
#,${jetty.etc}/jetty-https.xml
ssl.etc=${karaf.data}/etc/ssl
# nexus-context-path=/
# Nexus section
# nexus-edition=nexus-pro-edition
# nexus-features=\
# nexus-pro-feature
# nexus.hazelcast.discovery.isEnabled=true
Code: Select all
/home/user/nexus-3.37.0-01/bin/nexus runNote, downgrade will not be possible.
Restart system to run Nexus as a service automatically.