Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQhIH-000257-Eb for pgsql-jdbc@arkaria.postgresql.org; Tue, 02 Feb 2016 20:11:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQhIG-0002uW-W7 for pgsql-jdbc@arkaria.postgresql.org; Tue, 02 Feb 2016 20:11:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aQhIG-0002sL-6V for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 20:11:20 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aQhID-0007ri-EB for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 20:11:19 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQhIA-0004Qh-FY for pgsql-jdbc@postgresql.org; Tue, 02 Feb 2016 21:11:14 +0100 Received: from ppp-46-244-208-209.dynamic.mnet-online.de ([46.244.208.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 21:11:14 +0100 Received: from spam_eater by ppp-46-244-208-209.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 21:11:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Unable to connect to 9.5 via JDBC driver 1207 Date: Tue, 2 Feb 2016 21:10:53 +0100 Lines: 39 Message-ID: References: <1454432904.2165.6.camel@gmail.com> <10633.1454441931@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-208-209.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <10633.1454441931@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Tom Lane schrieb am 02.02.2016 um 20:38: >>> As I said: by simply switching to the previous driver, everything was fine. >>> It works fine with JDBC connections to localhost, but not to a remote >>> server (psql was fine) >>> I had also one user of SQL Workbench/J who reported the same problem and >>> after switching to 1206 the problem went away for him as well. > >> Well clearly we would like to get to the root of this problem. Is it >> possible for you to provide us with more information? > > Since the quoted error message mentions a connection from "127.0.0.1", > it's impossible that it is a reply from a remote server (unless your > networking configuration is completely broken). Presumably what is > happening is that what you think is a connection to a remote PG server > is actually being made to localhost, and the local PG server's pg_hba.conf > doesn't allow the username and/or dbname. You could check that by turning > on log_connections on both servers. > > As to why that would happen as a consequence of a driver version change, > I'm pretty clueless, but I would wonder about differences in driver config > files or the driver's interpretation of a connection URL. In any case, > certainly not enough information has been given to diagnose it. The initial error message in this thread was not from me. I am currently not in the office, but I will see if I can reproduce that tomorrow. I have also contacted the SQL Workbench/J user who reported this to me last week and asked him to describe his setup as well. In his case, the error message was: > FATAL: no pg_hba.conf entry for host "213.xxx.xx.xxx", user "foobar", database "postgres", SSL on If I understood him correctly, he has no access to the server, so the only thing he did, was to change the driver and he could connect again. Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc