PMM documentation help

After installing PMM client via Binary package. For one reason I’m getting”Failed to load configuration :open /usr/local/percona/pmm2/config/pmm-agent.yaml:permission denied. Component=main. Even after using sudo I still got PMM-agent not found.

I am using this method to get the client installed and configure because this is “only” way because I can’t reach out to external repo via our proxy(security protocol). Any help would surely be appreciated

1 Like

Hi,

Could you explain the details of the installation process you followed? If the file exists, but you don’t have access, I guess that you have SELINUX enabled, and the file is not correctly labeled.

Things to check:

  • Is SELINUX enabled? Use the getenforce command.
  • If it is, you can try restorecon -Rv /usr/local/percona/pmm2
  • If it is, you can also check the errors in /var/log/audit/audit.log (location and name depends of the distro)

https://wiki.gentoo.org/wiki/SELinux/Tutorials/Where_to_find_SELinux_permission_denial_details

Thank you for being an active part of the community.

Pep

1 Like

Thank you @Pep_Pla for your response today. I used the binary package.
(1.)
wget https://downloads.percona.com/downloads/pmm2/2.32.0/binary/tarball/pmm2-client-2.32.0.tar.gz

(2) .

tar xfz pmm2-client-2.32.0.tar.gz && cd pmm2-client-2.32.0

(3) ran the installer .

Basically this is the link from persona

Client - Percona Monitoring and Management.

Step 5 &7 not clear.

Thanks

1 Like

Hi @Dba1

Did you execute the install using the root user or your own user?

Step 5 indicates the location where the client will be installed.
Step 7 adds the location of pmm binary files to the path.

Please, paste the exact commands you executed to install and the command you execute to find the error. Also the directory where you executed the command.

Thanks

Pep