# got error when execute pmm-admin purge

**URL:** <https://forums.percona.com/t/got-error-when-execute-pmm-admin-purge/6490>\
**Category:** PMM 1.x\
**Created:** [August 3, 2018, 3:48am UTC](https://forums.percona.com/t/got-error-when-execute-pmm-admin-purge/6490 "2018-08-03T03:48:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![andycutright](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/andycutright/32/1240_2.png) [@andycutright](https://forums.percona.com/u/andycutright)\
**Post date:** [September 13, 2018, 2:40pm UTC](https://forums.percona.com/t/got-error-when-execute-pmm-admin-purge/6490/6 "2018-09-13T14:40:04Z")

</div>

[https://www.percona.com/forums/member/22577-michael-coburn](https://www.percona.com/forums/member/22577-michael-coburn)

I see the same issue. I’m running the OVA and MySQL community server on the the client. All the pmm services are running properly on both boxes, as far as I can tell. I removed the linux:metric service, and then purged. I don’t see a log file in /var/log for the linux:metrics service.

sudo pmm-admin --verbose purge linux:metrics

# Some data has been elided for security

sudo pmm-admin --verbose purge linux:metrics  
2018/09/13 19:53:51 request:  
2018/09/13 19:53:51 request:

> GET /qan-api/ping HTTP/1.1  
> Host: 10.0.0.29  
> User-Agent: Go-http-client/1.1  
> Authorization: Basic ELIDED  
> Accept-Encoding: gzip

2018/09/13 19:53:51 response:  
\< HTTP/1.1 200 OK  
\< Access-Control-Allow-Headers: Content-Type,Authorization  
\< Access-Control-Allow-Methods: GET,PUT,POST,DELETE  
\< Access-Control-Allow-Origin: \*  
\< Cache-Control: no-store  
\< Connection: keep-alive  
\< Content-Type: text/plain; charset=utf-8  
\< Date: Thu, 13 Sep 2018 11:07:11 GMT  
\< Pragma: no-cache  
\< Server: nginx  
\< Strict-Transport-Security: max-age=63072000; includeSubDomains  
\< X-Content-Type-Options: nosniff  
\< X-Frame-Options: DENY  
\< X-Percona-Qan-Api-Version: 1.14.1-1809060744.89a7875  
\< X-Xss-Protection: 1; mode=block  
\< Content-Length: 0  
\<  
\<  
2018/09/13 19:53:51 request:

> GET /v1/status/leader HTTP/1.1  
> Host: 10.0.0.29  
> User-Agent: Go-http-client/1.1  
> Authorization: Basic  
> Accept-Encoding: gzip

2018/09/13 19:53:51 response:  
\< HTTP/1.1 200 OK  
\< Content-Length: 16  
\< Connection: keep-alive  
\< Content-Type: application/json  
\< Date: Thu, 13 Sep 2018 11:07:11 GMT  
\< Server: nginx  
\< X-Remote-Ip: 10.0.0.200  
\< X-Server-Time: Thursday, 13-Sep-2018 11:07:11 GMT  
\<  
\< “127.0.0.1:8300”  
2018/09/13 19:53:51 request:

> GET /qan-api/ping HTTP/1.1  
> Host: 10.0.0.29  
> User-Agent: Go-http-client/1.1  
> Accept-Encoding: gzip

2018/09/13 19:53:51 response:  
\< HTTP/1.1 401 Unauthorized  
\< Content-Length: 188  
\< Connection: keep-alive  
\< Content-Type: text/html  
\< Date: Thu, 13 Sep 2018 11:07:11 GMT  
\< Server: nginx  
\< Www-Authenticate: Basic realm=“on”  
\<  
\<   
\< 401 Authorization Required  
\<   
\<

# 401 Authorization Required
  
\< 
* * *
nginx  
\<   
\<   
\<  
2018/09/13 19:53:51 request:

> GET /v1/catalog/node/master-stewie HTTP/1.1  
> Host: 10.0.0.29  
> User-Agent: Go-http-client/1.1  
> Authorization: Basic  
> Accept-Encoding: gzip

2018/09/13 19:53:51 response:  
\< HTTP/1.1 200 OK  
\< Content-Length: 574  
\< Connection: keep-alive  
\< Content-Type: application/json  
\< Date: Thu, 13 Sep 2018 11:07:11 GMT  
\< Server: nginx  
\< X-Consul-Index: 23656  
\< X-Consul-Knownleader: true  
\< X-Consul-Lastcontact: 0  
\< X-Remote-Ip: 10.0.0.200  
\< X-Server-Time: Thursday, 13-Sep-2018 11:07:11 GMT  
\<  
\< {“Node”:{“ID”:“”,“Node”:“master-stewie”,“Address”:“10.0.0.200”,“Datacenter”:“dc1”,“TaggedAddresses”:null,“Meta”:null,“CreateIndex”:16384,“ModifyIndex”:21235},“Services”:{“mysql:metrics-42002”:{“ID”:“mysql:metrics-42002”,“Service”:“mysql:metrics”,“Tags”:[“alias\_master-stewie”,“scheme\_https”],“Address”:“”,“Port”:42002,“EnableTagOverride”:false,“CreateIndex”:16384,“ModifyIndex”:16384},“mysql:queries-0”:{“ID”:“mysql:queries-0”,“Service”:“mysql:queries”,“Tags”:[“alias\_master-stewie”],“Address”:“”,“Port”:0,“EnableTagOverride”:false,“CreateIndex”:21244,“ModifyIndex”:21244}}}  
2018/09/13 19:53:51 request:

> DELETE /prometheus/api/v1/series?match={job=“linux”,instance=“master-stewie”} HTTP/1.1  
> Host: 10.0.0.29  
> User-Agent: Go-http-client/1.1  
> Authorization: Basic  
> Accept-Encoding: gzip

2018/09/13 19:53:51 response:  
\< HTTP/1.1 500 Internal Server Error  
\< Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin  
\< Access-Control-Allow-Methods: GET, OPTIONS  
\< Access-Control-Allow-Origin: \*  
\< Access-Control-Expose-Headers: Date  
\< Connection: keep-alive  
\< Content-Type: application/json  
\< Date: Thu, 13 Sep 2018 11:07:11 GMT  
\< Server: nginx  
\<  
\< {“status”:“error”,“errorType”:“internal”,“error”:“not implemented”}  
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:  
[github.com/percona/pmm-client/pmm.(\*Admin).PurgeMetrics](http://github.com/percona/pmm-client/pmm.(*Admin).PurgeMetrics)(0xc288c0, 0x7ffdf02f697b, 0xd, 0xc420176b28, 0xc42012db48, 0x81da62)  
/tmp/go/src/github.com/percona/pmm-client/pmm/pmm.go:431 +0x5a4  
main.glob..func43(0xc225a0, 0xc4200fcd60, 0x1, 0x2)  
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1295 +0xd1  
[github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(\*Command).execute](http://github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).execute)(0xc225a0, 0xc4200fcd20, 0x2, 0x2, 0xc225a0, 0xc4200fcd20)  
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:654 +0x2a2  
[github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(\*Command).ExecuteC](http://github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).ExecuteC)(0xc1cde0, 0xc42012ddb0, 0x49ba52, 0x0)  
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:729 +0x2d4  
[github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(\*Command).Execute](http://github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).Execute)(0xc1cde0, 0xc460aa, 0x9524d8)  
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:688 +0x2b  
main.main()  
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1563 +0x13b1

---

_[View the full topic](https://forums.percona.com/t/got-error-when-execute-pmm-admin-purge/6490)._
