Hi, I’m using the PMM v2.36.0 but I’m facing below error. I’m running the PMM-Client as a container.
INFO[2023-03-24T06:30:09.425+00:00] Restarting `pmm-admin setup` in 5 seconds because PMM_AGENT_SIDECAR is enabled... component=entrypoint
INFO[2023-03-24T06:30:14.428+00:00] Starting 'pmm-admin setup'... component=entrypoint
INFO[2023-03-24T06:30:14.444+00:00] Loading configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml. component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/node_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/mysqld_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/mongodb_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/postgres_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/proxysql_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/rds_exporter component=setup
Checking local pmm-agent status...
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/azure_exporter component=setup
INFO[2023-03-24T06:30:14.445+00:00] Using /usr/local/percona/pmm2/exporters/vmagent component=setup
pmm-agent is not running.
Registering pmm-agent on PMM Server...
Registered.
Configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml updated.
Please start pmm-agent: `pmm-agent --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml`.
INFO[2023-03-24T06:30:14.557+00:00] 'pmm-admin setup' exited with 0 component=entrypoint
INFO[2023-03-24T06:30:14.557+00:00] Stopping pmm-agent... component=entrypoint
FATA[2023-03-24T06:30:14.557+00:00] Failed to kill pmm-agent: os: process already finished component=entrypoint
I have enabled the sidecar option and tried to register the PMM-Client to PMM Server, so I think that PMM-Client shouldn’t get restarted but finally the entrypoint of the PMM-Client exited.
As you can see the Registering pmm-agent on PMM Server
was done successfully.
It does not always occur. After several retrial, the PMM-Client can run successfully.
How can I prevent not to get restarted the PMM-Client even I enabled sidecar option?