# Unable to monitor mysql queries with 1.0.4

**URL:** <https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087>\
**Category:** PMM 1.x\
**Created:** [September 15, 2016, 7:11am UTC](https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087 "2016-09-15T07:11:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danypd69](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/danypd69/32/1044_2.png) [@danypd69](https://forums.percona.com/u/danypd69)\
**Post date:** [September 15, 2016, 7:11am UTC](https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087/1 "2016-09-15T07:11:50Z")

</div>

Hello, I have installed 1.0.4 and then tried to add a client.  
I get this error

```auto
pmm-admin add mysql --user=root --password=mysql-password
[linux:metrics] OK, now monitoring this system.
[mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***&#64;unix(/var/lib/mysql/mysql.sock)
[mysql:queries] Error adding MySQL queries: cannot find os instance on QAN API.

```

I had an old installation of PMM 1.0.3 that I removed.  
I have installed the client using the yum repository; the client is running on percona server Percona-Server-server-56-5.6.28-rel76.1.el6.x86\_64 on centos 6

---

<div class="post-metadata">

**Author:** ![Peter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/peter/32/2_2.png) [@Peter](https://forums.percona.com/u/Peter)\
**Post date:** [September 15, 2016, 7:13am UTC](https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087/2 "2016-09-15T07:13:46Z")

</div>

Hi, Could you please clarify if you have just reinstalled the client or have you reinstalled the docker container for 1.0.4 from scratch as well ?

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [September 15, 2016, 8:50am UTC](https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087/3 "2016-09-15T08:50:13Z")

</div>

Hello,

Looks like the old client 1.0.3 was not uninstalled using uninstall script.

To fix the problem, just run:  
rm -rf /usr/local/percona/qan-agent/{config,data,instance}

And re-run “add” command.

---

<div class="post-metadata">

**Author:** ![danypd69](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/danypd69/32/1044_2.png) [@danypd69](https://forums.percona.com/u/danypd69)\
**Post date:** [September 15, 2016, 11:40am UTC](https://forums.percona.com/t/unable-to-monitor-mysql-queries-with-1-0-4/5087/4 "2016-09-15T11:40:24Z")

</div>

[Peter](https://percona.vanillacommunities.com/profile/x/x/5), I reinstalled both client and server container.

[weber](https://percona.vanillacommunities.com/profile/x/x/4933), it worked … thanks a lot.

Daniele
