Frak
January 26, 2024, 4:22pm
1
Description:
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 10.1.89.171 generic DBSERVER
Version:
pmm2-client-2.41.0-6.el8.x86_64
Logs:
Connectivity is ok
curl -v https://admin:XXXXXXX@HOSTNAME
Rebuilt URL to: https://admin:XXXXXXX@HOSTNAME/
Trying 10.1.89.170…
TCP_NODELAY set
Connected to HOSTNAME (10.1.89.170) 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?
Frak
January 29, 2024, 9:11am
3
Hello,
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
Thanks!
nurlan
January 29, 2024, 1:50pm
4
Hi @Frak , what is the version of PMM Server?
Frak
January 29, 2024, 2:08pm
5
Hi, this is the version, installed about one week ago
percona/pmm-server 2 29074adad918 7 weeks ago 2.31GB
thanks!
nurlan
January 29, 2024, 2:42pm
6
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?
Frak
January 29, 2024, 3:20pm
7
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 !
nurlan
January 29, 2024, 9:22pm
8
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.
Frak
January 30, 2024, 7:37am
9
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
Frak,
For completeness, you can also use the following to get a command-friendly password string:
$ printf %s 'yourpasswith£char' | jq -sRr @uri
yourpasswith%C2%A3char
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