Skip site navigation (1) Skip section navigation (2)

Re: error message "psql: expected authentication request from server, but received " when using psql to connect remote database

From: "TIAN Justin" <yongjuntian(at)alcatel-lucent(dot)com>
To: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: error message "psql: expected authentication request from server, but received " when using psql to connect remote database
Date: 2008-05-22 02:15:19
Message-ID: 02AD22EBEBC00940BBB63FEB6AB89BE320784F@CNSHGSMBS04.ad4.ad.alcatel.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Heikki Linnakangas,

Thanks for your quick response; the server we used is 8.1.4,
The error when using client 8.1.4, 
> psql -U or -p 2222 -d testdb -h localhost
Output:
psql: expected authentication request from server, but received

when used 8.0.3, no problem,
> psql -U or -p 2222 -d testdb -h localhost
Output:
Password:
Then enter password, it can log in and do all operation.

Thanks,
Justin
-----Original Message-----
From: Heikki Linnakangas [mailto:heikki(at)enterprisedb(dot)com] 
Sent: Wednesday, May 21, 2008 8:14 PM
To: TIAN Justin
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] error message "psql: expected authentication request
from server, but received " when using psql to connect remote database

TIAN Justin wrote:
> I met an error, when psql client version is 8.1.4, I use it to connect
> to remote database or local database, such as "psql -U name -p <port>
-d
> <database> -h <ip>", it will prompt error message "psql: expected
> authentication request from server, but received ", but if the client
> version is 8.0.3, there is no problem, I don't know why, does it the
> configuration problem?

Please post the exact output you're getting in both cases.

What version is the server?

You should upgrade to the latest minor version, which is 8.1.11 for the 
8.1 series, and 8.0.15 for the 8.0 series

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

Responses

pgsql-bugs by date

Next:From: Thomas HDate: 2008-05-22 03:08:45
Subject: BUG #4186: set lc_messages does not work
Previous:From: Kris JurkaDate: 2008-05-21 20:45:21
Subject: Re: Deadlock condition in driver

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group