Hi,
i’m new to the forrum but i am using Pmm-server for several years now and walked thourh many user posts here befor posting this one.
I was on my way to add new pmm-client (mysql metrics) to my pmm server when i come over an what i think is an incompatibility issue :
pmm-admin config --server ip-adress --server-user user --server-password password
OK, PMM server is alive.
PMM Server | ip-adress (password-protected)
Client Name | server_name
Client Address | client-ip-adress
sudo pmm-admin add mysql --user pmm --password password
status code 404 (text/html)
**to get more information about this error i addes the --verbose flag**
sudo pmm-admin --verbose add mysql --user pmm --password password
2021/02/16 11:38:48 request:
> GET /qan-api/ping HTTP/1.1
> Host: ip-adress
> User-Agent: Go-http-client/1.1
> Authorization: Basic YXRobWluOmF0aG1pbg==
> Accept-Encoding: gzip
>
>
2021/02/16 11:38:48 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: *
< Connection: keep-alive
< Content-Type: text/plain; charset=utf-8
< Date: Tue, 16 Feb 2021 10:38:48 GMT
< Server: nginx
< Strict-Transport-Security: max-age=63072000; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Percona-Qan-Api-Version: 1.3.2-1710050805.582bb9c
< Content-Length: 0
<
<
2021/02/16 11:38:48 request:
> GET /v1/status/leader HTTP/1.1
> Host: ip-adress
> User-Agent: Go-http-client/1.1
> Authorization: Basic YXRobWluOmF0aG1pbg==
> Accept-Encoding: gzip
>
>
2021/02/16 11:38:48 response:
< HTTP/1.1 200 OK
< Content-Length: 16
< Connection: keep-alive
< Content-Type: application/json
< Date: Tue, 16 Feb 2021 10:38:48 GMT
< Server: nginx
< X-Remote-Ip: ip-adress
< X-Server-Time: Tuesday, 16-Feb-2021 10:38:48 GMT
<
< "127.0.0.1:8300"
2021/02/16 11:38:48 request:
> GET /qan-api/ping HTTP/1.1
> Host: ip-adress
> User-Agent: Go-http-client/1.1
> Accept-Encoding: gzip
>
>
2021/02/16 11:38:48 response:
< HTTP/1.1 401 Unauthorized
< Content-Length: 188
< Connection: keep-alive
< Content-Type: text/html
< Date: Tue, 16 Feb 2021 10:38:48 GMT
< Server: nginx
< Www-Authenticate: Basic realm="on"
<
< <html>
< <head><title>401 Authorization Required</title></head>
< <body bgcolor="white">
< <center><h1>401 Authorization Required</h1></center>
< <hr><center>nginx</center>
< </body>
< </html>
<
2021/02/16 11:38:48 request:
> GET /managed/v1/version HTTP/1.1
> Host: ip-adress
> User-Agent: Go-http-client/1.1
> Authorization: Basic YXRobWluOmF0aG1pbg==
> Accept-Encoding: gzip
>
>
2021/02/16 11:38:48 response:
< HTTP/1.1 404 Not Found
< Transfer-Encoding: chunked
< Connection: keep-alive
< Content-Type: text/html
< Date: Tue, 16 Feb 2021 10:38:48 GMT
< Server: nginx
<
< a2
< <html>
< <head><title>404 Not Found</title></head>
< <body bgcolor="white">
< <center><h1>404 Not Found</h1></center>
< <hr><center>nginx</center>
< </body>
< </html>
<
< 0
<
<
status code 404 (text/html)
**pmm-admin networkcheck returns the same error : **
status code 404 (text/html)
**Here is some information about the configuration :**
pmm-admin info
pmm-admin 1.17.4
PMM Server | server-ip (password-protected)
Client Name | host_name
Client Address | host ip
Service Manager | linux-systemd
Go Version | 1.10.1
Runtime Info | linux/amd64
**The pmm-admin version of server is**
pmm-admin -v
1.3.1
On Homepage it shown : v1.3.2
My firs question is : is pmm-client v1.17.4 compatible with server version 1.3.1 ?
If not where can i download older/archived version of pmm-client for debian based systems ?
After a few hours of seraching on internet i was not able to get older version of pmm-client.
fortunately i keept the package on one of my client servers so i was able to make some tests :
lets try with the older version of pmm-client :
dpkg -i pmm-client_1.10.0-1.xenial_amd64.deb
pmm-admin config --server ip^-adress --server-user user --server-password password
OK, PMM server is alive.
PMM Server | server-ip (password-protected)
Client Name | hostname
Client Address | client-ip
sudo pmm-admin add mysql --user pmm --password password
[linux:metrics] OK, now monitoring this system.
[mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@unix(/var/run/mysqld/mysqld.sock)
[mysql:queries] OK, now monitoring MySQL queries from slowlog using DSN root:***@unix(/var/run/mysqld/mysqld.sock)
So from here whe can see that with the older version of pmm-client it seems to work
pmm-admin list
pmm-admin 1.10.0
PMM Server | server-ip (password-protected)
Client Name | hostname
Client Address | client-ip
Service Manager | linux-systemd
-------------- ----- ----------- -------- ------------------------------------------- ------------------------------------------
SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS
-------------- ----- ----------- -------- ------------------------------------------- ------------------------------------------
mysql:queries hostname - YES root:***@unix(/var/run/mysqld/mysqld.sock) query_source=slowlog, query_examples=true
linux:metrics hostname 42000 YES -
mysql:metrics hostname 42002 YES root:***@unix(/var/run/mysqld/mysqld.sock)
Whe can see that ther is a warning of version compatibility :
Error getting a list of external metrics: status code 404 (text/html).
Please check versions of your PMM Server and PMM Client.
As i have serveral older linx-based systems that works with older versions of the pmm-client, what is the good stratégy to get the whole thing work together ?
if i update pmm-server, will i found most recent pmm1 clients for older linux versions ?
is pmm2 compatble with older linux version
Any good advice would be helpfull
Hope this post can help some one encountering same issue.