OCI: Management Agent Install Fails with Error : mgmt_agent service creation failed
(Doc ID 2928118.1)
Last updated on JULY 15, 2024
Applies to:
OCI Management Agent Service - Version N/A and laterLinux x86-64
Symptoms
OCI Management Agent Installation using response file, fails with error below
# <PATH>/installer.sh <PATH>/input.rsp
Checking pre-requisites
Checking if any previous agent service exists
Checking if OS has systemd or initd
Checking available disk space for agent install
Checking if /opt/oracle/mgmt_agent directory exists
Checking if 'mgmt_agent' user exists
'mgmt_agent' user already exists, the agent will proceed installation without creating a new one.
Checking Java version
JAVA_HOME is not set or not readable to root
Trying default path /usr/bin/java
Java version: 1.8.0_292 found at /usr/bin/java
Checking agent version Executing install
Unpacking software zip
Copying files to destination dir (/opt/oracle/mgmt_agent)
Initializing software from template
Checking if JavaScript engine is available to use
Creating mgmt_agent daemon
mgmt_agent service creation failed. Reason: Failed to access the script using an absolute path. Insufficient permissions may prevent the user "mgmt_agent" from traversing one of the folders. Please check the following permissions:
dr-xr-xr-x. 1 root root 248 Aug 10 2021 /
drwxr-xr-x. 1 root root 186 Feb 13 15:45 //opt
drwx------ 1 root root 28 Feb 13 20:34 //opt/oracle
drwxr-x--- 1 mgmt_agent mgmt_agent 76 Feb 13 20:34 //opt/oracle/mgmt_agent
drwxr-x--- 1 mgmt_agent mgmt_agent 62 Feb 13 20:34 //opt/oracle/mgmt_agent/agent_inst
drwxr-x--- 1 mgmt_agent mgmt_agent 1222 Feb 13 20:34 //opt/oracle/mgmt_agent/agent_inst/bin
#
#
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |