time=“2025-07-03T12:57:10.013+00:00” level=error msg=“Failed to start Agent: mkdir /usr/local/percona/pmm/tmp/agent_type_vm_agent: permission denied.” component=supervisor
time=“2025-07-03T12:57:10.013+00:00” level=error msg=“Failed to start Agent: mkdir /usr/local/percona/pmm/tmp/agent_type_node_exporter: permission denied.” component=supervisor
Hi @rajbahadurgupta ,
How did you install the agent? How do you start the pbm-agent
? as systemd service or manually? The error says you have no permission to write to the path /usr/local/percona/
. This permission is taken care of automatically when you install via rpm and start the service using systemd. Else, you can ensure the path /usr/path/percona/pmm
exists and is provided with permission for the user pmm-agent
to write.
For example, from my test system:
$ ls -l /usr/local/percona/
total 12
drwxr-xr-x 8 pmm-agent pmm-agent 4096 Jun 26 10:34 pmm
Regards,
Vinodh Guruji
Hi @Vinodh_Krishnaswamy ,
I am installing pmm-agent3 using docker container ? and getting error while running below command which is given in doucmentation
docker run \
--rm \
--name pmm-client \
-e PMM_AGENT_SERVER_ADDRESS=X.X.X.X:443\
-e PMM_AGENT_SERVER_USERNAME=admin \
-e PMM_AGENT_SERVER_PASSWORD=pwd \
-e PMM_AGENT_SERVER_INSECURE_TLS=1 \
-e PMM_AGENT_SETUP=1 \
-e PMM_AGENT_CONFIG_FILE=config/pmm-agent.yaml \
-e PMM_AGENT_SETUP_FORCE=1 \
-v pmm-client-data:/usr/local/percona/pmm/tmp \
percona/pmm-client:3
Please share the below details :
ls -ld /usr/local/percona/pmm/tmp/
ls -ld /usr/local/percona/pmm/
ls -ld /usr/local/percona/