Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1D88C133740B for ; Thu, 9 Dec 2010 09:37:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88557-04 for ; Thu, 9 Dec 2010 13:37:14 +0000 (UTC) X-Greylist: delayed 00:18:40.984233 by SQLgrey-1.7.6 Received: from mailout2.pacific.net.au (mailout2-11.pacific.net.au [125.255.80.138]) by mail.postgresql.org (Postfix) with ESMTP id 5B8A51337B49 for ; Thu, 9 Dec 2010 09:37:12 -0400 (AST) Received: from [187.65.248.33] (unknown [187.65.248.33]) by mailout2.pacific.net.au (Postfix) with ESMTP id 865FF2A8816; Fri, 10 Dec 2010 00:18:22 +1100 (EST) Subject: Re: Connection Problem From: Rob Stone To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <4CFE9095.5090702@opencloud.com> References: <1291728544.3489.28.camel@localhost> <4CFE9095.5090702@opencloud.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 10 Dec 2010 00:18:11 +1100 Message-ID: <1291900691.3402.7.camel@roblaptop.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201012/44 X-Sequence-Number: 21282 Hi Oliver, Thanks for the reply. Output from netstat shows port 5432 as being listened. Don't know what to try next. Sometimes when I shut down my laptop the "stop" messages are displayed. I noticed last night that pg_ctl could not find the postmaster.pid file, even though PGHOST and PGDATA variables are set. I'm starting it with the -i and -D options with -D pointing explicitly to the PGDATA path using the full path name. Could not finding a postmaster.pid file be linked in any way with my problem?? Cheers, Rob rob@roblaptop:~> netstat -ln --tcp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:58112 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:44739 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:6566 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:60135 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 ::1:631 :::* LISTEN tcp6 0 0 :::5432 :::* LISTEN tcp6 0 0 :::6566 :::* LISTEN tcp6 0 0 :::80 :::* LISTEN rob@roblaptop:~> On Wed, 2010-12-08 at 08:52 +1300, Oliver Jowett wrote: > On 08/12/10 02:29, Rob Stone wrote: > > > Wrote a mickey mouse java class (testdbconn) to see if I could access > > the database and read data from a table that has two rows. See attached. > > When it runs it displays the same SQL error code as ExecuteQuery -- > > 08001 -- which is the "can't connect error". > > You have a network configuration problem of some sort: > > > Caused by: java.net.SocketException: Network is unreachable > > (This isn't "connection refused", it's "I have no configured route to > that address") > > Oliver