Description:
I was following the Contribution guide for running a local env for PMM server and client but facing issue while tried built for pmm-agent
Steps to Reproduce:
PMM Server
after this tried the build for PMM client
PMM Client
- Clone pmm repository.
- Navigate to the
/agent
folder in the root of the repository.
- Run
make setup-dev
I am facing this issue interminal
pmm-agent setup --config-file=pmm-agent-dev.yaml --server-insecure-tls --server-address=127.0.0.1:443 --server-username=admin --server-password=admin --paths-exporters_base=/root/go/bin --force
make: pmm-agent: No such file or directory
make: *** [Makefile:119: setup-dev] Error 127
1 Like
Hello vishwas2480,
Thank you for raising this, I was able to reproduce this in my env:
And as I found from the logs, that pmm-agent was installed into the directory, which not part of the $PATH
for me, it was /Users/denissubbota/go/bin/pmm-agent
I have added it to the PATH and it worked as expected:
12:35:57 Local]:agent > export PATH=$PATH:/Users/denissubbota/go/bin/
[12:39:31 Local]:agent > make setup-dev
go build -v -ldflags "-X 'github.com/percona/pmm/version.ProjectName=pmm-agent' -X 'github.com/percona/pmm/version.Version=2.41.2-166-g79a2310be' -X 'github.com/percona/pmm/version.PMMVersion=2.41.2-166-g79a2310be' -X 'github.com/percona/pmm/version.Timestamp=1726558781' -X 'github.com/percona/pmm/version.FullCommit=79a2310beda7ca985d1ac746825e0a5c3db9c44d' -X 'github.com/percona/pmm/version.Branch=remotes/origin/pmm-2.43.0'" -o /Users/denissubbota/go/bin/pmm-agent
github.com/percona/pmm/agent
pmm-agent setup --config-file=pmm-agent-dev.yaml --server-insecure-tls --server-address=127.0.0.1:443 --server-username=admin --server-password=admin --paths-exporters_base=/Users/denissubbota/go/bin --force
INFO[2024-09-17T12:39:49.299+05:00] Loading configuration file /Users/denissubbota/tmp/pmm/agent/pmm-agent-dev.yaml. component=setup
INFO[2024-09-17T12:39:49.302+05:00] Temporary directory is not configured and will be set to /usr/local/percona/pmm2/tmp component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/node_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/mysqld_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/mongodb_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/postgres_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/proxysql_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/rds_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/azure_exporter component=setup
INFO[2024-09-17T12:39:49.302+05:00] Using /Users/denissubbota/go/bin/vmagent component=setup
Checking local pmm-agent status...
pmm-agent is not running.
Registering pmm-agent on PMM Server...
Registered.
Configuration file /Users/denissubbota/tmp/pmm/agent/pmm-agent-dev.yaml updated.
Please start pmm-agent: `pmm-agent --config-file=/Users/denissubbota/tmp/pmm/agent/pmm-agent-dev.yaml`.
Could you please try the same?
Regards,
Denis Subbota.
Managed Services, Percona.