mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #88] Unable to do connection - invalid port ":xxxx" after host #72
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @URBANsUNITED on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/88
Hi!
Using latest docker and can't make a connection to my Postgres database:
Error
My compose file:
My password uses $ (shift 4 - dollar sign) , so I know from other postgres connections, I have to do double dollar signs -
but even this is not working.My fault or on programs side?
Thanks
URBANsUNITED
@eduardolat commented on GitHub (Feb 6, 2025):
Can you please test the compose.yaml from the README to verify that everything works correctly?
@URBANsUNITED commented on GitHub (Feb 7, 2025):
Hi!
After lots of tests I can confirm that the problem exists also in the original setup!
But I also found a solution.
The password must be encoded to URL-encoded format.
Ex.
Test12=%! = Test12%3D%25%21
Use this for easy
https://www.urlencoder.org/
Btw. The PBW_POSTGRES_CONN_STRING: "postgresql://Name:Pass@postgres:5432?sslmode=disable" works also without naming a database
It would be great to select the existing databases from the dashboard without knowing the correct names. Choose from a list and simply select all databases you'll like to backup.
URBANsUNITED
@eduardolat commented on GitHub (Feb 22, 2025):
Hi, you're right that the issue with your PostgreSQL connection string is related to percent encoding, especially when special characters like the dollar sign ($) are included in passwords. This behavior is well-documented and is not specifically related to PG Back Web.
This issue is also duplicated in another GitHub issue, which you can find here: Issue #3.
For your reference, here are some useful links:
Additionally, it's advisable to always explicitly specify the database name in your connection string to avoid any undesirable behaviors. For an example of such behaviors, you can refer to this Discord thread:
https://discord.com/channels/1269791103536599112/1318507751193837598.
In future versions, there will be validation to ensure that a database name is always included.