# Unable configure pmm2-client

**URL:** <https://forums.percona.com/t/unable-configure-pmm2-client/28071>\
**Category:** Percona Monitoring and Management (PMM)\
**Created:** [January 26, 2024, 4:22pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071 "2024-01-26T16:22:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frak](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Frak](https://forums.percona.com/u/Frak)\
**Post date:** [January 26, 2024, 4:22pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/1 "2024-01-26T16:22:16Z")

</div>

## Description:

When i try to configure the client i get the  
pmm-admin: error: --server-url: parse “[https://admin:xxxxxxx@HOSTNAME:443](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](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](https://admin:XXXXXXX@HOSTNAME)

- Rebuilt URL to: [https://admin:XXXXXXX@HOSTNAME/](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](https://curl.haxx.se/docs/sslcerts.html)

## 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]

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [January 26, 2024, 4:45pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/2 "2024-01-26T16:45:04Z")

</div>

If you run only this:

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

```

does it work?

---

<div class="post-metadata">

**Author:** ![Frak](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Frak](https://forums.percona.com/u/Frak)\
**Post date:** [January 29, 2024, 9:11am UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/3 "2024-01-29T09:11:15Z")

</div>

> [@matthewb](#):
>
> `pmm-admin config --server-insecure-tls --server-url=https://admin:XXXXX@HOSTNAME:443`

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

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

Thanks!

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [January 29, 2024, 1:50pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/4 "2024-01-29T13:50:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Frak](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Frak](https://forums.percona.com/u/Frak)\
**Post date:** [January 29, 2024, 2:08pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/5 "2024-01-29T14:08:52Z")

</div>

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

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

thanks!

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [January 29, 2024, 2:42pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/6 "2024-01-29T14:42:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Frak](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Frak](https://forums.percona.com/u/Frak)\
**Post date:** [January 29, 2024, 3:20pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/7 "2024-01-29T15:20:11Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [January 29, 2024, 9:22pm UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/8 "2024-01-29T21:22:06Z")

</div>

> [@Frak](#):
>
> net/url: invalid userinfo

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.

---

<div class="post-metadata">

**Author:** ![Frak](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Frak](https://forums.percona.com/u/Frak)\
**Post date:** [January 30, 2024, 7:37am UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/9 "2024-01-30T07:37:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Agustin\_G](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/agustin_g/32/14111_2.png) [@Agustin\_G](https://forums.percona.com/u/Agustin_G)\
**Post date:** [February 2, 2024, 12:05am UTC](https://forums.percona.com/t/unable-configure-pmm2-client/28071/10 "2024-02-02T00:05:50Z")

</div>

Frak,

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

```auto
$ 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.
