Currently i was on Sonatype Nexus Repository OSS 3.71.0-06 , H2 DB and Java 17(openjdk-17.0.15+6-linux-x64). Can someone help me to understand what’s wrong here?
Same problem identified when upgrading from OSS 3.71.0-06 to OSS 3.72.0-04 or 3.77.2-02.
Process followed :
- stopped the nexus service
- downloaded and extracted the OSS 3.75.1-01 on the existing nexus location where it has directories for OSS 3.71.0-06.
- granted permissions to nexus user after extracting files.
- started nexus service.
Here the nexus service was not starting/running.
status command “systemctl status nexus” shows the below.
× nexus.service - Nexus Repository Manager
Loaded: loaded (/etc/systemd/system/nexus.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Tue 2025-05-13 10:03:36 GMT; 1min 11s ago
Duration: 5ms
Process: 120296 ExecStart=/scratch/tools/nexus/nexus/bin/nexus start (code=exited, status=0/SUCCESS)
Main PID: 120612 (code=exited, status=1/FAILURE)
CPU: 397ms
May 13 10:03:36 devservices systemd[1]: Starting Nexus Repository Manager…
May 13 10:03:36 devservices nexus[120296]: Starting nexus
May 13 10:03:36 devservices systemd[1]: Started Nexus Repository Manager.
May 13 10:03:36 devservices systemd[1]: nexus.service: Main process exited, code=exited, status=1/FAILURE
May 13 10:03:36 devservices systemd[1]: nexus.service: Failed with result ‘exit-code’.
and “journalctl -xeu nexus.service” shows the below.
May 13 10:03:36 devservices systemd[1]: Starting Nexus Repository Manager…
Subject: A start job for unit nexus.service has begun execution
Defined-By: systemd
Support: https://support.oracle.com
A start job for unit nexus.service has begun execution.
The job identifier is 43200.
May 13 10:03:36 devservices nexus[120296]: Starting nexus
May 13 10:03:36 devservices systemd[1]: Started Nexus Repository Manager.
Subject: A start job for unit nexus.service has finished successfully
Defined-By: systemd
Support: https://support.oracle.com
A start job for unit nexus.service has finished successfully.
The job identifier is 43200.
May 13 10:03:36 devservices systemd[1]: nexus.service: Main process exited, code=exited, status=1/FAILURE
Subject: Unit process exited
Defined-By: systemd
Support: https://support.oracle.com
An ExecStart= process belonging to unit nexus.service has exited.
The process' exit code is 'exited' and its exit status is 1.
May 13 10:03:36 devservices systemd[1]: nexus.service: Failed with result ‘exit-code’.
Subject: Unit failed
Defined-By: systemd
Support: https://support.oracle.com
The unit nexus.service has entered the 'failed' state with result 'exit-code'.
my nexus service file content
[Unit]
Description=Nexus Repository Manager
After=network.target
[Service]
Type=forking
User=nexus
Group=nexus
Environment=INSTALL4J_JAVA_HOME=/scratch/tools/openjdk-17.0.15+6-linux-x64
ExecStart=/scratch/tools/nexus/nexus/bin/nexus start
ExecStop=/scratch/tools/nexus/nexus/bin/nexus stop
Restart=on-abort
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target