# mysql:queries\] Error adding MySQL queries: problem with agent registration on QAN API: exit status 1

**URL:** <https://forums.percona.com/t/mysql-queries-error-adding-mysql-queries-problem-with-agent-registration-on-qan-api-exit-status-1/8145>\
**Category:** PMM 1.x\
**Tags:** pmm\
**Created:** [October 15, 2020, 4:37pm UTC](https://forums.percona.com/t/mysql-queries-error-adding-mysql-queries-problem-with-agent-registration-on-qan-api-exit-status-1/8145 "2020-10-15T16:37:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saitarun](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@saitarun](https://forums.percona.com/u/saitarun)\
**Post date:** [October 15, 2020, 4:37pm UTC](https://forums.percona.com/t/mysql-queries-error-adding-mysql-queries-problem-with-agent-registration-on-qan-api-exit-status-1/8145/1 "2020-10-15T16:37:40Z")

</div>

Hi Team,

when i am trying to add the below service in one of the client server i am getting the below error:

[root@mysqltest ~]# pmm-admin add mysql --user=pmm\_app --password= --query-source=perfschema --socket=/var/lib/mysql/mysql.sock

Warning: It is recommended to use the same version on both PMM Server and Client, otherwise some features will not work correctly.

Please upgrade your PMM Client by following the instructions from [https://www.percona.com/doc/percona-monitoring-and-management/deploy/index.html#updating](https://www.percona.com/doc/percona-monitoring-and-management/deploy/index.html#updating)

[linux:metrics] OK, already monitoring this system.

[mysql:metrics] OK, already monitoring MySQL metrics.

[mysql:queries] Error adding MySQL queries: problem with agent registration on QAN API: exit status 1

after checking the network it says the **Query Analytics API DOWN**

[root@mysqltest ~]# pmm-admin check-network

Warning: It is recommended to use the same version on both PMM Server and Client, otherwise some features will not work correctly.

Please upgrade your PMM Client by following the instructions from [https://www.percona.com/doc/percona-monitoring-and-management/deploy/index.html#updating](https://www.percona.com/doc/percona-monitoring-and-management/deploy/index.html#updating)

PMM Network Status

- System Time

NTP Server ([0.pool.ntp.org](http://0.pool.ntp.org)) | 2020-10-15 20:36:25 +0000 UTC

PMM Server | 2020-10-15 20:36:25 +0000 GMT

PMM Client | 2020-10-15 16:36:25 -0400 EDT

PMM Server Time Drift | OK

PMM Client Time Drift | OK

PMM Client to PMM Server Time Drift | OK

- Connection: Client → Server

* * *

SERVER SERVICE STATUS

* * *

Consul API OK

Prometheus API OK

**Query Analytics API DOWN**

Connection duration | 1.401407ms

Request duration | -795.598µs

Full round trip | 605.809µs

can you please let me know how can we start the service ?

This QAN API service does it needs to be turned on the server side or the client side ?

Thanks,

Sai

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [October 19, 2020, 1:07pm UTC](https://forums.percona.com/t/mysql-queries-error-adding-mysql-queries-problem-with-agent-registration-on-qan-api-exit-status-1/8145/2 "2020-10-19T13:07:53Z")

</div>

Hi @saitarun . pls see [https://www.percona.com/doc/percona-monitoring-and-management/faq.html#how-to-troubleshoot-communication-issues-between-pmm-client-and-pmm-server](https://www.percona.com/doc/percona-monitoring-and-management/faq.html#how-to-troubleshoot-communication-issues-between-pmm-client-and-pmm-server) this might help. And if needed -
