Hi mattheweb,igroene,perconateam
I have been struggling in setting up percona from last few weeks…I have listed down detailed the steps which has been exceuted by me and errors which I am getting:
Note:
1)I have run the Mysql 5.7.x DB conatiner succesfully.
2)I have run the PMM server also sucessfully using container
On Step1 I am getting stuck from last few weeks.
Step1) I am getting error while configuring PMM server and PMM client connection using below command:
sudo pmm-admin config --server-insecure-tls --server-url=https://admin:admin@192.x.1.2:443
output error:
Checking local pmm-agent status…
pmm-agent is not running. Please re-run pmm-agent setup
with --config-file flag
Step2) I tried peforming several below commands in order to rectify the error but still different new errors:
i)command:
pmm-agent setup --server-address=192.x.1.2:443 --config-file=pmm-agent.yaml
Output error message:
root@4be85634a7c3:/# pmm-agent setup --server-address=192.x.1.2:443 --config-file=pmm-agent.yaml
INFO[2022-03-25T13:18:45.354+00:00] Loading configuration file /pmm-agent.yaml. component=setup
INFO[2022-03-25T13:18:45.354+00:00] Using /usr/local/percona/pmm2/exporters/node_exporter component=setup
INFO[2022-03-25T13:18:45.354+00:00] Using /usr/local/percona/pmm2/exporters/mysqld_exporter component=setup
INFO[2022-03-25T13:18:45.354+00:00] Using /usr/local/percona/pmm2/exporters/mongodb_exporter component=setup
INFO[2022-03-25T13:18:45.355+00:00] Using /usr/local/percona/pmm2/exporters/postgres_exporter component=setup
INFO[2022-03-25T13:18:45.355+00:00] Using /usr/local/percona/pmm2/exporters/proxysql_exporter component=setup
INFO[2022-03-25T13:18:45.355+00:00] Using /usr/local/percona/pmm2/exporters/rds_exporter component=setup
INFO[2022-03-25T13:18:45.355+00:00] Using /usr/local/percona/pmm2/exporters/azure_exporter component=setup
INFO[2022-03-25T13:18:45.355+00:00] Using /usr/local/percona/pmm2/exporters/vmagent component=setup
Checking local pmm-agent status…
pmm-agent is not running.
Registering pmm-agent on PMM Server…
Failed to register pmm-agent on PMM Server: Post “https://192.x.1.2:443/v1/management/Node/Register”: x509: cannot validate certificate for 192.x.1.2 because it doesn’t contain any IP SANs.
ii) command:
pmm-agent run
output error messge:
root@4be85634a7c3:/# pmm-agent run
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/node_exporter component=main
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/mysqld_exporter component=main
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/mongodb_exporter component=main
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/postgres_exporter component=main
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/proxysql_exporter component=main
INFO[2022-03-25T13:21:47.536+00:00] Using /usr/local/percona/pmm2/exporters/rds_exporter component=main
INFO[2022-03-25T13:21:47.537+00:00] Using /usr/local/percona/pmm2/exporters/azure_exporter component=main
INFO[2022-03-25T13:21:47.537+00:00] Using /usr/local/percona/pmm2/exporters/vmagent component=main
INFO[2022-03-25T13:21:47.537+00:00] Starting local API server on http://127.0.0.1:7777/ … component=local-server/JSON
INFO[2022-03-25T13:21:47.537+00:00] Starting… component=client
ERRO[2022-03-25T13:21:47.538+00:00] PMM Server address is not provided, halting. component=client
INFO[2022-03-25T13:21:47.541+00:00] Started. component=local-server/JSON
^CWARN[2022-03-25T13:21:57.880+00:00] Got SIGINT, shutting down… component=main
INFO[2022-03-25T13:21:57.881+00:00] Done. component=actions-runner
INFO[2022-03-25T13:21:57.881+00:00] Done. component=supervisor
INFO[2022-03-25T13:21:57.881+00:00] Stopped. component=local-server/JSON
INFO[2022-03-25T13:21:57.883+00:00] Done. component=local-server
INFO[2022-03-25T13:21:57.883+00:00] Done. component=main
iii)command: I have checked using “netstat -abn” comand that 7777 port is not being used by any applictaion
iv)command:
pmm-agent --version
Output message:
root@4be85634a7c3:/# pmm-agent --version
ProjectName: pmm-agent
Version: 2.26.0
PMMVersion: 2.26.0
Timestamp: 2022-02-03 14:03:52 (UTC)
FullCommit: c74f5ae58331dc29af34d29c2b6905b8f47cc3ab
root@4be85634a7c3:/#
Attached is the screenshot for the refernce:
Any help will be highly appreciable
Thanks