Job for nexus.service failed because the control process exited with error code. See "systemctl status nexus.service" and "journalctl -xe" for details

Job for nexus.service failed because the control process exited with error code. See “systemctl status nexus.service” and “journalctl -xe” for details.
nexus.service - nexus service
Loaded: loaded (/etc/systemd/system/nexus.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-08-15 15:08:06 UTC; 1min 13s ago
Process: 7492 ExecStart=/app/nexus/bin/nexus start (code=exited, status=83)

Aug 15 15:08:05 nexus systemd[1]: Starting nexus service…
Aug 15 15:08:06 nexus systemd[1]: nexus.service: control process exited, code=exited status=83
Aug 15 15:08:06 nexus systemd[1]: Failed to start nexus service.
Aug 15 15:08:06 nexus systemd[1]: Unit nexus.service entered failed state.
Aug 15 15:08:06 nexus systemd[1]: nexus.service failed.

You should take a look at the nexus.log in the data directory to see what the application’s error message is.

Aug 21 10:51:14 ip-172-31-92-236.ec2.internal useradd[13722]: new group: name=nexus, GID=1001
Aug 21 10:51:14 ip-172-31-92-236.ec2.internal useradd[13722]: new user: name=nexus, UID=1001, GID=1001, home=/home/nexus, shell=/bin/bash
Aug 21 10:51:46 ip-172-31-92-236.ec2.internal dhclient[3005]: XMT: Solicit on eth0, interval 128010ms.
Aug 21 10:53:54 ip-172-31-92-236.ec2.internal dhclient[3005]: XMT: Solicit on eth0, interval 112320ms.
Aug 21 10:54:03 ip-172-31-92-236.ec2.internal systemd[1]: Reloading.
Aug 21 10:54:18 ip-172-31-92-236.ec2.internal systemd[1]: Starting nexus service…
– Subject: Unit nexus.service has begun start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit nexus.service has begun starting up.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal systemd[1]: nexus.service: control process exited, code=exited status=83
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal nexus[14859]: No suitable Java Virtual Machine could be found on your system.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal nexus[14859]: The version of the JVM must be 17.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal nexus[14859]: Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal systemd[1]: Failed to start nexus service.
– Subject: Unit nexus.service has failed
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit nexus.service has failed.

– The result is failed.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal systemd[1]: Unit nexus.service entered failed state.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal systemd[1]: nexus.service failed.
Aug 21 10:54:19 ip-172-31-92-236.ec2.internal rsyslogd[3257]: imjournal: journal reloaded… [v8.24.0-57.amzn2.2.0.2 try You searched for error 0 - rsyslog ]
lines 1058-1083/1083 (END)