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 1tLju1-00GfvV-ST for pgsql-admin@arkaria.postgresql.org; Thu, 12 Dec 2024 14:10:53 +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 1tLjtz-00CL5j-AQ for pgsql-admin@arkaria.postgresql.org; Thu, 12 Dec 2024 14:10:52 +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 1tLjty-00CL5b-Ul for pgsql-admin@lists.postgresql.org; Thu, 12 Dec 2024 14:10:52 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tLjtx-002TNo-7r for pgsql-admin@lists.postgresql.org; Thu, 12 Dec 2024 14:10:51 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7b6952e2257so54587085a.1 for ; Thu, 12 Dec 2024 06:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734012646; x=1734617446; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lR4gEoCHtDJSNKo6i8/WS9N4oEG7xVSjQjE4BdVVARU=; b=GwoN3rndzWlXccXW6rtDfVnbuUTXxNus26Q0RL/cJM9571LozuEyQvvTWw5b/gkpEF p7S2/eb0hnizmQqGDAG4aUddUPFzIiuqRnW/0+mdjXKwxL7v810xwvyn885x3igQuE7I FDM/TRmOoi7J1qclnIb5KbY4xurMlc5msljgCec2pOSc9AZ2ExVbHrNYNysV6E3EHET2 s3TXEJd0yuVvZ4yXE3vu4kxtgFqLq0nhItBRWAD8WMn3ckwcRTQKIu512NQZxOqm8VTH yMOHA+HO7OYdjXF/nAkGyTatwOUYlVE/G6ljL0vp07dnb9WwFy414SyTFPpeAzJYj/aR J+fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734012646; x=1734617446; h=cc:to: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=lR4gEoCHtDJSNKo6i8/WS9N4oEG7xVSjQjE4BdVVARU=; b=GWv+hn72eOT0zwYP/BoR/AB31hp5j4vCL21WMec/qieffMYeKRMfEOeZmbZcIfW5d9 p7vMy41iSsmL0gNrLZ+1vbDNchXQx4eVXri9lBYkdjMUnF42KdTJ9oEQhDhqVLScVyn4 B1VAroGlayVPcwi9mStoBhPomjVRE8RzgdStFY7XZrT066xaOP8QmGyW/JtMq2JHw+Bo 857lX8YuJcgMSE4SxYBFRnIaTYcJCDQ/Q0vRd8X3zP63sewhJNpgV4mTm9kTRgbGjfia 1I197eSb+6gd6D+tjD37bdTFcCpKhmZ/WI2PDTceWWdTyerXsltLz8emm0zeU7NI+9RJ nHFA== X-Gm-Message-State: AOJu0YxqFRJfvDXbV3smD1TLWKqVjGxxcHjQm3M2Gh1Bu7UhWQCV41w4 YVK5AapuRaeuuRwmIXkzpoSg/wiTawiPbZiR/8k/lnEmTVxjHcTVdlWjKjJF68y/orr+u+tb2Dh HZs/0iKawGBp+i+mcFfw3i55H4WE= X-Gm-Gg: ASbGncveoKWA3eKxFPyuOe6uTYXDy2FL+oW8b0hhYuxLDiVpXpKx7sSfFTUQ13tKhM2 CX0tNupUT2FHdHvhN1Aekh6FxQ8GXTeWPpNFc X-Google-Smtp-Source: AGHT+IEsKlvMRPJwy4lar6GiSRjXpBhLkcyy37Jfy/HLH/vzLRTdLXUt7GYpkUoS7gU+nJnIGBZVydbLLxUhOI5keo0= X-Received: by 2002:a05:620a:2488:b0:7b6:f1b7:c933 with SMTP id af79cd13be357-7b6f89a4bafmr83841285a.47.1734012645913; Thu, 12 Dec 2024 06:10:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kashif Zeeshan Date: Thu, 12 Dec 2024 19:10:33 +0500 Message-ID: Subject: Re: Psql not working To: "Narendran .j" Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000cbc2fe06291347e4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000cbc2fe06291347e4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Can you check which user you are using to run psql, Do the following 1. Execute ls -lrt /usr/pgsql../bin/psql to see if the user have access to it 2. If you have access then try running the command psql --help to make sure if you have access to psql. 3. Also try to connect with the wrong user / port to see if psql generates error. Regards Kashif Zeeshan On Thu, Dec 12, 2024 at 6:31=E2=80=AFPM Narendran .j wrote: > Hello Team, > > I'm facing one problem, can't login postgres by psql, even it's not > throwing any error and can't find anything in log. > > Checked server is running fine, able to check status using pg_ctl. Can > can't login through psql > > My login attempt > > psql > /usr/pgsql-14/bin/psql > psql -U postgres -p 5432 -d postgres > > When I'm running above query it's return to next line, nothing comes up > > Please on this. > > Thanks > --000000000000cbc2fe06291347e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

Can you check which user you are usi= ng to run psql,

Do the following
1. Exec= ute ls -lrt /usr/pgsql../bin/psql to see if the user have access to it

2. If you have access then try running the command psq= l --help to make sure if you have access to psql.

= 3. Also try to connect=C2=A0with the wrong user / port=C2=A0to see if psql = generates error.

Regards
Kashif Zeeshan<= /div>

On Thu, Dec 12, 2024 at 6:31=E2=80=AFPM Narendra= n .j <jnarendran3@gmail.com= > wrote:
Hello Team,

I= 9;m facing one problem, can't login postgres by psql, even it's not= throwing any error and can't find anything in log.

Checked server is running fine, able to che= ck status using pg_ctl. Can can't login through psql

My login attempt=C2=A0

psql
/usr/pgsql-14/b= in/psql
psql -U postgres -p 5432 -d postgres=C2=A0

When I'm running abov= e query it's return to next line, nothing comes up

Please on this.

<= /div>
Thanks
--000000000000cbc2fe06291347e4--