public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Alexander Farber <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: How to debug: password authentication failed for user
Date: Thu, 27 Feb 2025 10:21:04 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAADeyWjAUV8q_gdmEA=G4H5b66gaZopp42bTch27okCxPTS=hQ@mail.gmail.com>
References: <CAADeyWjQNmfiQxaiRF0tkZ-kZyApPJT00xbmcMtj+oToSPGoWQ@mail.gmail.com>
<[email protected]>
<CAADeyWjAUV8q_gdmEA=G4H5b66gaZopp42bTch27okCxPTS=hQ@mail.gmail.com>
On 2/27/25 10:14, Alexander Farber wrote:
> That seems to be the reason, thank you Adrian.
>
> At first connecting from the other pod in the AKS cluster does not work:
>
> $ PGPASSWORD=timeshift_pass psql --host=timeshiftservice --port=5432
> --dbname=timeshift_database --username=timeshift_user
> psql: error: connection to server at "timeshiftservice" (10.0.120.194),
> port 5432 failed: FATAL: password authentication failed for user "t
> imeshift_user"
>
> But once I connect to my PostgreSQL pod (or is it called "container"? I
> am always confused by that) and run locally
>
> $ psql -U postgres
> psql (17.4)
> Type "help" for help.
>
> timeshift_database=# ALTER ROLE timeshift_user PASSWORD 'timeshift_pass';
> ALTER ROLE
>
> Then the connection from the other pod works immediately
My guess it has to do with:
-c 'ALTER USER timeshift_user PASSWORD '"'"'timeshift_pass'"'"';'
I am still trying to work out what that quoting is doing?
>
>
>
--
Adrian Klaver
[email protected]
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: How to debug: password authentication failed for user
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox