Closed FinalFortune closed 4 years ago
Have a look at the error message in your log The version of the JVM must be 1.8
. This is a hard requirement for nexus, as reported in README.md which is itself derived from the official nexus documentation
Ok, it runs now but the role still freezes on that step?
CGroup: /system.slice/nexus.service
└─81561 /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/java-1.8.0-openjdk-amd64 -Dexe4j.moduleName=/opt/nexus-latest
Feb 14 14:05:51 BuildServerTest systemd[1]: Starting nexus service...
Feb 14 14:05:52 BuildServerTest nexus[81334]: Starting nexus
Feb 14 14:05:52 BuildServerTest systemd[1]: Started nexus service.
The handler waiting for nexus is looking for Started Sonatype Nexus .*
in your log (i.e. {{ nexus_data_dir }}/log/nexus.log
).
Have a look there and see why this piece of string is not being outputted correctly. The timeout is set to 1800 seconds. So it will wait for all that time until it fails if nexus never starts correctly.
Ah thanks, yes I should have looked for nexus's logs first.
Ah thanks, yes I should have looked for nexus's logs first.
Did you ever solve this? I'm facing the same issue and the log file doesn't even get created.
Edit: Solved it by increasing VM memory to 4GB.
Trying to run the role on an azure Linux machine (ubuntu).
Linux BuildServerTest 5.0.0-1031-azure #33-Ubuntu SMP Thu Feb 6 22:26:13 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
nexus installs but freezes when waiting on this task:
RUNNING HANDLER [ansible-thoteam.nexus3-oss : wait-for-nexus] *********************************************************************************************************
systemctl status provides the following log:
I'm using the roles as suggested:
Java --version: