Hi!
I’ll get right to the point, I’m a bit of an amateur programmer, have been using maven for a long time and am brand new to nexus.
Through following a tutorial yesterday, I downloaded and successfully set up Nexus 3.41.1, which on use, said that the version was affected by the Log4J exploit. So I attempted first to use 3.70.1, then 3.68.1 using the exact same steps, however these 2 versions are both failing and will not start.
These are the exact setup steps I’m using:
- wget tar
- decompile tar
- mv to /opt so both the nexus and sonatype-work are in /opt
- change run_as_user in nexus.rc to “nexus” and uncomment it
- change Xms, Xmx and -XX:MaxDirectMemorySize to 1024m
- chown the nexus and sonatype-work directories recursively to the nexus user
- chmod the nexus and sonatype-work directories recursively to 770
- use
systemctl start nexus
(which runs /opt/nexus/bin/nexus start)
I’ve tried all 3 versions with both java 8 and java 11. Due to my usage case and the small scale of my projects, I want to keep the OrientDB functionality and not change to H2 or PostgreSQL. There is currently no data on my nexus repository due to me trying to upgrade it and waiting until I manage, so I’m happy to do clean installs where needed.
After about 30 seconds 3.41.1 fully sets up and starts working, and I can access it on my server and browser totally fine. When 3.68.1 and 3.70.1 are started, they immediately fail, do not generate a log file or any files on sonatype_work/nexus3/log/ (which includes jvm.log), do not output any errors to journalcte -xeu nexus.service
and just lie in an error state with systemctl status nexus
. Starting and checking the status of nexus directly using the nexus.exe also says that it’s not starting, but is not saying why.
Does anyone know any further set up steps I need or am missing between this big version gap? I’ve tried swapping java versions between 8, 11 and 17, I’ve tried changing the heap size, all of which isn’t helping.
Thanks!