Unable configure pmm2-client


When i try to configure the client i get the
pmm-admin: error: --server-url: parse “https://admin:xxxxxxx@HOSTNAME:443”: net/url: invalid userinfo
The username/password are ok (I connect via browser)

Steps to Reproduce:

Installed pmm-server on a rocky-linux VM , with docker and docker volume
Installed pmm2-client-2.41.0-6.el8.x86_64 (via downloaded rpm)

pmm-admin config --server-insecure-tls --server-url=https://admin:XXXXX@HOSTNAME:443 generic DBSERVER




Connectivity is ok
curl -v https://admin:XXXXXXX@HOSTNAME

  • Rebuilt URL to: https://admin:XXXXXXX@HOSTNAME/
  • Trying…
  • Connected to HOSTNAME ( port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (IN), TLS handshake, [no content] (0):
  • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  • TLSv1.3 (IN), TLS handshake, [no content] (0):
  • TLSv1.3 (IN), TLS handshake, Certificate (11):
  • TLSv1.3 (OUT), TLS alert, unknown CA (560):
  • SSL certificate problem: self signed certificate
  • Closing connection 0
    curl: (60) SSL certificate problem: self signed certificate
    More details here: curl - SSL CA Certificates

Expected Result:

[What the user expected to see or happen before the issue occurred]

Actual Result:

[What actually happened when the user encountered the issue]

Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

If you run only this:

pmm-admin config --server-insecure-tls --server-url=https://admin:XXXXX@HOSTNAME:443

does it work?

no, it doesn’t work, i get the same error

pmm-admin: error: --server-url: parse “https://admin:XXXXX@HOSTNAME:443”: net/url: invalid userinfo


Hi @Frak, what is the version of PMM Server?

Hi, this is the version, installed about one week ago

percona/pmm-server 2 29074adad918 7 weeks ago 2.31GB


Thanks @Frak,

hovewer that didn’t provide much info, we don’t have docker image with the same hash tag. Could you open UI and check version there, please?

I’ve foud this in logs

ProjectName: pmm-managed
Version: 2.41.0
PMMVersion: 2.41.0
Timestamp: 2023-12-05 18:04:58 (UTC)
FullCommit: 9a3843dc52af8ee2561ae2d1b3ee254e313ad493

If this is not enough let me know where on the UI I have to go

Thank you !

Seems like your password contains unsupported characters, please try to escape them. If it doesn’t help please change password so it doesn’t contain any unsupported characters.

Hi, you’re right!
I’m replying just to keep a track, maybe it’s useful to other people,
The only unusual character used was a “£” one
I changed the password (now I have only letters and numbers) and it works

Thanks you

1 Like


For completeness, you can also use the following to get a command-friendly password string:

$ printf %s 'yourpasswith£char' | jq -sRr @uri

And then use the printed string in the pmm-admin config command. In this way, you can continue to use special characters in your passwords.

1 Like