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 1tniVV-000xv0-UA for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2025 18:21:15 +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 1tniVW-002C1X-77 for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2025 18:21:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tniVV-002C1P-EE for pgsql-general@lists.postgresql.org; Thu, 27 Feb 2025 18:21:12 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tniVP-0001lP-0W for pgsql-general@postgresql.org; Thu, 27 Feb 2025 18:21:11 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id 34A5A11401D5; Thu, 27 Feb 2025 13:21:06 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Thu, 27 Feb 2025 13:21:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1740680466; x=1740766866; bh=fvijh5D7EL8wPAVBQLjT0PvAYBalQDBi3X7OLa4AY5Y=; b= f4U2rf3gkagYoOoVe8svh21ZI15PxiaTOVXvjSLUhksDa7kOTUVuJex46XhIn2gn 0NwGlDxsFAmFhZ6Sjovc7IZ4NBPbZue+4mzxwUuk5AZWY8VRkUz6kyWB6b5GpBzj U6kLKKNUQPOiK3q3X/DbJ5I18p07qhWhOEewmPo4V4UPv0iuZD4Qr5TL7LJ/szw3 IsXII8NLIFaaHq5HwMN+CL1I2+kbiucrJPlD1wX/y2Sws/aKIRw1nC1/e/LSaNre Uun9SMYBryRDquIkIN2QCRbv4sLz9d7r8irqrtFWuNdLqVd3km+zXH8YFl4TA6Gx +2k36alI99h18mi3oBZoiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1740680466; x= 1740766866; bh=fvijh5D7EL8wPAVBQLjT0PvAYBalQDBi3X7OLa4AY5Y=; b=r EHJnwVe6FqOxqf6w8MxuNnMBLVvbTYU6+qvVv6CF83FNOpknNhAggfFws3SGENZZ LWeHE2q+/IhRIvOfei+Dc/0XA7CQiplf57aZPEKXHtftFYk1rJgyyHMTmvYnNRT8 OPn2hyjC+xHULlw3/fhdTPhP8RErq6brurPovGm5K28iGysI1boFRihn4XmLt+jx 94fmaHvTmba5lo/TapPxuIzgHtUmpP07CXzfgo37YJK8gg78rlSV/NEsN/bpn8EO tE4G38Jo8FpciNoF2wZLQSIYJTwV3On/Sqn2Z6hDFjKhbKy10qfzpl7A6XrabFq5 JOSmA60kImnkI9P1rn6ig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekkeduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfet gefgheekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegrlhgvgigrnhguvghrrdhfrghrsggvrhesghhmrghilhdrtghomhdp rhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Feb 2025 13:21:05 -0500 (EST) Message-ID: Date: Thu, 27 Feb 2025 10:21:04 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to debug: password authentication failed for user To: Alexander Farber Cc: pgsql-general References: <056ebaa8-94bb-461d-905c-4035eab9ceac@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 adrian.klaver@aklaver.com