ActiveMQ on Data Aggregator of DX NetOps Performance Management failing to start after upgrade
search cancel

ActiveMQ on Data Aggregator of DX NetOps Performance Management failing to start after upgrade

book

Article ID: 218009

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

After upgrading DX NetOps Performance Management to 20.2.10, the Data Aggregator upgrade installation shows: Successful with errors.

Unable to start ActiveMQ service on Data aggregator, for example;

root@host Logs]# service activemq status
Redirecting to /bin/systemctl status activemq.service
● activemq.service - Apache ActiveMQ
   Loaded: loaded (/etc/systemd/system/activemq.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2021-06-22 19:39:19 EDT; 42s ago
  Process: 12311 ExecStop=/opt/IMDataAggregator/scripts/activemq stop sysd (code=exited, status=0/SUCCESS)
  Process: 29148 ExecStart=/opt/IMDataAggregator/scripts/activemq start sysd (code=exited, status=0/SUCCESS)
 Main PID: 29235 (code=exited, status=1/FAILURE)

Jun 22 19:39:19 host systemd[1]: Starting Apache ActiveMQ...
Jun 22 19:39:19 host activemq[29148]: Starting ActiveMQ
Jun 22 19:39:19 host activemq[29148]: INFO: Loading '/opt/IMDataAggregator/broker/apache-activemq-5.15.8//bin/env'
Jun 22 19:39:19 host activemq[29148]: INFO: Using java '/opt/IMDataAggregator/jre/bin/java'
Jun 22 19:39:19 host activemq[29148]: INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
Jun 22 19:39:19 host activemq[29148]: INFO: pidfile created : '/opt/CA/IMDataAggregator/broker/apache-activemq-5.15.8//data/activemq.pid' (pid '29235')
Jun 22 19:39:19 host systemd[1]: Started Apache ActiveMQ.
Jun 22 19:39:19 host systemd[1]: activemq.service: main process exited, code=exited, status=1/FAILURE
Jun 22 19:39:19 host systemd[1]: Unit activemq.service entered failed state.
Jun 22 19:39:19 host systemd[1]: activemq.service failed.

Environment

DX NetOps Performance Management 20.2.x

Cause

Trying to run activemq gives the following;

root@da:/opt/IMDataAggregator/broker/apache-activemq-5.15.8/# cat activemq.out

Error: Password file read access must be restricted: /opt/IMDataAggregator/broker/apache-activemq-5.15.8/conf/jmx.password

sun.management.AgentConfigurationError

        at sun.management.jmxremote.ConnectorBootstrap.checkPasswordFile(ConnectorBootstrap.java:577)

        at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:426)

        at sun.management.Agent.startAgent(Agent.java:262)

        at sun.management.Agent.startAgent(Agent.java:452)

Resolution

Change the permissions on the jmx.password file so that only the root user has any form of access;

chmod 600 <IMDataAggregator_DIR>/broker/apache-activemq-5.15.8/conf/jmx.password

This will allow the activemq to start normally and sync to the DX NetOps Portal.