My Oracle Support Banner

MEM Agent Installation Fails - agent.sh : Permission denied (Doc ID 2315386.1)

Last updated on MAY 03, 2018

Applies to:

MySQL Enterprise Monitor - Version 3.3 to 3.4 [Release 3.3 to 3.0]
Linux x86-64

Symptoms

MEM Agent installation fails with an error like below:

----------------------------------------------------------------------------
MySQL Enterprise Monitor Options

Hostname or IP address]: localhost

Tomcat SSL Port [18443]:

The following are the username and password that the Agent will use to
connect
to the Monitor. They were defined when you installed the Monitor. They can
be
modified under Settings, Manage Users. Their role is defined as "agent".

Agent Username [agent]:

Agent Password [********] :
Re-enter [********] :
Warning: Error running su mysql -c '"/opt/mysql/enterprise/agent/bin/agent.sh" -f --agent-user=agent --url=https://localhost:18443 ':sh: /opt/mysql/enterprise/agent/bin/agent.sh: Permission denied

Press [Enter] to continue:

 

Changes

 As of MEM 3.3.3, there has been a change in agent.sh which is quoted here.

As of this release, it is not possible to run agent.sh from the command line as root, but only as mysql.

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!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.