Permission error on the ud.env file when starting the second instance of APM Db2 agent with TEMA patch

Problem

There is permission error on the ud.env file when starting the second instance of APM Db2 agent with TEMA patch.

Symptom

The terminal shows the following message when starting the agent:
/opt/ibm/apm/agent/tmp/ud_db2apm.run: line 226: /opt/ibm/apm/agent/logs/ud.env: Permission denied

Solution

After starting the first instance of the agent, the user must run CANDLE_HOME/bin/secure.sh to grant permissions
to the admin group that configured the DB2 agent instances. CANDLE_HOME is the agent installation directory.

  1. Run the secure.sh command with the following parameters:

    ./secure.sh -g Db2_admin_group_name

    Where:
    • -g indicates group.
    • Db2_admin_group_name is the Db2 admin group name.

    For example: ./secure.sh -g db2iadm1

  2. Start the second instance of agent.