charmed-postgresql.psql not working for login to postgres units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Software versions in use:
* LXD: 5.15-002fa0f
* Juju: 3.1.5
* Postgres charm: 14/stable, revision 288, base ubuntu@22.04
* Charm deployed as: both container and virtual-machine virt-types
Expected behavior: Following the tutorial (https:/
Observed behavior: The charmed-
psql: error: connection to server at "10.29.120.113", port 5432 failed: could not create socket: Permission denied
I am suspecting there may be snapcraft permissions that need to be set so charmed-
Dear Paul,
Thank you for the bugreport!
I believe it is a duplicate of GitHub issue #176: https:/ /github. com/canonical/ postgresql- operator/ issues/ 176 which has been addressed already in 14/edge, revision 309+ (and pending charm upgrade support to release in 14/stable).
Please note, the modern charm uses GitHub and not a Launchpad, I have updated the manual https:/ /charmhub. io/postgresql/ docs/e- legacy- charm to indicate such a detail.
Please re-check it from your side using 14/edge and report to GitHub if the issue still exist for you. postgresql. psql`. We believe it improves usability!
Note, revision 309+ creates a snap alias `psql`, so you can use it directly, no need to use long `charmed-