Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tniQ9-000wv1-BV for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2025 18:15:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tniPC-001zyL-74 for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2025 18:14:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tniPB-001zrW-NA for pgsql-general@lists.postgresql.org; Thu, 27 Feb 2025 18:14:40 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tniP8-0001En-1r for pgsql-general@postgresql.org; Thu, 27 Feb 2025 18:14:39 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e4bed34bccso1735823a12.3 for ; Thu, 27 Feb 2025 10:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740680077; x=1741284877; darn=postgresql.org; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=W3sydnstd4ZDiMc7kQxR6jRdbAGcnUHKbtgIXJTuUnc=; b=XFisbVKjHa2AwS0PlKVk+HKYPtTtpLp0A7gSOdHVnHbt6I6PyXvfOJnUqlJ2ZzCNIR fpvGHcw4iNWHoGFYT7v6ekQ7VIgimvx0rrT1hyliPyNfjLPOk3GfYlW3ZPifhfuvX4mi KjPYp18YuTUvOX1irTG4zotzoLM/I1EQhmQ8iur6Q29+cNOo7IpSGnIAqeKq6eCdr0RO U33IBX4RAFoUzuWOGUKf6SpsWwsuPP8a77qmMVyqqeXrjoP+ZCm5e6be+At6raL3zr2E 7tpOYZt1xNLSjhhjoj+PlMMrU7Y10G/y+Nx4n4zViqdzJiMGmGvL5ru7iIXtZuZGRbKy G8HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740680077; x=1741284877; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W3sydnstd4ZDiMc7kQxR6jRdbAGcnUHKbtgIXJTuUnc=; b=e01ZZly646O32Ry8Ex6RwURLEVGYXV3ECEdzMzu2bTtI7e36jF7FMALjIM1EmHhpEl fqvAxYk2N8kBCndWq06IxCuFIKZuVl8esLqYRSMIsI149xTkJpNW9mRfFMvZGNpVVSyy +MEIvyODGYomn/A+79hL0ufKsOy0czvq4szyP6iIGrP2/9VOfiPHvse6UMCvMjHVq5ND ke5WVD0TszjUDlYbxo5q78H72+tARoSSToIWYITJqYufLyc2k/n9ik5P1JpdLlKXWwi4 0atjL6B8A2FgwjCreG2/htyv85FlkBKORPvEwjLOHqmVZ3Jsft/spbNBdS+1P1iVnwGA Wm+Q== X-Gm-Message-State: AOJu0Ywv/NJ7x7LjnSe9sS9H5t+ReA300gkS836MRjN7So0nrs7kd++b poZk4AJXmFp2uOnngCuOpSSxPbUGiMAeCjQOGahoMZaMXLZ4p1ioiyic17zXK+cPQlmOLE+gTGw U1Z4+lWSdevEMWyUoVRvWaQcFS3r6w7Hu92E= X-Gm-Gg: ASbGnct7EPGhF4EY1Qpd2TCQlz2eFSpok++3ktyt4DSVuGH7ZaJFS2tl+ITrl7aHWc0 b8+hiFgbe7Ve7P2mZnfK+CX2oE1thbU9RXb9/p3WXH1Lwn+N5doneV7BBrj9LH5KMgYqp27L0Rz htDUxhrpxU X-Google-Smtp-Source: AGHT+IGppP2fc0ZYdo0YTuImYMlC6fngOTrKdOTY3bhJL+vSGdWb+mRWQ01c5w21R2nwa2mLrdQ4ETwrZBG1e9hcC0U= X-Received: by 2002:a05:6402:234e:b0:5dc:c9ce:b029 with SMTP id 4fb4d7f45d1cf-5e4d6acd607mr81222a12.5.1740680077068; Thu, 27 Feb 2025 10:14:37 -0800 (PST) MIME-Version: 1.0 References: <056ebaa8-94bb-461d-905c-4035eab9ceac@aklaver.com> In-Reply-To: <056ebaa8-94bb-461d-905c-4035eab9ceac@aklaver.com> From: Alexander Farber Date: Thu, 27 Feb 2025 19:14:25 +0100 X-Gm-Features: AQ5f1Jr9qFtVGpBJ0WOaIc-z0pmjLWD9Wh3j0E64bz2QvkuiFqqwCEk63ka-7Oc Message-ID: Subject: Re: How to debug: password authentication failed for user Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000a9521b062f23a928" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a9521b062f23a928 Content-Type: text/plain; charset="UTF-8" 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 --000000000000a9521b062f23a928 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That seems to be the rea= son, thank you Adrian.

At first connecting from the other pod in the= AKS cluster does not work:

$ PGPASSWORD=3Dtimeshift_pass psql = --host=3Dtimeshiftservice --port=3D5432 --dbname=3Dtimeshift_database --use= rname=3Dtimeshift_user
psql: error: connection to server at "= ;timeshiftservice" (10.0.120.194), port 5432 failed: FATAL:=C2=A0 pass= word 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" f= or help.

timeshift_database=3D# ALTER ROLE timeshi= ft_user PASSWORD 'timeshift_pass';
ALTER ROLE
=

Then the connection from the other pod works immediately

=

--000000000000a9521b062f23a928--