I deleted backup, paused/unpaused MongoDB cluster and started backup again. Now it worked.
Glad to hear that!
Indeed, it works without “#.” I tested the same and I was able to see your problem
Backup User password:
$ k get secret/internal-my-cluster-name-users -npsmdb --template={{.data.MONGODB_BACKUP_PASSWORD}} |base64 -d
asf#shdfA9
PBM agent complained as follows:
2024/10/02 17:56:38 [entrypoint] `pbm-agent` exited with code 1
2024/10/02 17:56:38 [entrypoint] restart in 5 sec
2024/10/02 17:56:43 [entrypoint] starting `pbm-agent`
2024/10/02 17:56:43 Exit: connect to PBM: create mongo connection: connect: parse "mongodb://backup:asf": invalid port ":asf" after host
2024/10/02 17:56:43 [entrypoint] `pbm-agent` exited with code 1
2024/10/02 17:56:43 [entrypoint] restart in 5 sec
2024/10/02 17:56:48 [entrypoint] starting `pbm-agent`
2024/10/02 17:56:48 Exit: connect to PBM: create mongo connection: connect: parse "mongodb://backup:asf": invalid port ":asf" after host
2024/10/02 17:56:48 [entrypoint] `pbm-agent` exited with code 1```
I can connect to the DB with hexadecimal of the special character as follows (hex of # is %23):
mongosh "mongodb://backup:asf%23shdfA9@localhost:27017/?authSource=admin"
Raised JIRA [K8SPSMDB-1172] - Percona JIRA for the same. Thanks for sharing us the issue. You can subscribe yourself to the JIRA to see the updates.
Regards,
Vinodh Guruji