OIConnector no longer start after restarting it
search cancel

OIConnector no longer start after restarting it

book

Article ID: 389807

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

After restarting the OIConnector service, it no longer start.

Environment

Performance Management: Any release

Cause

It can't find the specified JVM from the /opt/CA/OIConnector/conf/wrapper.conf file. The wrapper is configured to point to JVM at /usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64/bin/java

In the wrapper-20250221.log file:

WARN   | wrapper  | 2025/02/21 11:49:45 | The configured wrapper.java.command could not be found, attempting to launch anyway: /usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64/bin/java
ERROR  | wrapper  | 2025/02/21 11:49:45 | Unable to start JVM: No such file or directory (2)

cd /usr/lib/jvm

ls -la

jre-17-openjdk-17.0.14.0.7-3.el8.x86_64 --> java-17-openjdk-17.0.14.0.7-3.el8.x86_64

 

cat /opt/CA/OIConnector/conf/wrapper.conf

#********************************************************************
# Wrapper Java Properties
#********************************************************************
# Java Application
#  Locate the java binary on the system PATH:
#wrapper.java.command=java
#  Specify a specific java binary:
set.JAVA_HOME=/usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64
wrapper.java.command=%JAVA_HOME%/bin/java

Resolution

Use the Java alternatives path instead.

ls /etc/alternatives/jre_17

  • bin
  • conf
  • include
  • legal
  • lib
  • release
  • tapset

vi /opt/CA/OIConnector/conf/wrapper.conf

Change to: set.JAVA_HOME=/etc/alternatives/jre_17

#********************************************************************
# Wrapper Java Properties
#********************************************************************
# Java Application
#  Locate the java binary on the system PATH:
#wrapper.java.command=java
#  Specify a specific java binary:
set.JAVA_HOME=/etc/alternatives/jre_17
wrapper.java.command=%JAVA_HOME%/bin/java

 

Start the OIConnector service:

service caperfcenter_oiconnector start

service caperfcenter_oiconnector status

Additional Information

The kakfa service must be down too because of the missing JRE file.

The Java path in kafka is wrong too. The /usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64 does not exist.

cat /opt/CA/kafka/config/answers.properties

installationDirectory=/opt/CA/kafka

javaHome=/usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64

 

Resolution: 

Update the /opt/CA/kafka/config/answers.properties file with the correct Java path and reinstall kafka.

vi /opt/CA/kafka/config/answers.properties

Change to: javaHome=/etc/alternatives/jre_17

 

Reinstall kafka, which will use the updated /opt/CA/kafka/config/answers.properties file.

./netops-kafka-3.7.0.7-RELEASE.txe

Start the kafka service.

systemctl start netops-kafka

systemctl status netops-kafka