Facing issue to configure "pmm-admin config --server-insecure-tls --server-url..."

When trying to run pmm-admin config it said pmm-agent is not running. Please re-run pmm-agent setup with --config-file flag. Whenever pmm-agent is running.

service pmm-agent status

Redirecting to /bin/systemctl status pmm-agent.service
● pmm-agent.service - pmm-agent
Loaded: loaded (/usr/lib/systemd/system/pmm-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-12-29 11:39:07 +06; 21min ago
Main PID: 44822 (pmm-agent)
Tasks: 10 (limit: 49940)
Memory: 18.3M
CGroup: /system.slice/pmm-agent.service
└─44822 /usr/sbin/pmm-agent --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml

Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.197+06:00] Using /usr/local/percona/pmm2/exporters>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.198+06:00] Starting… >
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: ERRO[2022-12-29T11:39:07.198+06:00] PMM Server address is not provided, hal>
Dec 29 11:39:07 bat-db.sslwireless.com pmm-agent[44822]: INFO[2022-12-29T11:39:07.198+06:00] Starting local API server on http://127>
Need suggesion to solve the issue.

Hi, it seems there is some configuration missing. Can you try re-pointing the pmm agent to the server?

pmm-admin config --server-url=https://admin:your_password@pmm_server_ip_address:443 --server-insecure-tls --force

Same as before
image

Try removing PMM package and starting from scratch please, and show the full command you are running (you can obfuscate the password)

This is the command and i am getting error
pmm-admin config --server-insecure-tls --server-url=https://xxxxx:xxxxxxxxx@xxx.xxx.xx.xx:443 xx.xx.xx.xx generic xxxx-01

pmm-admin config --server-url=https://xxxxx:xxxxxxxxx@xxx.xxx.xx.xx:443 --server-insecure-tls --force

Ok and have you confirmed network connectivity is fine to pmm server port 443?

Yes, telnet is ok with the 443 port.